User forums > Using Code::Blocks

Quake 3 engine.... can't inport solution

<< < (6/7) > >>

zieQ:
During import, there's some files removed from some projects according to the debug log, but since it's not my code, I didn't check if everything worked properly. I will check this ASAP but since I do not have DirectX SDK installed, I could not test anything. Anyway, thanks for the bug reporting ;)

The problem is related to projects imports (I fixed workspace imports only) and maybe to dependencies. Look in external dependencies fields and link libraries fields, some projects should depend on others, especially quake3 one IIRC.

grv575:
I think that part is fine.  The only thing that doesn't work is the UI project.  Some sources are not checked in the Release target when they need to be (nothing to do with dependencies I don't think since the files are all .c source files, already built by the game project as well, but only output as .obj files...no .lib files built for this...q_shared.c, etc).

zieQ:
I do not have much time to investigate the problem this week, can someone try to find and fix it?

zieQ:
Humm, I'm doubtful about the problem. In q3_ui, some files are "ExcludedFromBuild" for some build configurations but not others. C::B seems to handle properly those "ExcludedFromBuild" files according to me. Maybe a compiler-specific problem?

Edit: no, I found out the problem. The importer do not handle the "PreprocessorDefinitions" field for each file/configuration
Edit2: big parts of msvc7loader.* need to be reworked to handle options properly!

cborders:
I can import the projec with no problems, but it won't build.  I followed the instructions earlier in this post and everything builds except for the quake3 project.  I get the following linker errors.  What am I doing wrong?

