Thread: DJGGP question

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

    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?
    #if _emo
      #define stereo_type_i_dislike

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

    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

    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)
    gcc -c -Wall (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*, see the ``On-line docs'' section below) and type

    info gcc invoking
    #if _emo
      #define stereo_type_i_dislike

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
    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, 01:36 PM
  5. Question, question!
    By oskilian in forum A Brief History of
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM