[mongodb-user] Cannot use C++ client, fails to compile, spent 1 full day on this so far

123 views
Skip to first unread message

philip

unread,
Apr 19, 2010, 11:39:12 PM4/19/10
to mongodb-user
Hi,

No matter what I do, I cannot get the C++ client mongodb to work
within my Visual Studio C++ application.

Visual Studio 2008 Express Edition.

Linker options:
/OUT:"c:\home\projects\dimensionman\Debug\dimensionman.exe" /
INCREMENTAL /NOLOGO /LIBPATH:"C:\Program Files\boost
\boost_1_35_0\lib" /LIBPATH:"C:\home\projects\dimensionman\sdl\lib" /
MANIFEST /MANIFESTFILE:"Debug\dimensionman.exe.intermediate.manifest" /
MANIFESTUAC:"level='asInvoker' uiAccess='false'" /
NODEFAULTLIB:"msvcrt.lib" /NODEFAULTLIB:"libcmt.lib" /DEBUG /PDB:"c:
\home\projects\dimensionman\Debug\dimensionman.pdb" /
SUBSYSTEM:WINDOWS /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /
ERRORREPORT:PROMPT wsock32.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

Include directories:
"C:\Program Files\boost\boost_1_35_0";C:\home\projects\dimensionman
\mongodb\include;C:\home\projects\dimensionman\sdl\include

Library directories:
"C:\Program Files\boost\boost_1_35_0\lib";C:\home\projects\dimensionman
\sdl\lib

#pragma comment(lib,"/home/projects/dimensionman/mongodb/lib/
mongoclient")

