DJGGP question

This is a discussion on DJGGP question within the Windows Programming forums, part of the Platform Specific Boards category; I just downloaded the necessary files for djggp, i read the readme thru the installation, i did everything it asked, ...

  1. #1
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269

    DJGGP question

    I just downloaded the necessary files for djggp, i read the readme thru the installation, i did everything it asked, i said "ok now i can use it finally" and boom thats when it hit me. i have nooo freakin clue wtf the readme wants me to do to compile. can someone help me???? its freakin confuzing. i'll reply what it says once i find it, but for now, if you know, ca you tell me?
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  2. #2
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269

    this is what it says

    GCC is a command-line compiler which you invoke from the DOS command
    line. To compile and link a single-file C program, use a command like
    this:

    gcc myfile.c -o myfile.exe -lm

    The -lm links in the lib/libm.a library (trig math) if needed. (Link
    order is significant, so if you need libm.a, always put `-lm' at the
    end of the command line.)

    To compile a C or C++ source file into an object file, use this
    command line:

    gcc -c -Wall myfile.c (for C source)
    or
    gcc -c -Wall myfile.cc (for C++ source)

    This produces the object file myfile.o. The `-Wall' switch turns on
    many useful warning messages which are especially beneficial for new
    users of GCC. (Other C++ extensions, like .cpp, are also supported,
    see section 8.4 of the FAQ, "How does GCC recognize the source
    language", for details.)

    To link several C object files into an executable program, use a
    command line such as this:

    gcc -o myprog.exe mymain.o mysub1.o mysub2.o

    This produces `myprog.exe' which can be run from the DOS prompt.

    To link a C++ program, use gxx instead of gcc, like this:

    gxx -o myprog.exe mymain.o mysub1.o mysub2.o

    This will automatically search the C++ libraries, so you won't need to
    mention them on the command line.

    You can also combine the compilation and link steps, like this:

    gcc -Wall -o myprog.exe mymain.c mysub1.c mysub2.c

    Further info about the plethora of GCC switches can be found in the
    GCC on-line documentation. To begin reading it, install the Texinfo
    package (txi*b.zip, see the ``On-line docs'' section below) and type
    this:

    info gcc invoking
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  2. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  3. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  4. Question about linked lists.
    By cheeisme123 in forum C++ Programming
    Replies: 6
    Last Post: 02-25-2003, 12:36 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 12:47 AM

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