delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/02/10:15:37

From: "Wim Cools" <w DOT cools AT chello DOT nl>
Newsgroups: comp.os.msdos.djgpp
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1001002115923 DOT 29084A-100000 AT is>
Subject: Re: Problem with .O file
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Message-ID: <Yu0C5.31904$Sb1.534481@nlnews00.chello.com>
Date: Mon, 02 Oct 2000 13:57:12 GMT
NNTP-Posting-Host: 212.83.89.103
X-Complaints-To: abuse AT chello DOT nl
X-Trace: nlnews00.chello.com 970495032 212.83.89.103 (Mon, 02 Oct 2000 12:57:12 GMT)
NNTP-Posting-Date: Mon, 02 Oct 2000 12:57:12 GMT
Organization: chello broadband
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> Using ``extern "C"'' is the _only_ way to fix this, and it always works.
> If it didn't work for you, you must have done something wrong.
>
> The best way of getting a useful response is to post your code (after
> adding ``extern "C"''), and then describe exactly what seems to be wrong
> with the object file.

I couldn't fiure out what I had done wrong until on school today (the
lessons were quite boring so I decided to think about programming :). I was
using the 'extern "C"' in the function itself but of course I had to put
this along with the function declaration in the header file (blah.h f.e.).
stupid! d'oh! Anyway, it works fine now, thank you again.


- Raw text -


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