Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!bloom-beacon!deccrl!news.crl.dec.com!pa.dec.com!shlump.nac.dec.com!labc.enet.dec.com!wallis From: wallis@labc.enet.dec.com (Barry L. Wallis) Newsgroups: comp.os.msdos.programmer Subject: Re: TurboC++ link question... Message-ID: <18616@shlump.nac.dec.com> Date: 2 Jan 91 15:34:05 GMT Sender: newsdaemon@shlump.nac.dec.com Organization: Digital Equipment Corporation Lines: 27 In article <1990Dec26.205710.24627@cunixf.cc.columbia.edu>, rk29@cunixb.cc.columbia.edu (Robert Kulagowski) writes... > > Briefly, my question is this: > In Programmer's Journal Magazine there's been a series of articles >for upping graphics function speeds by writing them in assembler. I've >tried to link them in, but have had _no_ luck at all. The linker is giving me >an "unknown symbol" error in the modules which reference the assembler >routines. Now, I've already used MASM to compile the assembler source into >..OBJ; in the Project menu I have the 3 source files which make up the program. >Two are C, one is the .OBJ file. Can someone give me a walkthrough of getting >the linker in the IDE to include the .OBJ file? Needless to say, the manuals >weren't very helpful... If you are using Turbo C++ (as opposed to Turbo C) you should define the prototype for the assembler routines as extern "C". For example: extern "C" void line(int, int); I don't have my manuals with me, but, I'm fairly sure of the above syntax. --- Barry L. Wallis USENET: wallis@labc.dec.com Database Consultant Prodigy (don't laugh): DNMX41A U.S. DECtp Resource Center DECUServe: EISNER::WALLIS (not on the net yet) Los Angeles, CA "No one voted for me, I represent myself" ---