-lModules -lPython -lObjects -lParser

Anton Graph "aglyport\" at n-o.s,p/a__m.yahoo.com>
Mon May 20 18:40:38 EDT 2002


Martin v. Loewis wrote:
> Anton Graph <""aglyport\"@n-o.s,p/a__m.yahoo.com> writes:
> 
> 
>>g++ -V 2.95.3 -g  -o metadb metadb.o metaadb.o metaddl.o metapy.o
>>i386-linux.o -L/usr/local/lib/python2.2/config -lpython2.2  config2.o
>>-lpthread -ldl -lutil -lm
> 
> [...]
> 
>>What am I doing wrong?
> 
> 
> You need to pass config2.o before -lpython2.2. The linker processes
> input from left to right.
> 
That fixed it. For some reason I got it in my head that if there is 
config.o on command line and config.o in the lib and config.o is before 
the lib the version from the library will be used.

Thank you!




More information about the Python-list mailing list