1>------ Rebuild All started: Project: dimensionman, Configuration:
Debug Win32 ------
1>Deleting intermediate and output files for project 'dimensionman',
configuration 'Debug|Win32'
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>DataService.cpp
1>dimensionman.cpp
1>Linking to lib file: libboost_filesystem-vc90-mt-sgd-1_35.lib
1>Linking to lib file: libboost_system-vc90-mt-sgd-1_35.lib
1>Linking to lib file: libboost_program_options-vc90-mt-sgd-1_35.lib
1>Linking to lib file: libboost_thread-vc90-mt-sgd-1_35.lib
1>Linking to lib file: libboost_date_time-vc90-mt-sgd-1_35.lib
1>c:\home\projects\dimensionman\mongodb\include\mongo\util
\goodies.h(606) : warning C4996: 'strncpy': This function or variable
may be unsafe. Consider using strncpy_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include
\string.h(157) : see declaration of 'strncpy'
1>c:\home\projects\dimensionman\mongodb\include\mongo\util
\goodies.h(623) : warning C4996: 'strncpy': This function or variable
may be unsafe. Consider using strncpy_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include
\string.h(157) : see declaration of 'strncpy'
1>c:\home\projects\dimensionman\mongodb\include\mongo\util
\goodies.h(637) : warning C4800: 'int' : forcing value to bool 'true'
or 'false' (performance warning)
1>c:\home\projects\dimensionman\mongodb\include\mongo\util
\assert_util.h(48) : warning C4996: 'strncpy': This function or
variable may be unsafe. Consider using strncpy_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include
\string.h(157) : see declaration of 'strncpy'
1>c:\home\projects\dimensionman\mongodb\include\mongo\util
\assert_util.h(49) : warning C4996: 'strncpy': This function or
variable may be unsafe. Consider using strncpy_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include
\string.h(157) : see declaration of 'strncpy'
1>c:\home\projects\dimensionman\mongodb\include\mongo\util
\sock.h(97) : warning C4996: 'strerror': This function or variable may
be unsafe. Consider using strerror_s instead. To disable deprecation,
use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include
\string.h(126) : see declaration of 'strerror'
1>c:\home\projects\dimensionman\mongodb\include\mongo\util
\sock.h(194) : warning C4996: 'strerror': This function or variable
may be unsafe. Consider using strerror_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include
\string.h(126) : see declaration of 'strerror'
1>c:\home\projects\dimensionman\mongodb\include\mongo\util
\sock.h(236) : warning C4996: 'strerror': This function or variable
may be unsafe. Consider using strerror_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include
\string.h(126) : see declaration of 'strerror'
1>c:\home\projects\dimensionman\mongodb\include\mongo\util
\builder.h(156) : warning C4996: 'sprintf': This function or variable
may be unsafe. Consider using sprintf_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include
\stdio.h(366) : see declaration of 'sprintf'
1>c:\home\projects\dimensionman\mongodb\include\mongo\util
\builder.h(159) : warning C4996: 'sprintf': This function or variable
may be unsafe. Consider using sprintf_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include
\stdio.h(366) : see declaration of 'sprintf'
1>c:\home\projects\dimensionman\mongodb\include\mongo\util
\builder.h(162) : warning C4996: 'sprintf': This function or variable
may be unsafe. Consider using sprintf_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include
\stdio.h(366) : see declaration of 'sprintf'
1>c:\home\projects\dimensionman\mongodb\include\mongo\util
\builder.h(165) : warning C4996: 'sprintf': This function or variable
may be unsafe. Consider using sprintf_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include
\stdio.h(366) : see declaration of 'sprintf'
1>c:\home\projects\dimensionman\mongodb\include\mongo\util
\builder.h(168) : warning C4996: 'sprintf': This function or variable
may be unsafe. Consider using sprintf_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include
\stdio.h(366) : see declaration of 'sprintf'
1>c:\home\projects\dimensionman\mongodb\include\mongo\util
\builder.h(171) : warning C4996: 'sprintf': This function or variable
may be unsafe. Consider using sprintf_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include
\stdio.h(366) : see declaration of 'sprintf'
1>c:\home\projects\dimensionman\mongodb\include\mongo\util
\builder.h(174) : warning C4996: 'sprintf': This function or variable
may be unsafe. Consider using sprintf_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include
\stdio.h(366) : see declaration of 'sprintf'
1>c:\home\projects\dimensionman\mongodb\include\mongo\util
\builder.h(177) : warning C4996: 'sprintf': This function or variable
may be unsafe. Consider using sprintf_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include
\stdio.h(366) : see declaration of 'sprintf'
1>c:\home\projects\dimensionman\mongodb\include\mongo\db
\jsobj.h(1172) : warning C4355: 'this' : used in base member
initializer list
1>c:\home\projects\dimensionman\mongodb\include\mongo\db
\jsobj.h(1177) : warning C4355: 'this' : used in base member
initializer list
1>c:\home\projects\dimensionman\mongodb\include\mongo\db
\jsobj.h(1181) : warning C4355: 'this' : used in base member
initializer list
1>c:\home\projects\dimensionman\dimensionman\dimensionman.cpp(232) :
warning C4244: 'argument' : conversion from 'int' to 'GLfloat',
possible loss of data
1>c:\home\projects\dimensionman\dimensionman\dimensionman.cpp(232) :
warning C4244: 'argument' : conversion from 'int' to 'GLfloat',
possible loss of data
1>c:\home\projects\dimensionman\dimensionman\dimensionman.cpp(242) :
warning C4244: 'argument' : conversion from 'const int' to 'GLfloat',
possible loss of data
1>c:\home\projects\dimensionman\dimensionman\dimensionman.cpp(243) :
warning C4244: 'argument' : conversion from 'const int' to 'GLfloat',
possible loss of data
1>c:\home\projects\dimensionman\dimensionman\dimensionman.cpp(243) :
warning C4244: 'argument' : conversion from 'const int' to 'GLfloat',
possible loss of data
1>c:\home\projects\dimensionman\dimensionman\dimensionman.cpp(244) :
warning C4244: 'argument' : conversion from 'const int' to 'GLfloat',
possible loss of data
1>Generating Code...
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Linking...
1>SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined
symbol _isspace imported in function _ParseCommandLine
1>SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined
symbol ___iob_func imported in function _ShowError
1>SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined
symbol _fopen imported in function _cleanup_output
1>SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined
symbol _fgetc imported in function _cleanup_output
1>SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined
symbol _fclose imported in function _cleanup_output
1>SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined
symbol _setvbuf imported in function _redirect_output
1>SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined
symbol _freopen imported in function _redirect_output
1>SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined
symbol _exit imported in function _main
1>SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined
symbol _strrchr imported in function _main
1>SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined
symbol _atoi imported in function _WinMain@16
1>mongoclient.lib(lasterror.obj) : error LNK2001: unresolved external
symbol __invalid_parameter_noinfo
1>mongoclient.lib(base64.obj) : error LNK2001: unresolved external
symbol __invalid_parameter_noinfo
1>mongoclient.lib(message.obj) : error LNK2001: unresolved external
symbol __invalid_parameter_noinfo
1>mongoclient.lib(sock.obj) : error LNK2001: unresolved external
symbol __invalid_parameter_noinfo
1>mongoclient.lib(util.obj) : error LNK2001: unresolved external
symbol __invalid_parameter_noinfo
1>mongoclient.lib(json.obj) : error LNK2001: unresolved external
symbol __invalid_parameter_noinfo
1>mongoclient.lib(dbclient.obj) : error LNK2019: unresolved external
symbol __invalid_parameter_noinfo referenced in function "public:
class std::_Vector_const_iterator<class mongo::BSONObj,class
std::allocator<class mongo::BSONObj> > & __thiscall
std::_Vector_const_iterator<class mongo::BSONObj,class
std::allocator<class mongo::BSONObj> >::operator++(void)" (??E?
$_Vector_const_iterator@VBSONObj@mongo@@V?
$allocator@VBSONObj@mongo@@@std@@@std@@QAEAAV01@XZ)
1>mongoclient.lib(assert_util.obj) : error LNK2001: unresolved
external symbol __invalid_parameter_noinfo
1>mongoclient.lib(jsobj.obj) : error LNK2001: unresolved external
symbol __invalid_parameter_noinfo
1>mongoclient.lib(clientOnly.obj) : error LNK2001: unresolved external
symbol __invalid_parameter_noinfo
1>SDLmain.lib(SDL_win32_main.obj) : error LNK2019: unresolved external
symbol __imp__fprintf referenced in function _ShowError
1>SDLmain.lib(SDL_win32_main.obj) : error LNK2019: unresolved external
symbol __imp__remove referenced in function _cleanup_output
1>SDLmain.lib(SDL_win32_main.obj) : error LNK2019: unresolved external
symbol __imp__setbuf referenced in function _redirect_output
1>c:\home\projects\dimensionman\Debug\dimensionman.exe : fatal error
LNK1120: 4 unresolved externals
1>Build log was saved at "file://c:\home\projects\dimensionman
\dimensionman\Debug\BuildLog.htm"
1>dimensionman - 14 error(s), 35 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.

