🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3398

Re: CC compiled .so does not work with g++ compiled main program

#3398
From: Pim van Riezen
Date: Sat, 09 Jan 1999 00:00
23 lines
1681 bytes
James Hawtin wrote:
> 
> Have you checked your LD_LIBRARY_PATH so that your .so is in it, or link
> with LD_RUN_PATH with the correct search path.
> 
> James

Those environment vars don't change when you choose a different
compiler. The problem is in the way that some native CCs turn c++
functions/methods into symbols (remember that in c++ symbols returntype
and argument types are also kept to allow for overloading). I've had a
lot of problems with that on IRIX too (and haven't found a solution for
it yet).

Cheers,

Pi

-- 
             "Time is an illusion. Lunchtime doubly so."
 Patron Saint of Breakfast Cereal, Occultist (not precluding rogue
obscenities such as IRIX and C++), Casual Poet, Occasional Composer,
    Oper Bastard for Undernet.Org, Freelance LART for #linux
Technical Details
Message-ID: <369743DD.6B47C685@webcity.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36814BCA.4A78@iai.com> <368fd87e.0@newsread3.dircon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc89c,880e20546d838090
X-Google-Attributes: gidfc89c,public
X-Google-Thread: 10ba33,880e20546d838090
X-Google-Attributes: gid10ba33,public
X-Google-Thread: 109fba,880e20546d838090
X-Google-Attributes: gid109fba,public
From: Pim van Riezen <pim@webcity.nl>
Subject: Re: CC compiled .so does not work with g++ compiled main program
Date: 1999/01/09
Message-ID: <369743DD.6B47C685@webcity.nl>
X-Deja-AN: 430531167
X-NNTP-Posting-Host: dc2-isdn738.dial.xs4all.nl [194.109.150.226]
Content-Transfer-Encoding: 7bit
References: <36814BCA.4A78@iai.com> <368fd87e.0@newsread3.dircon.co.uk>
X-XS4ALL-Date: Sat, 09 Jan 1999 13:56:29 CET
Content-Type: text/plain; charset=us-ascii
Organization: XS4ALL, networking for the masses
Mime-Version: 1.0
Newsgroups: comp.unix.programmer,gnu.g++.help,comp.lang.c++