win_input.obj : error LNK2019: unresolved external symbol __imp__ShowCursor@4 referenced in function _IN_ActivateWin32Mouse
win_input.obj : error LNK2019: unresolved external symbol __imp__ClipCursor@4 referenced in function _IN_ActivateWin32Mouse
win_input.obj : error LNK2019: unresolved external symbol __imp__SetCapture@4 referenced in function _IN_ActivateWin32Mouse
win_input.obj : error LNK2019: unresolved external symbol __imp__SetCursorPos@8 referenced in function _IN_ActivateWin32Mouse
win_input.obj : error LNK2019: unresolved external symbol __imp__GetWindowRect@8 referenced in function _IN_ActivateWin32Mouse
win_input.obj : error LNK2019: unresolved external symbol __imp__GetSystemMetrics@4 referenced in function _IN_ActivateWin32Mouse
win_input.obj : error LNK2019: unresolved external symbol __imp__ReleaseCapture@0 referenced in function _IN_DeactivateWin32Mouse
win_input.obj : error LNK2019: unresolved external symbol __imp__GetCursorPos@4 referenced in function _IN_Win32Mouse
win_main.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageA@4 referenced in function _Sys_Error
win_main.obj : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function _Sys_Error
win_main.obj : error LNK2019: unresolved external symbol __imp__GetMessageA@16 referenced in function _Sys_Error
win_main.obj : error LNK2019: unresolved external symbol __imp__CloseClipboard@0 referenced in function _Sys_GetClipboardData
win_main.obj : error LNK2019: unresolved external symbol __imp__GetClipboardData@4 referenced in function _Sys_GetClipboardData
win_main.obj : error LNK2019: unresolved external symbol __imp__OpenClipboard@4 referenced in function _Sys_GetClipboardData
win_main.obj : error LNK2019: unresolved external symbol __imp__MessageBoxExA@20 referenced in function _Sys_LoadDll
win_main.obj : error LNK2019: unresolved external symbol __imp__PeekMessageA@20 referenced in function _Sys_GetEvent
win_shared.obj : error LNK2019: unresolved external symbol __imp__GetUserNameA@8 referenced in function _Sys_GetCurrentUser
win_snd.obj : error LNK2019: unresolved external symbol __imp__CoUninitialize@0 referenced in function _SNDDMA_Shutdown
win_snd.obj : error LNK2019: unresolved external symbol __imp__CoCreateInstance@20 referenced in function _SNDDMA_InitDS
win_snd.obj : error LNK2019: unresolved external symbol __imp__CoInitialize@4 referenced in function _SNDDMA_Init
win_syscon.obj : error LNK2019: unresolved external symbol __imp__SetFocus@4 referenced in function _InputLineWndProc@16
renderer.lib(win_glimp.obj) : error LNK2019: unresolved external symbol __imp__SetFocus@4 referenced in function _GLimp_SpawnRenderThread
win_syscon.obj : error LNK2019: unresolved external symbol __imp__CallWindowProcA@20 referenced in function _InputLineWndProc@16
win_syscon.obj : error LNK2019: unresolved external symbol __imp__SetWindowTextA@8 referenced in function _InputLineWndProc@16
win_syscon.obj : error LNK2019: unresolved external symbol __imp__GetWindowTextA@12 referenced in function _InputLineWndProc@16
win_syscon.obj : error LNK2019: unresolved external symbol __imp__DestroyWindow@4 referenced in function _Sys_DestroyConsole
renderer.lib(win_glimp.obj) : error LNK2001: unresolved external symbol __imp__DestroyWindow@4
win_syscon.obj : error LNK2019: unresolved external symbol __imp__CloseWindow@4 referenced in function _Sys_DestroyConsole
win_syscon.obj : error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function _Sys_DestroyConsole
renderer.lib(win_glimp.obj) : error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function _GLW_ChoosePFD
win_syscon.obj : error LNK2019: unresolved external symbol __imp__SendMessageA@16 referenced in function _Sys_ShowConsole
win_syscon.obj : error LNK2019: unresolved external symbol __imp__CreateWindowExA@48 referenced in function _Sys_SetErrorText
renderer.lib(win_glimp.obj) : error LNK2001: unresolved external symbol __imp__CreateWindowExA@48
win_syscon.obj : error LNK2019: unresolved external symbol __imp__UpdateWindow@4 referenced in function _ConWndProc@16
renderer.lib(win_glimp.obj) : error LNK2019: unresolved external symbol __imp__UpdateWindow@4 referenced in function _GLW_MakeContext
win_syscon.obj : error LNK2019: unresolved external symbol __imp__InvalidateRect@12 referenced in function _ConWndProc@16
win_syscon.obj : error LNK2019: unresolved external symbol __imp__SetTextColor@8 referenced in function _ConWndProc@16
win_syscon.obj : error LNK2019: unresolved external symbol __imp__SetBkColor@8 referenced in function _ConWndProc@16
win_syscon.obj : error LNK2019: unresolved external symbol __imp__SetTimer@16 referenced in function _ConWndProc@16
win_syscon.obj : error LNK2019: unresolved external symbol __imp__CreateSolidBrush@4 referenced in function _ConWndProc@16
win_syscon.obj : error LNK2019: unresolved external symbol __imp__DefWindowProcA@16 referenced in function _ConWndProc@16
win_wndproc.obj : error LNK2001: unresolved external symbol __imp__DefWindowProcA@16
win_syscon.obj : error LNK2019: unresolved external symbol __imp__PostQuitMessage@4 referenced in function _ConWndProc@16
win_syscon.obj : error LNK2019: unresolved external symbol __imp__SetForegroundWindow@4 referenced in function _Sys_CreateConsole
renderer.lib(win_glimp.obj) : error LNK2001: unresolved external symbol __imp__SetForegroundWindow@4
win_syscon.obj : error LNK2019: unresolved external symbol __imp__SetWindowLongA@12 referenced in function _Sys_CreateConsole
win_syscon.obj : error LNK2019: unresolved external symbol __imp__CreateFontA@56 referenced in function _Sys_CreateConsole
win_syscon.obj : error LNK2019: unresolved external symbol __imp__ReleaseDC@8 referenced in function _Sys_CreateConsole
renderer.lib(win_glimp.obj) : error LNK2001: unresolved external symbol __imp__ReleaseDC@8
renderer.lib(win_gamma.obj) : error LNK2001: unresolved external symbol __imp__ReleaseDC@8

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version