c++ linker new outmost symbols
i'm building an concentration opposing legacy, third jubilee libraries, carrying problems fasten stage. i'm perplexing accumulate visible studio 9. accumulate management is:
cl -dnt40 -dpomdll -dcrtapi1=_cdecl
-dcrtapi2=cdecl -d_win32 -dwin32 -dwin32_lean_and_mean -dwnt -dbypass_flex -d_intel=1 -diplib=none -i. -i"d:\src\include" -i"c:\program files\microsoft visible studio
9.0\vc\include" -c -nologo -ehsc -w1 -ox -oy- -md mymain.c
the formula compiles cleanly. couple management is:
link -debug -nologo -machine:ix86
-verbose:lib -subsystem:console mymain.obj wsock32.lib advapi32.lib
msvcrt.lib oldnames.lib kernel32.lib
winmm.lib [snip infinite list of
dependencies] d:\src\lib\app_main.obj
-out:mymain.exe
the errors i'm removing are:
app_main.obj : blunder lnk2019:
unresolved outmost symbol
"_\_declspec(dllimport) public: void
__thiscall std::locale::facet::_register(void)"
(__imp_?_register@facet@locale@std@@qaexxz)
referenced duty "class
std::ctype<char> const & __cdecl
std::use_facet<class std::ctype<char>
(class std::locale const &)" (??$use_facet@v?$ctype@d@std@@@std@@yaabv?$ctype@d@0@abvlocale@0@@z)
app_main.obj : blunder lnk2019:
unresolved outmost symbol
"__declspec(dllimport) public: static
unsigned int __cdecl
std::ctype<char>::_getcat(class
std::locale::facet const * *)"
(__imp_?_getcat@?$ctype@d@std@@saipapbvfacet@locale@2@@z)
referenced duty "class
std::ctype<char> const & __cdecl
std::use_facet<class std::ctype<char>
(class std::locale const &)" (??$use_facet@v?$ctype@d@std@@@std@@yaabv?$ctype@d@0@abvlocale@0@@z)
app_main.obj : blunder lnk2019:
unresolved outmost symbol
"__declspec(dllimport) public: static
unsigned int __cdecl
std::ctype<unsigned
short>::_getcat(class
std::locale::facet const * *)"
(__imp_?_getcat@?$ctype@g@std@@saipapbvfacet@locale@2@@z)
referenced duty "class
std::ctype<unsigned short> const &
__cdecl std::use_facet<class std::ctype<unsigned short> >(class
std::locale const &)"
(??$use_facet@v?$ctype@g@std@@@std@@yaabv?$ctype@g@0@abvlocale@0@@z)
mymain.exe : lethal blunder lnk1120: 3
unresolved externals
notice errors opening leave code, formula - app_main.obj biased leave code, while mymain.c source. i've finished poison around, i've review says form blunder caused mismatch -md switch between formula library i'm fasten to. given i'm traffic leave code, fortitude environment. it's enlarged given i've finished c++ work, even longer given i've used visible studio, i'm anticipating only irrationality part. any ideas resolved?
Comments
Post a Comment