Boost logo

Boost Users :

Subject: Re: [Boost-users] [Python] Unable to use static library of boost.python due to undefined symbols
From: Philipp Münzel (mail_at_[hidden])
Date: 2010-10-06 18:58:04


Vladimir Prus <vladimir <at> codesourcery.com> writes:
>
> In general, static libraries should be specified on the command line
after
> the object files that use symbols in them. Do things work better if
> you move -lboost_python to the end?

Oh, seriously: HEADDESK!

Big thank you!

I had to recompile with bjam cxxflags=-fPIC though, otherwise the
link would fail.

One question remains:
The next step in the tutorial is to:
>>> import hello_ext
>>> print hello.greet()
hello, world

But I get:
>>> import hello_ext
>>> hello.greet()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'hello' is not defined
>>> print hello_ext.greet()
hello, world
>>>

Why is my module named hello_ext, when in the tutorial it says its just
hello?

Regards,
Philipp

>
> - Volodya
>
> _______________________________________________
> Boost-users mailing list
> Boost-users <at> lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net