When trying to link my C++ solution in Visual Studio 2008, I get the message "LNK1104: cannot open file 'stlport_statix.lib'".
I have installed STLport, and the correct path is set in Tools->Options->Projects And Solutions->VC++ Directories->Library Files
. STLport does however not provide a file called stlport_statix.lib
, only stlport_static.lib
.
Where does Visual Studio get the idea to swap the ending 'c' with an 'x'?
Note that this might very well be a real simple mistake, as I am not familiar with the Microsoft stack (coming from a Linux/gcc background).
Edit: I have found out where the 'x' comes from, it means "static STLport lib built with dynamic RTL". The one who built STLPort didn't build that version, since we are not supposed to use it.
Edit2: I am now trying to figure out why Visual Studio is building with /MD
, even though the project is set to use /MT
under "Code Generation". This seems to be the root of the problem.