On 01/28/2008 01:30 PM, Spiros Spirou wrote:
Hi Tiago,
On 27 Ιαν 2008, at 7:41 ΜΜ, Tiago de Paula Peixoto wrote:
It just occurred to me that the gcc binary is being used to link the library, not g++! That's probably the reason of all these undefined references... In your first message, I saw you ran configure with CXX=/opt/local/bin/i386-apple-darwin8.11.1-gcc-4.2.2. This is incorrect. You needed to do something like CXX=/opt/local/bin/i386-apple-darwin8.11.1-g++-4.2.2, assuming that's what g++ is called on your system. Please try a whole build from scratch, using g++ this time, and see if you still encounter any problems.
I thought that gcc is just the front-end to the compilers underneath. Thanks for your patience so far...
I did what you suggested, but I still get undefined symbols, although different ones. Strangely, these seem to be related to libbz2, which is in /opt/local/lib. Here's the output:
Try the link with -lbz2 and -lz. You can set LDFLAGS to "-lbz2 -lz" when issuing configure. I don't know why it is trying to link to those libraries directly, since graph_tool uses them only through boost_iostreams, and we're making a dynamic library. I suspect this must be related either to the way things are linked in MacOS X, or maybe how things are installed on your system, I'm not sure. If this works, I'll add "-lbz2 -lz" to graph_tool build by default, since it doesn't really hurt. Cheers, Tiago -- Tiago de Paula Peixoto <tiago@forked.de>