From: vern Newsgroups: comp.os.msdos.djgpp Subject: linking errors Date: Fri, 26 Mar 1999 19:32:19 -0600 Organization: Posted via RemarQ Communities, Inc. Lines: 49 Message-ID: <36FC3521.81E5EEC9@iocc.com> NNTP-Posting-Host: 204.214.235.112 NNTP-Posting-Date: Sat, 27 Mar 1999 01:38:15 GMT X-Trace: 922498695.782.105 Z.MU6KIEIEB70CCD6C usenet1.supernews.com X-Complaints-To: newsabuse AT remarQ DOT com X-Mailer: Mozilla 4.5 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi again. I have yet ANOTHER problem i dont know how to fix. im working on a program that shows stars flying across the screen, then as the program starts, itll fade the stars in. i went to compile my latest changes, and got the following errors: D:\Programming\starthingy> gxx -c -Wall -o2 -ffast-math -fexpensive-optimi zations -fschedule-insns2 -funroll-loops stars.cc stars.cc: In function `int main()': stars.cc:35: warning: implicit declaration of function `int delay(...)' stars.cc:51: warning: implicit declaration of function `int setpallette(...)' stars.cc:54: warning: implicit declaration of function `int printf(...)' D:\Programming\starthingy> gxx -o stars.exe stars.000 -lalleg stars.000(.text+0x1ec):crt0.s: multiple definition of `__exit' d:/programming/djgpp/lib/crt0.o(.text+0x1ec):crt0.s: first defined here stars.000(.text+0x2d0):crt0.s: multiple definition of `__sbrk' d:/programming/djgpp/lib/crt0.o(.text+0x2d0):crt0.s: first defined here stars.000(.text+0x4b4):crt0.s: multiple definition of `_crt0_init_mcount' d:/programming/djgpp/lib/crt0.o(.text+0x4b4):crt0.s: first defined here stars.000(.text+0x2e8):crt0.s: multiple definition of `__brk' d:/programming/djgpp/lib/crt0.o(.text+0x2e8):crt0.s: first defined here stars.000(.text+0x0):crt0.s: multiple definition of `start' d:/programming/djgpp/lib/crt0.o(.text+0x0):crt0.s: first defined here D:\Programming\Project Breadfan> (the above was a copy paste from a dos window) i think the problem lies in my #includes. here is my list of #includes in my source file: #include //graphics stuff #include //that other stuff #include //used only for the FPS counter right now. i had the program working previously. earlier, i also has a few functions that used the #include file, but i have removed those. if you need to see hte code, please email me and ill send it to you, im afraid to post it to the list and cause spam. any help is appreciated, even if its a link to a tutorial that would help me out. Thanks, Andy. F.