From: "LSC" Newsgroups: comp.os.msdos.djgpp Subject: Allegro : compiling problem with simple file Date: 14 Apr 1997 02:20:07 GMT Organization: Unconfigured Lines: 21 Message-ID: <01bc4882$ce773b00$7e708ea1@a> NNTP-Posting-Host: j52.jrc3.jaring.my To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Hi, I need help. I have problem compiling a very simple file saved as "c:\cprogram\test.c". I have djgpp in directory "c:\djgpp" and Allegro in directory "c:\allegro". The examples that comes with Allegro compiles OK but my simple program compiles with error :(. Please help me. Please e-mail the reply. Thanks. ---------------TEST.C-------------------------------- #include "\allegro\allegro.h" int main() { int _key; allegro_init(); return 0; } -------------ERROR--------------------------------- C:\CProgram>gcc test.c -o test.exe c:/djgpp/tmp\ccdaaaaa(.text+0xc):test.c: undefined reference to `allegro_init' C:\CProgram>