Compiler

This is a discussion on Compiler within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Sorry if this looks a bit weird. Im right now using Lynx, text-mode web browser and im not sure how ...

  1. #1
    Registered User Sunny's Avatar
    Join Date
    Nov 2001
    Posts
    101

    Compiler

    Sorry if this looks a bit weird. Im right now using Lynx, text-mode web browser and im not sure how things turn out.
    The source is pretty simple. I just made a new file
    and i added the simple basic thing:

    #include <stdio.h>
    void main()
    {
    printf("hello");
    }



    I think im missing a a binary. But this is going to be like looking for a needle in a hay stack.
    But it's worth it. I like this compiler a lot.

    Take care

    Stef

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,584
    Change void main to int main.

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,335
    > I think im missing a a binary.
    Posting some error messages would have been a better idea.

    As would telling us which compiler it is which you find so wonderful.

    All that anyone will tell you is that it should be int main, should have a
    return 0;
    and that it compiles and runs just fine.

  4. #4
    Registered User Sunny's Avatar
    Join Date
    Nov 2001
    Posts
    101
    Thanks for the hint.
    I figured it out anyways. Sorry about this , i actually intended to post this message on the other thread i started ( GUI for DOS ) but somehow it got here.

    The compiler i seem to like so far is DJgpp - if only i could get it to make at least one executable....Which is why i'm looking for
    this file: djgpp.djl'






    Take care people,


    Stef
    Last edited by Sunny; 01-04-2002 at 02:52 AM.
    Yes...YES!!! I did it! Ha ha ha...I'm king of the world...No..No..please-wait-no...!!!!-- This program has performed an illegal operation AND WILL be shut down....Ack-Choking..help...ack..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 04:04 AM
  2. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 11:07 AM
  3. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 05:42 AM
  4. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 10:28 AM
  5. Bad code or bad compiler?
    By musayume in forum C Programming
    Replies: 3
    Last Post: 10-22-2001, 09:08 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21