P
pyromedia
Anybody know why this does not link?
I have tried google 50 odd ways and nobody else seems to have this
problem
quite. It is meant to be a console application...
#include <iostream>
int main(){return 0;}
------ Build started: Project: HelloWorld, Configuration: Debug Win32
------
Compiling...
HelloWorld.cpp
Linking...
HelloWorld.obj : error LNK2019: unresolved external symbol "public:
__thiscall std::ios_base::Init::Init(void)"
(??0Init@ios_base@std@@QAE@XZ)
referenced in function "void __cdecl std::`dynamic initializer for
'_Ios_init''(void)" (??__E_Ios_init@std@@YAXXZ)
HelloWorld.obj : error LNK2019: unresolved external symbol "public:
__thiscall std::ios_base::Init::~Init(void)"
(??1Init@ios_base@std@@QAE@XZ)
referenced in function "void __cdecl std::`dynamic atexit destructor
for
'_Ios_init''(void)" (??__F_Ios_init@std@@YAXXZ)
C:\Documents and Settings\Kerewin\My Documents\Visual Studio
2005\Projects\HelloWorld\Debug\HelloWorld.exe : fatal error LNK1120: 2
unresolved externals
Build log was saved at "file://c:\Documents and Settings\KKere\My
Documents\Visual Studio
2005\Projects\HelloWorld\HelloWorld\Debug\BuildLog.htm"
HelloWorld - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
Points to note:
1. Strictly .NET 2005 C++ unmanaged.
2. Statically linking in LIBCPMTD.lib
3. Compiling with C++ exceptions enabled, /EHsc
4. XP Pro dev. environment.
Any ideas?
Oh, BTW http://comsc.dvc.edu/UsingVisualStudioNET05.pdf has a demo
which
apparently works... But not for me!
I have tried google 50 odd ways and nobody else seems to have this
problem
quite. It is meant to be a console application...
#include <iostream>
int main(){return 0;}
------ Build started: Project: HelloWorld, Configuration: Debug Win32
------
Compiling...
HelloWorld.cpp
Linking...
HelloWorld.obj : error LNK2019: unresolved external symbol "public:
__thiscall std::ios_base::Init::Init(void)"
(??0Init@ios_base@std@@QAE@XZ)
referenced in function "void __cdecl std::`dynamic initializer for
'_Ios_init''(void)" (??__E_Ios_init@std@@YAXXZ)
HelloWorld.obj : error LNK2019: unresolved external symbol "public:
__thiscall std::ios_base::Init::~Init(void)"
(??1Init@ios_base@std@@QAE@XZ)
referenced in function "void __cdecl std::`dynamic atexit destructor
for
'_Ios_init''(void)" (??__F_Ios_init@std@@YAXXZ)
C:\Documents and Settings\Kerewin\My Documents\Visual Studio
2005\Projects\HelloWorld\Debug\HelloWorld.exe : fatal error LNK1120: 2
unresolved externals
Build log was saved at "file://c:\Documents and Settings\KKere\My
Documents\Visual Studio
2005\Projects\HelloWorld\HelloWorld\Debug\BuildLog.htm"
HelloWorld - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
Points to note:
1. Strictly .NET 2005 C++ unmanaged.
2. Statically linking in LIBCPMTD.lib
3. Compiling with C++ exceptions enabled, /EHsc
4. XP Pro dev. environment.
Any ideas?
Oh, BTW http://comsc.dvc.edu/UsingVisualStudioNET05.pdf has a demo
which
apparently works... But not for me!