From: dontmailme AT iname DOT com (Steamer) Newsgroups: comp.os.msdos.djgpp Subject: Re: 3rd Try: Maybe an asm problem? (Problems linking) Date: Fri, 28 Apr 2000 22:28:36 GMT Organization: always disorganized Lines: 31 Message-ID: <390a1086.51973341@news.freeserve.net> References: <200004281112 DOT NAA29833 AT acp3bf DOT physik DOT rwth-aachen DOT de> <3909D92B DOT CC80284C AT pop DOT gis DOT net> <3909DD56 DOT 7BD63105 AT mtu-net DOT ru> <390A01E6 DOT D8D52F3 AT pop DOT gis DOT net> NNTP-Posting-Host: modem-104.nebraska.dialup.pol.co.uk X-Trace: newsg2.svr.pol.co.uk 956960917 22856 62.137.78.104 (28 Apr 2000 22:28:37 GMT) NNTP-Posting-Date: 28 Apr 2000 22:28:37 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Free Agent 1.11/32.235 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Joseph Rose wrote: >"Alexei A. Frounze" wrote: > >> AFAIK you should add some characters to your external ASM subroutines... These >> characters must represent type of passed parameters. I don't remember how >> exactly, but that might help you. I don't add these chracters with plane C, but >> parhaps they are needed for C++. >> > >I don't know about these characters. All I know is to add an underscore to the >beginning of function names. This is the name-mangling I mentioned. C++ does it, but C doesn't. You could change your asm, but the simplest thing is to change your C++ header files: extern "C" { extern void SetGrMode (void); extern void Draw_Line_Horiz (int X, int Y, int Len, char Col); extern void Draw_Line_Vert (long X, long Y, short Len, char Col); extern void Draw_Tri (long X1, long Y1, long X2, long Y2, long X3, long Y3, char Col); } >BTW: I'm new to the internet. What are "AFAIK," "IMHO," etc.? AFAIK = as far as I know IMHO = in my humble opinion S.