From: ams AT ludd DOT luth DOT se (Martin Str|mberg) Newsgroups: alt.comp.lang.learn.c-c++,comp.os.msdos.djgpp Subject: Re: Aleggro example error! Error! Error! Followup-To: alt.comp.lang.learn.c-c++,comp.os.msdos.djgpp Date: 5 Apr 1999 10:52:23 GMT Organization: University of Lulea, Sweden Lines: 30 Message-ID: <7ea4l7$egk$4@news.luth.se> References: <7eb6gu$gb1 AT indo-news> NNTP-Posting-Host: queeg.ludd.luth.se X-Newsreader: TIN [UNIX 1.3 950824BETA PL0] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Arman (janwar AT indosat DOT net DOT id) wrote: : 1.Why do I can't make *.exe from all allegro's example (*.c)? When I tried : to compile, I got error message! Help me !! : This is the error messages when I compile ex1.c with gcc: : c:/djgpp/tmp\cccqxthj(.text+0x14):ex1.c: undefined reference to : `allegro_init' : c:/djgpp/tmp\cccqxthj(.text+0x19):ex1.c: undefined reference to : `install_keyboar : d' [Klippa, klapp, kluppit more undefined references.] : c:/djgpp/tmp\cccqxthj(.text+0xb9):ex1.c: undefined reference to `readkey' Have you compiled allegro? : 2. What is *.o file for ? How to make it? What .o file? A .c (c source code) file is compiled to form a .o (object) file, which then is linked (perhaps with other .o files and libraries (.a files)) to form the executable (in *DOZE .EXE files). Example: "gcc -c my_code.c -o mycode.o -Wall". Right, MartinS