User forums > Using Code::Blocks
how to visual c++ 2005 compiler
lubos:
Hi!
please can someone tell me how to correctly set ms visual c++ 2005 ee compiler for latest directx sdk in code::blocks? i have no problems at VC++2005ee IDE but it can be nice to develop dx apps on codeblocks :) i have setted all compiler dirs and link libs but it still giving me link "unresolved external symbol" errors.
thanks,
rjmyst3:
Could you post the error lines? You're not linking to what you need to link to, but without the symbol names, I'd just be guessing as to what library is wrong/missing.
lubos:
ok so i install dx mesh tutorial(6) from dx sdk. open it with code::blocks, use default compiler, import settings.
when then i look at link libs it linking with winmm, d3d9, d3dx9, d3dxof, dxguid.
in compiler settings i have sellected vc++2005 and added incude dirs VCinclude, platformsdk, dxsdk,
libs dirs same
build log:
-------------- Build: Debug|Win32 in Meshes ---------------
Linking executable: Debug\Meshes.exe
Meshes.obj : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function "long __cdecl InitGeometry(void)" (?InitGeometry@@YAJXZ)
Meshes.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)
Meshes.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)
Meshes.obj : error LNK2019: unresolved external symbol __imp__UnregisterClassA@8 referenced in function _WinMain@16
Meshes.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageA@4 referenced in function _WinMain@16
Meshes.obj : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function _WinMain@16
Meshes.obj : error LNK2019: unresolved external symbol __imp__PeekMessageA@20 referenced in function _WinMain@16
Meshes.obj : error LNK2019: unresolved external symbol __imp__UpdateWindow@4 referenced in function _WinMain@16
Meshes.obj : error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function _WinMain@16
Meshes.obj : error LNK2019: unresolved external symbol __imp__CreateWindowExA@48 referenced in function _WinMain@16
Meshes.obj : error LNK2019: unresolved external symbol __imp__RegisterClassExA@4 referenced in function _WinMain@16
Debug\Meshes.exe : fatal error LNK1120: 11 unresolved externals
Process terminated with status 1120 (0 minutes, 0 seconds)
12 errors, 0 warnings
something with windows stuff?
thanks a lot for help
rjmyst3:
You are right, these are all windows api calls.
Looks like most of these are from User32, so add User32.lib to your linked libraries.
If you search for the documentation on these functions at http://msdn.microsoft.com/library/, the library that they are contained in is listed at the bottom.
lubos:
you are great! it compile and run fine, thank you a lot! :lol: :lol: :lol: :lol:
Navigation
[0] Message Index
[#] Next page
Go to full version