I've installed Cmake 2.0.1 and I've been successfull in compiling the library files of VXL.
Only when I try to include them in the settings of MVS I get a lot of linking errors.
I already checked that the library is actually included. And i've already tried to not compile the standard library. None of the two options seem to work unfortionately.
 
Here's a sample of the errors I recieve when linking in MVS. This is after Disabling including: "msvcrt" and "msvcprt".
 
--------------------Configuration: main - Win32 Release--------------------
Linking...
LINK : warning LNK4049: locally defined symbol ""public: __thiscall std::ios_base::Init::Init(void)" (??0Init@ios_base@std@@QAE@XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: __thiscall std::ios_base::Init::~Init(void)" (??1Init@ios_base@std@@QAE@XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: __thiscall std::_Winit::_Winit(void)" (??0_Winit@std@@QAE@XZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: __thiscall std::_Winit::~_Winit(void)" (??1_Winit@std@@QAE@XZ)" imported
LINK : warning LNK4049: locally defined symbol ""private: void __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Copy(unsigned int)" (?_Copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AA
EXI@Z)" imported
LINK : warning LNK4049: locally defined symbol "__iob" imported
LINK : warning LNK4049: locally defined symbol "_malloc" imported
 
Those are some of the warnings.
These are LNK2001 errors.
 
vil.lib(vil_stream_url.obj) : error LNK2001: unresolved external symbol __imp__htons@4
vil.lib(vil_stream_url.obj) : error LNK2001: unresolved external symbol __imp__closesocket@4
vil.lib(vil_stream_url.obj) : error LNK2001: unresolved external symbol __imp__gethostbyname@4
vil.lib(vil_stream_url.obj) : error LNK2001: unresolved external symbol __imp__socket@12
vil.lib(vil_nitf_image_subheader_v20.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) struct std::_Smanip<int>  __cdecl std::setprecision(int)" (__imp_?setprecision@std@@YA?AU?$_Smanip@H@1@H@Z)
vil.lib(vil_nitf_image_subheader_v20.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_stringstream<char,struct std::char_traits<char>,class std::allocator<char> >::`vbase destructor'(void)" (
__imp_??_D?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ)
 
If I do include "msvcrt" and "msvcprt" I get the following errors.
 
msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: __thiscall std::ios_base::Init::~Init(void)" (??1Init@ios_base@std@@QAE@XZ) already defined in libcp.lib(iostream.obj)
msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: __thiscall std::_Winit::_Winit(void)" (??0_Winit@std@@QAE@XZ) already defined in libcp.lib(wiostrea.obj)
msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: class std::basic_istream<char,struct std::char_traits<char> > & __thiscall std::basic_istream<char,struct std::char_traits<char> >::operator>>(double &)" (??5?$basic_istream@DU?$char_traits@D@std@@@
std@@QAEAAV01@AAN@Z) already defined in main.obj
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strncmp already defined in LIBC.lib(strncmp.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _memmove already defined in LIBC.lib(memmove.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _abort already defined in LIBC.lib(abort.obj)
vil.lib(vil_stream_url.obj) : error LNK2001: unresolved external symbol __imp__connect@12
vil.lib(vil_stream_url.obj) : error LNK2001: unresolved external symbol __imp__htons@4
vil.lib(vil_stream_url.obj) : error LNK2001: unresolved external symbol __imp__closesocket@4
 
I was hoping someone who already has the VXL library running in MVS 6.0 could lend me a hand.
 
The Project settings I used are:
 
Project Options in LINK:
"c:\vxl\*.lib" kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo
/subsystem:console /incremental:no /pdb:"Release/main.pdb"
/machine:I386 /out:"Release/main.exe" /libpath:"c:\vxl\*.lib"
 
Project Options in C/C++:
/nologo /ML /W3 /GX /O2 /I "c:\vxl" /D "WIN32" /D "NDEBUG" /D "_CONSOLE"
/D "_MBCS" /FR"Release/" /Fp"Release/main.pch" /YX /Fo"Release/" /Fd"Release/" /FD /c
 
Thanks in advance,
 
Jeroen Broekhuijsen