From: a2o1 AT my-dejanews DOT com Newsgroups: comp.os.msdos.djgpp Subject: Exported Assembly Functions Date: Sat, 24 Apr 1999 17:58:08 GMT Organization: Deja News - The Leader in Internet Discussion Lines: 28 Message-ID: <7ft0nf$e0a$1@nnrp1.dejanews.com> NNTP-Posting-Host: 209.103.51.8 X-Article-Creation-Date: Sat Apr 24 17:58:08 1999 GMT X-Http-User-Agent: Mozilla/4.51 [en] (Win95; I) X-Http-Proxy: 1.0 x17.dejanews.com:80 (Squid/1.1.22) for client 209.103.51.8 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com OK. I picked up a little tutorial on NASM/DJGPP and started programming. It works pretty good now that I understand it. Anyways, after a while I started writing my own Sprite Drawing Routine (using the book PC Game Programming Explorer by Dave Roberts and the Allegro Gaming Library). I then compiled it like this: nasm -f coff assembly.asm it made a file called assembly.o So I was happy and delighted that it actually compiled. Now I put the extern blah blah blah code at the top of my sprite drawing source. Recompiled using new MAKEFILE that also contained assembly.o as an object file. The new BITMAP.CC also compiled fine. Now The final step (Testing the new Routine). This is the part where it failed. Using the new class, I made a simple program to draw a simple PCX file onto the screen. Saved it. THen compiled using: gcc -g test.cc grfx.a -o test.exe this generated the problem: grfx.a(bitmap.o): In function `GBitmap::Draw(unsigned int, unsigned in t, GScreen *)': bitmap.cc:20: undefined reference to `DrawBitmap(unsigned int, unsigned int, uns igned char *, unsigned char *, unsigned int)' Why does it give me this problem now??? -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own