Umstieg auf Express
-
Hallo!
Das schenke ich euch:
1>------ Build started: Project: Code02, Configuration: Debug Win32 ------ 1>Compiling... 1>Application_C.cpp 1>e:\c++\directx\code02\source\application_c.cpp(249) : warning C4996: 'sprintf' was declared deprecated 1> c:\programme\microsoft visual studio 8\vc\include\stdio.h(345) : see declaration of 'sprintf' 1> Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' 1>main.cpp 1>e:\c++\directx\code02\source\main.cpp(54) : warning C4996: 'fopen' was declared deprecated 1> c:\programme\microsoft visual studio 8\vc\include\stdio.h(234) : see declaration of 'fopen' 1> Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' 1>Generating Code... 1>Linking... 1>Application_C.obj : error LNK2019: unresolved external symbol __imp__GetSystemMetrics@4 referenced in function "public: long __thiscall Application_C::Init(struct GLOBALS_TYPE const &)" (?Init@Application_C@@QAEJABUGLOBALS_TYPE@@@Z) 1>main.obj : error LNK2001: unresolved external symbol __imp__GetSystemMetrics@4 1>Application_C.obj : error LNK2019: unresolved external symbol __imp__SetRect@20 referenced in function "private: long __thiscall Application_C::showFPS(double)" (?showFPS@Application_C@@AAEJN@Z) 1>main.obj : error LNK2019: unresolved external symbol __imp__UnregisterClassA@8 referenced in function _WinMain@16 1>main.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageA@4 referenced in function _WinMain@16 1>main.obj : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function _WinMain@16 1>main.obj : error LNK2019: unresolved external symbol __imp__PeekMessageA@20 referenced in function _WinMain@16 1>main.obj : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function _WinMain@16 1>main.obj : error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function _WinMain@16 1>main.obj : error LNK2019: unresolved external symbol __imp__CreateWindowExA@48 referenced in function _WinMain@16 1>main.obj : error LNK2019: unresolved external symbol __imp__RegisterClassExA@4 referenced in function _WinMain@16 1>main.obj : error LNK2019: unresolved external symbol __imp__LoadCursorA@8 referenced in function _WinMain@16 1>main.obj : error LNK2019: unresolved external symbol __imp__LoadIconA@8 referenced in function _WinMain@16 1>main.obj : error LNK2019: unresolved external symbol __imp__DefWindowProcA@16 referenced in function "long __stdcall MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MsgProc@@YGJPAUHWND__@@IIJ@Z) 1>main.obj : error LNK2019: unresolved external symbol __imp__PostQuitMessage@4 referenced in function "long __stdcall MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MsgProc@@YGJPAUHWND__@@IIJ@Z) 1>main.obj : error LNK2019: unresolved external symbol __imp__PostMessageA@16 referenced in function "long __stdcall MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MsgProc@@YGJPAUHWND__@@IIJ@Z) 1>.\Debug/Code02.exe : fatal error LNK1120: 15 unresolved externals 1>Build log was saved at "file://e:\C++\DirectX\Code02\Debug\BuildLog.htm" 1>Code02 - 17 error(s), 2 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========Habe das verdammte Platform SDK installiert aber kann es nicht auf der Festplatte finden!
Was soll ich nur tun...
-
http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/
Auch die Standard-Libs wie user32.lib dem Linker mitgeteilt ?
-
user32.lib hat gefehlt...
Warum die nicht standardmäßig dabei ist

Thx!
-
ceplusplus schrieb:
user32.lib hat gefehlt...
Warum die nicht standardmäßig dabei ist

Thx!
Weil standartmaessig die SDK nicht dabei ist, und vorzugweise die .NET framework benutzt wird.
Man kann ja auch kein win32 project erstellen ohne es in den config dateien freizuschalten ... .Was ich seitdem oefters feststellen musste ist, dass die Winsdk help oft fehlerhalft ist und die falsche lib listet bei manchen funktionen.
Cheers
Flow