-----Original Message----- From: Douglas Gregor [mailto:doug.gregor@gmail.com] Subject: Re: [Boost-users] [BGL] How to build graphviz with MS VC8?
On Apr 26, 2006, at 3:49 PM, Rui Carvalho wrote:
Vc tells me: ErdosRenyi error LNK2019: unresolved external symbol "void __cdecl boost::read_graphviz(class std::basic_string
I've added C:\Boost\include\boost-1_33_1 to the include files dirs and C:\Boost\lib to the library files dirs in MS VC under Tools, Options, Projects.
You will also need to add libbgl-viz.lib to the list of libraries that MSVC will link to. I think it's also under Tools, Options, Projects, but I don't have MSVC here to check,
Thanks for this. I really appreciate your help. In fact, 'bjam install' already builds builds libbgl-viz.lib , both for VC7.1 and VC8 -sorry for my incorrect statement & for wasting bandwidth with this. I managed to compile the Cc-internet.cpp example in the BGL book in VC8 (for some reason it's not doing it on VC7.1). But to do that, I had to add libbgl-viz.lib to the list of additional options for the linker under Project, Properties, Linker, and Command Line. The trouble is that, as far as I understand, bjam is linking libbgl-viz.lib using the debug configuration in VC (and not the release -I get a LNK4098 if I try to compile the code in release configuration, which means I'm using the debug ver of libbgl-viz.lib in non-debug mode). So, although my code compiles and runs, I suppose it's not as optimized as it could be if libbgl-viz.lib had been built using the release configuration. Maybe someone has experienced a similar problem and can help here? How do we build libbgl-viz.lib to be used in release configurations? Cheers, Rui