Thread: DJGPP help needed

  1. #1
    Registered User dune911's Avatar
    Join Date
    Sep 2001
    Posts
    140

    DJGPP help needed

    hello!

    i am now up to setup DJGPP to my windows 98 os and not sure, if you can help me out with my question:

    i've just downloaded the following files through zip-picker:

    v2/copying.dj DJGPP Copyright info 3 kb
    v2/djdev203.zip DJGPP Basic Development Kit 1.5 mb
    v2/faq230b.zip Frequently Asked Questions 664 kb
    v2/readme.1st Installation instructions 20 kb

    v2apps/rh1478b.zip RHIDE 2.0 mb

    v2gnu/bnu2112b.zip Basic assembler, linker 2.6 mb
    v2gnu/fil40s.zip File Utils (for building Allegro) 1.4 mb
    v2gnu/gcc2953b.zip Basic GCC compiler 1.9 mb
    v2gnu/gdb500b.zip GNU debugger 1.1 mb
    v2gnu/gpp2953b.zip C++ compiler 1.7 mb
    v2gnu/mak3791b.zip Make (processes makefiles) 263 kb
    v2gnu/txi40b.zip Info file viewer 632 kb

    v2tk/allegro/alleg312.zip Allegro game library 1.4 mb

    v2tk/grx243s.zip GRX Graphics 1.8 mb
    v2tk/pdcur24s.zip Curses Emulator 453 kb
    v2tk/rsxdj151.zip RSX (Windows GUI Lib) 3.5 mb

    after the downloads were finished, i extracted all the files into
    C:\DJGPP and put the lines
    SET PATH=C:\DJGPP\BIN;%PATH% and
    SET DJGPP=C:\DJGPP\DJGPP.ENV
    into my autoexec.bat file.

    now i want to compile the allegro-examples with gcc.
    i tried command line
    gcc -o c:\djgpp\allegro\examples\ex1.c ex1.exe and
    gcc c:\djgpp\allegro\examples\ex1.c -o ex1.exe
    but the program wont work.
    not in dos nor in windows console.

    can someone help me to set up DJGPP to my system?
    contact me ICQ maybe

    thank you!
    dune911

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    79
    Have you set up allegro properly according to the instructions in the readme? You have to navigate into your allegro directory using command line and then type "make".
    It's all in the readme.

  3. #3
    Registered User dune911's Avatar
    Join Date
    Sep 2001
    Posts
    140

    whoops! :)

    oh, i knew i forgot something!

    just applied make to compile allegro,
    the examples and the demo are working.

    now i have to questios.
    (i am german so i do hard on reading the official faqs)

    how to compile simple *.c and *.cc files?
    can someone post the syntax please?

    when i try the following

    gcc -o file.c file.exe or
    gxx -c file.cc file.exe

    it displays "file.exe - file not found".

    and another question:
    is there a program added, where i can create my
    sourcecode or can i write it in every editor?
    can i create them in my msvc++5 program and
    just compile it with djgpp?

    thanks again & alot!
    dune911

  4. #4
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    To the best of my knowledge, it doesn't matter what editor you use to create source code (even notepad!) as long as the code you have written is possible to be compiled in your compiler.

    btw, if I am wrong, somebody please correct me. Its the only way i'll learn...

  5. #5
    Unregistered
    Guest
    C compilation and linking - output file is file.exe
    gcc -o file.exe file.c

    C++ compilation only - output will be file.o
    gxx -c file.cc

  6. #6
    Unregistered
    Guest
    i should better RTFM first next time

    (not my pc *g*)
    thanks, dune911

  7. #7
    Ecologist
    Join Date
    Aug 2001
    Location
    Utah.
    Posts
    1,291
    Originally posted by face_master
    To the best of my knowledge, it doesn't matter what editor you use to create source code (even notepad!) as long as the code you have written is possible to be compiled in your compiler.

    btw, if I am wrong, somebody please correct me. Its the only way i'll learn...
    I use Dev-C++ to write my code, and compile
    with DJGPP.
    Staying away from General.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Wav edit programmation for dos with DJGPP
    By sprudhom in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 07-17-2003, 07:35 AM
  2. The DJGPP compiler won't start
    By Zahl in forum Tech Board
    Replies: 9
    Last Post: 11-20-2002, 10:54 PM
  3. Is Allegro + DJGPP a no-no?
    By Stan100 in forum Game Programming
    Replies: 4
    Last Post: 10-03-2002, 07:34 PM
  4. DJGPP project problems
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 06-08-2002, 07:16 PM
  5. DJGPP assembly syntax ills...
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 11-11-2001, 02:54 AM