Eliot Horowitz

unread,
Apr 19, 2010, 11:46:58 PM4/19/10
to mongod...@googlegroups.com
I don't know visual studio well, but I think its a debug vs release library issue.
Try switching what your compiling with.

philip

unread,
Apr 19, 2010, 11:55:03 PM4/19/10
to mongodb-user

In release build, still problems.

linker options:

/OUT:"c:\home\projects\dimensionman\Release\dimensionman.exe" /
INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Program Files\boost
\boost_1_35_0\lib" /LIBPATH:"C:\home\projects\dimensionman\sdl\lib" /
MANIFEST /MANIFESTFILE:"Release
\dimensionman.exe.intermediate.manifest" /
MANIFESTUAC:"level='asInvoker' uiAccess='false'" /
NODEFAULTLIB:"msvcrt.lib" /NODEFAULTLIB:"msvcprt.lib" /DEBUG /PDB:"c:
\home\projects\dimensionman\Release\dimensionman.pdb" /
SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /LTCG /DYNAMICBASE /NXCOMPAT /
MACHINE:X86 /ERRORREPORT:PROMPT wsock32.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

Include and libs are same ... errors are

1>------ Rebuild All started: Project: dimensionman, Configuration:
Release Win32 ------
1>Deleting intermediate and output files for project 'dimensionman',
configuration 'Release|Win32'
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>dimensionman.cpp
1>Linking to lib file: libboost_filesystem-vc90-mt-1_35.lib
1>Linking to lib file: libboost_system-vc90-mt-1_35.lib
1>Linking to lib file: libboost_program_options-vc90-mt-1_35.lib
1>Linking to lib file: libboost_thread-vc90-mt-1_35.lib
1>Linking to lib file: libboost_date_time-vc90-mt-1_35.lib
1>c:\home\projects\dimensionman\mongodb\include\mongo\util/
goodies.h(606) : warning C4996: 'strncpy': This function or variable
may be unsafe. Consider using strncpy_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include
\string.h(157) : see declaration of 'strncpy'
1>c:\home\projects\dimensionman\mongodb\include\mongo\util/
goodies.h(623) : warning C4996: 'strncpy': This function or variable
may be unsafe. Consider using strncpy_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include
\string.h(157) : see declaration of 'strncpy'
1>c:\home\projects\dimensionman\mongodb\include\mongo\util/
goodies.h(637) : warning C4800: 'int' : forcing value to bool 'true'
or 'false' (performance warning)
1>c:\home\projects\dimensionman\mongodb\include\mongo\util/
assert_util.h(48) : warning C4996: 'strncpy': This function or
variable may be unsafe. Consider using strncpy_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include
\string.h(157) : see declaration of 'strncpy'
1>c:\home\projects\dimensionman\mongodb\include\mongo\util/
assert_util.h(49) : warning C4996: 'strncpy': This function or
variable may be unsafe. Consider using strncpy_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include
\string.h(157) : see declaration of 'strncpy'
1>c:\home\projects\dimensionman\mongodb\include\mongo\util\../util/
sock.h(97) : warning C4996: 'strerror': This function or variable may
be unsafe. Consider using strerror_s instead. To disable deprecation,
use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include
\string.h(126) : see declaration of 'strerror'
1>c:\home\projects\dimensionman\mongodb\include\mongo\util\../util/
sock.h(194) : warning C4996: 'strerror': This function or variable may
be unsafe. Consider using strerror_s instead. To disable deprecation,
use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include
\string.h(126) : see declaration of 'strerror'
1>c:\home\projects\dimensionman\mongodb\include\mongo\util\../util/
sock.h(236) : warning C4996: 'strerror': This function or variable may
be unsafe. Consider using strerror_s instead. To disable deprecation,
use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include
\string.h(126) : see declaration of 'strerror'
1>c:\home\projects\dimensionman\mongodb\include\mongo\db\../util/
builder.h(156) : warning C4996: 'sprintf': This function or variable
may be unsafe. Consider using sprintf_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include
\stdio.h(366) : see declaration of 'sprintf'
1>c:\home\projects\dimensionman\mongodb\include\mongo\db\../util/
builder.h(159) : warning C4996: 'sprintf': This function or variable
may be unsafe. Consider using sprintf_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include
\stdio.h(366) : see declaration of 'sprintf'
1>c:\home\projects\dimensionman\mongodb\include\mongo\db\../util/
builder.h(162) : warning C4996: 'sprintf': This function or variable
may be unsafe. Consider using sprintf_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include
\stdio.h(366) : see declaration of 'sprintf'
1>c:\home\projects\dimensionman\mongodb\include\mongo\db\../util/
builder.h(165) : warning C4996: 'sprintf': This function or variable
may be unsafe. Consider using sprintf_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include
\stdio.h(366) : see declaration of 'sprintf'
1>c:\home\projects\dimensionman\mongodb\include\mongo\db\../util/
builder.h(168) : warning C4996: 'sprintf': This function or variable
may be unsafe. Consider using sprintf_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include
\stdio.h(366) : see declaration of 'sprintf'
1>c:\home\projects\dimensionman\mongodb\include\mongo\db\../util/
builder.h(171) : warning C4996: 'sprintf': This function or variable
may be unsafe. Consider using sprintf_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include
\stdio.h(366) : see declaration of 'sprintf'
1>c:\home\projects\dimensionman\mongodb\include\mongo\db\../util/
builder.h(174) : warning C4996: 'sprintf': This function or variable
may be unsafe. Consider using sprintf_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include
\stdio.h(366) : see declaration of 'sprintf'
1>c:\home\projects\dimensionman\mongodb\include\mongo\db\../util/
builder.h(177) : warning C4996: 'sprintf': This function or variable
may be unsafe. Consider using sprintf_s instead. To disable
deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include
\stdio.h(366) : see declaration of 'sprintf'
1>c:\home\projects\dimensionman\mongodb\include\mongo\client\../db/
jsobj.h(1172) : warning C4355: 'this' : used in base member
initializer list
1>c:\home\projects\dimensionman\mongodb\include\mongo\client\../db/
jsobj.h(1177) : warning C4355: 'this' : used in base member
initializer list
1>c:\home\projects\dimensionman\mongodb\include\mongo\client\../db/
jsobj.h(1181) : warning C4355: 'this' : used in base member
initializer list
1>.\dimensionman.cpp(232) : warning C4244: 'argument' : conversion
from 'int' to 'GLfloat', possible loss of data
1>.\dimensionman.cpp(232) : warning C4244: 'argument' : conversion
from 'int' to 'GLfloat', possible loss of data
1>.\dimensionman.cpp(242) : warning C4244: 'argument' : conversion
from 'const int' to 'GLfloat', possible loss of data
1>.\dimensionman.cpp(243) : warning C4244: 'argument' : conversion
from 'const int' to 'GLfloat', possible loss of data
1>.\dimensionman.cpp(243) : warning C4244: 'argument' : conversion
from 'const int' to 'GLfloat', possible loss of data
1>.\dimensionman.cpp(244) : warning C4244: 'argument' : conversion
from 'const int' to 'GLfloat', possible loss of data
1>DataService.cpp
1>Linking...
1>dimensionman.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned int const
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::npos" (__imp_?npos@?$basic_string@DU?
$char_traits@D@std@@V?$allocator@D@2@@std@@2IB)
1>libboost_filesystem-vc90-mt-1_35.lib(operations.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
static unsigned int const std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::npos" (__imp_?
npos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2IB)
1>libboost_system-vc90-mt-1_35.lib(error_code.obj) : error LNK2001:
unresolved external symbol "__declspec(dllimport) public: static
unsigned int const std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::npos" (__imp_?
npos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2IB)
1>libboost_filesystem-vc90-mt-1_35.lib(operations.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
__thiscall std::basic_string<wchar_t,struct
std::char_traits<wchar_t>,class std::allocator<wchar_t>
>::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> >(class std::basic_string<wchar_t,struct
std::char_traits<wchar_t>,class std::allocator<wchar_t> > const
&)" (__imp_??0?$basic_string@_WU?$char_traits@_W@std@@V?
$allocator@_W@2@@std@@QAE@ABV01@@Z)
1>libboost_filesystem-vc90-mt-1_35.lib(operations.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
__thiscall std::basic_string<wchar_t,struct
std::char_traits<wchar_t>,class std::allocator<wchar_t>
>::~basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> >(void)" (__imp_??1?$basic_string@_WU?
$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@XZ)
1>libboost_filesystem-vc90-mt-1_35.lib(operations.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> > & __thiscall
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> >::operator=(wchar_t const *)" (__imp_??4?
$basic_string@_WU?$char_traits@_W@std@@V?
$allocator@_W@2@@std@@QAEAAV01@PB_W@Z)
1>libboost_filesystem-vc90-mt-1_35.lib(operations.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> > & __thiscall
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> >::operator+=(wchar_t const *)" (__imp_??Y?
$basic_string@_WU?$char_traits@_W@std@@V?
$allocator@_W@2@@std@@QAEAAV01@PB_W@Z)
1>libboost_filesystem-vc90-mt-1_35.lib(operations.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
__thiscall std::basic_string<wchar_t,struct
std::char_traits<wchar_t>,class std::allocator<wchar_t>
>::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> >(wchar_t const *)" (__imp_??0?
$basic_string@_WU?$char_traits@_W@std@@V?
$allocator@_W@2@@std@@QAE@PB_W@Z)
1>libboost_filesystem-vc90-mt-1_35.lib(operations.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> > & __thiscall
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> >::operator=(class
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> > const &)" (__imp_??4?$basic_string@_WU?
$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@ABV01@@Z)
1>libboost_filesystem-vc90-mt-1_35.lib(operations.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
__thiscall std::basic_string<wchar_t,struct
std::char_traits<wchar_t>,class std::allocator<wchar_t>
>::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> >(void)" (__imp_??0?$basic_string@_WU?
$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@XZ)
1>libboost_filesystem-vc90-mt-1_35.lib(operations.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> > & __thiscall
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> >::operator+=(wchar_t)" (__imp_??Y?
$basic_string@_WU?$char_traits@_W@std@@V?
$allocator@_W@2@@std@@QAEAAV01@_W@Z)
1>libboost_filesystem-vc90-mt-1_35.lib(operations.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
unsigned int __thiscall std::basic_string<wchar_t,struct
std::char_traits<wchar_t>,class std::allocator<wchar_t>
>::find(wchar_t,unsigned int)const " (__imp_?find@?$basic_string@_WU?
$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z)
1>libboost_filesystem-vc90-mt-1_35.lib(operations.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
static unsigned int const std::basic_string<wchar_t,struct
std::char_traits<wchar_t>,class std::allocator<wchar_t>
>::npos" (__imp_?npos@?$basic_string@_WU?$char_traits@_W@std@@V?
$allocator@_W@2@@std@@2IB)
1>libboost_filesystem-vc90-mt-1_35.lib(operations.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
unsigned int __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::rfind(char const
*,unsigned int,unsigned int)const " (__imp_?rfind@?$basic_string@DU?
$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z)
1>libboost_filesystem-vc90-mt-1_35.lib(operations.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
unsigned int __thiscall std::basic_string<wchar_t,struct
std::char_traits<wchar_t>,class std::allocator<wchar_t>
>::find_last_of(wchar_t,unsigned int)const " (__imp_?find_last_of@?
$basic_string@_WU?$char_traits@_W@std@@V?
$allocator@_W@2@@std@@QBEI_WI@Z)
1>libboost_filesystem-vc90-mt-1_35.lib(operations.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> > & __thiscall
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> >::erase(unsigned int,unsigned int)" (__imp_?
erase@?$basic_string@_WU?$char_traits@_W@std@@V?
$allocator@_W@2@@std@@QAEAAV12@II@Z)
1>libboost_filesystem-vc90-mt-1_35.lib(operations.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
class std::_String_iterator<wchar_t,struct
std::char_traits<wchar_t>,class std::allocator<wchar_t> > __thiscall
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> >::end(void)" (__imp_?end@?$basic_string@_WU?
$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE?AV?
$_String_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ)
1>libboost_filesystem-vc90-mt-1_35.lib(operations.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> > __thiscall std::basic_string<wchar_t,struct
std::char_traits<wchar_t>,class std::allocator<wchar_t>
>::substr(unsigned int,unsigned int)const " (__imp_?substr@?
$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?
AV12@II@Z)
1>libboost_thread-vc90-mt-1_35.lib(thread.obj) : error LNK2001:
unresolved external symbol __imp___beginthreadex
1>SDLmain.lib(SDL_win32_main.obj) : error LNK2001: unresolved external
symbol __imp__fprintf
1>SDLmain.lib(SDL_win32_main.obj) : error LNK2001: unresolved external
symbol __imp__remove
1>SDLmain.lib(SDL_win32_main.obj) : error LNK2001: unresolved external
symbol __imp__setbuf
1>c:\home\projects\dimensionman\Release\dimensionman.exe : fatal error
LNK1120: 20 unresolved externals
1>Build log was saved at "file://c:\home\projects\dimensionman
\dimensionman\Release\BuildLog.htm"
1>dimensionman - 23 error(s), 25 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========




> > symbol ___iob_func imported in function _ShowError...
>
> read more »

philip

unread,
Apr 20, 2010, 12:21:21 AM4/20/10
to mongodb-user

Guys (and girls? any?), please make it easier to create a project from
C++. I followed the instructions for C++ project and it didn't work
for me. This can be sad for newbies to MongoDB like me.

I'm going to move to Scala in the mean-time.
> 1>libboost_filesystem-vc90-mt-1_35.lib(operations.obj)...
Reply all
Reply to author
Forward
0 new messages