Re: More on dynamic loading

Simeon H. Fitch (shf2d@brunelleschi.cs.virginia.edu)
Wed, 13 Apr 1994 15:10:38 GMT

| [From: Guido.van.Rossum@cwi.nl]
| Yes, the crux of your problem is that you need to provide C++ runtime
| library support (__builtin_new, cerr etc.) in addition to C runtime
| library support (malloc, stderr etc.). Since the Python interpreter
| is linked as a C program it does not provide C++ runtime support.
|
| I would think that your -lg++ should already take care of this. Maybe
| there's ANOTHER library (linked by default by g++) that you also need?
| (Try something like g++ --verbose on a simple main.c program to see
| what libraries it links with.)
|
| --Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>
| URL: <http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>

As I expected, the problem that I was having was a subtly annoying
oversight. Guido's advice led to the solution: our system setup is
such that ld looks at a wrong version of libg++.a. When you run g++
it explicitly tells ld where to find the libraries, but in my case
where I was calling ld explicitly, it just assumed some other (yet to
be determined) library. Once I told it where to look, everything
worked smoothly.

So thanks to all of you who helped me hunt this one down, esp. Matt,
Tommy, ^ Guido.

-Simeon-

-- 

+---------------------------------------------------------------------+ | Simeon H. Fitch Department of Computer Science | | fitch@Virginia.EDU University of Virginia | +---------------------------------------------------------------------+

Johann Gambolputty de von Ausfernschplenden schlitter crascrendon fried digger dingle dangle dongle dungle burstein von knacker thrasher apple banger horowitz ticolensic grander knotty spelltinkle grandlich grumblemeyer speltwasser kurstlich himbleeison bahnwagen gutenabend bitte ein nurnburger bratwustle gerspurten mitz weimache luber hundsfut gumberaber schvnendanker kalbsfleisch mittler aucher von Hautkopft of Ulm