Hi,
This is my first post to the mailing list, and I hope I'm not bringing
up a silly issue but I've been over this a million times already and I
still can't figure it out, so any help is greatly appreciated.
This is my setup:
Windows XP SP2
Visual Studio 2005
STLport-5.1.5
boost_1_34_1
I'm trying to write a tiny program, just to get stlport and boost to
play nice together and I still have "unresolved external symbol" errors.
I downloaded stlport-5.1.5 and built it according to the instructions:
* configure.bat -c msvc8
* nmake /f msvc.mak
* nmake /f msvc.mak install
I also added stlport\bin to my path
Next, I downloaded the boost_1_34_1 windows installer and checked all
the options to get all the libraries and added it to my path.
Next, I configured visual studio 2005 as follows:
Tools -> Options -> Project and Solutions -> VC++ Directories -> Show
directories for:
Include Files: Add the path to stlport headers (D:\Program
Files\STLport-5.1.5\stlport)
Library Files: Add the path to stlport libs (D:\Program
Files\STLport-5.1.5\lib)
Next, on the project level, I Added __STL_DEBUG to the list of
preprocessors.
I'm trying to build a Multi-threaded Debug DLL (/MDd).
I also set the (/Zc:wchar_t-) option.
When I tried to link, I got an error saying that
libboost_program_options-vc80-mt-gdp-1_34_1.lib could not be found, so I
had to build it.
I edited the user-config.jam file to add the following line:
using stlport : : D:/Program Files/STLport-5.1.5 D:/Program
Files/STLport-5.1.5/lib ;
This is the command I used to build the new lib
bjam --toolset=msvc-8.0 link=static stdlib=stlport
threading=multi cxxflags="-Zc:wchar_t-" --with-program_options -a -d2
I built the lib and moved it from bin.v2 to lib.
As you can see I took every precaution with wchar_t so that all the libs
are compatible, and still every time I try to link the simple program I
get this error:
error LNK2019: unresolved external symbol "public: __thiscall
boost::program_options::options_description::options_description(class
stlpd_std::basic_string