www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/01/09:42:26

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: 3rd Try: Maybe an asm problem? (Problems linking)
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <eu1rgs841uj3sghpo4srbiuagei998pifl@4ax.com>
References: <39096460 DOT 1D069B39 AT pop DOT gis DOT net>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 23
X-Trace: /Kp2lr07vch9eq6igIAkBNHlrbdovm7aFiBSqfc5+GzU1VfEFOk6uxIYf8dbgUy2aIxve6ATYEQT!2xufebEP/0Ryx7dDW4s8P6jPzQiY/iTMJyC3Xl4Om0y2TNNQtadAZYQhZ8vq8FhwoW1GKiBV04tj!n8zf1w==
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Mon, 01 May 2000 13:36:21 GMT
Distribution: world
Date: Mon, 01 May 2000 13:36:21 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Fri, 28 Apr 2000 06:13:52 -0400, Joseph Rose <jorose AT pop DOT gis DOT net>
wrote:

>When I link the test code for my graphics library, I get no error
>message on references to C++ functions, but I get 'undefined reference'
>error messages at every line of C++ code containing a function call to
>an assembler routine.

Try wrapping the asm functions' prototypes with `extern "C"' so that
the compiler doesn't mangle the names for function overloading.

extern "C"
{
  void foobar(int baz);
}

-- 
Damian Yerrick
"I refuse to listen to those who refuse to listen to reason."
See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019