Page 1 of 1

New Compiling error???

Posted: 21 Jan 2007 11:22
by Salvo_guy
I've just tried to set a compiling environment up on my PC, i've almost done it i think.. but i get this at the end of every time i try to compile the miniIN r8299

Code: Select all

dmusic.cpp
Generating Code...
Compiling resources...
Linking...
fontcache.obj : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function @GetFontByFaceName@8
fontcache.obj : error LNK2019: unresolved external symbol __imp__RegEnumValueA@32 referenced in function @GetFontByFaceName@8
fontcache.obj : error LNK2019: unresolved external symbol __imp__RegOpenKeyExA@20 referenced in function @GetFontByFaceName@8
win32.obj : error LNK2019: unresolved external symbol __imp__ShowCursor@4 referenced in function @MyShowCursor@4
win32.obj : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function @ShowOSErrorBox@4
win32.obj : error LNK2019: unresolved external symbol __imp__GetActiveWindow@0 referenced in function @ShowOSErrorBox@4
win32.obj : error LNK2019: unresolved external symbol __imp__ReleaseCapture@0 referenced in function @ShowInfo@4
win32_v.obj : error LNK2001: unresolved external symbol __imp__ReleaseCapture@0
win32.obj : error LNK2019: unresolved external symbol __imp__CloseClipboard@0 referenced in function @InsertTextBufferClipboard@4
win32.obj : error LNK2019: unresolved external symbol __imp__GetClipboardData@4 referenced in function @InsertTextBufferClipboard@4
win32.obj : error LNK2019: unresolved external symbol __imp__OpenClipboard@4 referenced in function @InsertTextBufferClipboard@4
win32.obj : error LNK2019: unresolved external symbol __imp__IsClipboardFormatAvailable@4 referenced in function @InsertTextBufferClipboard@4
win32_m.obj : error LNK2019: unresolved external symbol __imp__DeleteObject@4 referenced in function _MidiThread@4
win32_v.obj : error LNK2001: unresolved external symbol __imp__DeleteObject@4
win32_v.obj : error LNK2019: unresolved external symbol __imp__ReleaseDC@8 referenced in function @RedrawScreenDebug@0
win32_v.obj : error LNK2019: unresolved external symbol __imp__DeleteDC@4 referenced in function @RedrawScreenDebug@0
win32_v.obj : error LNK2019: unresolved external symbol __imp__BitBlt@36 referenced in function @RedrawScreenDebug@0
win32_v.obj : error LNK2019: unresolved external symbol __imp__SelectPalette@12 referenced in function @RedrawScreenDebug@0
win32_v.obj : error LNK2019: unresolved external symbol __imp__SelectObject@8 referenced in function @RedrawScreenDebug@0
win32_v.obj : error LNK2019: unresolved external symbol __imp__CreateCompatibleDC@4 referenced in function @RedrawScreenDebug@0
win32_v.obj : error LNK2019: unresolved external symbol __imp__GetDC@4 referenced in function @RedrawScreenDebug@0
win32_v.obj : error LNK2019: unresolved external symbol __imp__CreatePalette@4 referenced in function @MakePalette@0
win32_v.obj : error LNK2019: unresolved external symbol __imp__RegisterClassA@4 referenced in function @RegisterWndClass@0
win32_v.obj : error LNK2019: unresolved external symbol __imp__LoadCursorA@8 referenced in function @RegisterWndClass@0
win32_v.obj : error LNK2019: unresolved external symbol __imp__LoadIconA@8 referenced in function @RegisterWndClass@0
win32_v.obj : error LNK2019: unresolved external symbol __imp__DefWindowProcA@16 referenced in function _WndProcGdi@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__AdjustWindowRect@12 referenced in function _WndProcGdi@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__GetWindowLongA@8 referenced in function _WndProcGdi@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__SetRect@20 referenced in function _WndProcGdi@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__ToAscii@20 referenced in function _WndProcGdi@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__ToUnicode@24 referenced in function _WndProcGdi@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__GetKeyboardState@4 referenced in function _WndProcGdi@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__SetCursorPos@8 referenced in function _WndProcGdi@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__ClientToScreen@8 referenced in function _WndProcGdi@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__SetCapture@4 referenced in function _WndProcGdi@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__InvalidateRect@12 referenced in function _WndProcGdi@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__RealizePalette@4 referenced in function _WndProcGdi@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__GetWindowDC@4 referenced in function _WndProcGdi@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__EndPaint@8 referenced in function _WndProcGdi@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__BeginPaint@8 referenced in function _WndProcGdi@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__SetTimer@16 referenced in function _WndProcGdi@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__SetDIBColorTable@16 referenced in function @UpdatePalette@12
win32_v.obj : error LNK2019: unresolved external symbol __imp__GetAsyncKeyState@4 referenced in function @MapWindowsKey@4
win32_v.obj : error LNK2019: unresolved external symbol __imp__PostMessageA@16 referenced in function _TrackMouseTimerProc@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__KillTimer@8 referenced in function _TrackMouseTimerProc@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__WindowFromPoint@8 referenced in function _TrackMouseTimerProc@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__PtInRect@12 referenced in function _TrackMouseTimerProc@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__GetCursorPos@4 referenced in function _TrackMouseTimerProc@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__MapWindowPoints@16 referenced in function _TrackMouseTimerProc@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__GetClientRect@8 referenced in function _TrackMouseTimerProc@16
win32_v.obj : error LNK2019: unresolved external symbol __imp__CreateWindowExA@48 referenced in function @MakeWindow@4
win32_v.obj : error LNK2019: unresolved external symbol __imp__SetWindowPos@28 referenced in function @MakeWindow@4
win32_v.obj : error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function @MakeWindow@4
win32_v.obj : error LNK2019: unresolved external symbol __imp__GetSystemMetrics@4 referenced in function @MakeWindow@4
win32_v.obj : error LNK2019: unresolved external symbol __imp__ChangeDisplaySettingsA@8 referenced in function @MakeWindow@4
win32_v.obj : error LNK2019: unresolved external symbol __imp__DestroyWindow@4 referenced in function @MakeWindow@4
win32_v.obj : error LNK2019: unresolved external symbol __imp__CreateDIBSection@24 referenced in function @AllocateDibSection@8
win32_v.obj : error LNK2019: unresolved external symbol __imp__EnumDisplaySettingsA@12 referenced in function @FindResolutions@0
win32_v.obj : error LNK2019: unresolved external symbol __imp__GdiFlush@0 referenced in function @Win32GdiMainLoop@0
win32_v.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageA@4 referenced in function @Win32GdiMainLoop@0
win32_v.obj : error LNK2019: unresolved external symbol __imp__PeekMessageA@20 referenced in function @Win32GdiMainLoop@0
.\Debug\openttd.exe : fatal error LNK1120: 59 unresolved externals
Build log was saved at "file://f:\Sources\OTTD miniIN\Debug\BuildLog.htm"
openttd - 62 error(s), 0 warning(s)
========== Rebuild All: 2 succeeded, 1 failed, 0 skipped ==========
Any ideas???

Posted: 21 Jan 2007 19:05
by glx
Something is wrong in your environment, because it compiles fine for me with visual studio express 2005.

Posted: 21 Jan 2007 19:09
by DaleStan
... Where did my post go?

Anyway:

Did you install the Platform SDK, like Microsoft tells you to do?

Posted: 22 Jan 2007 03:34
by Salvo_guy
well i did reinstall everything twice... but it takes ages with my bad download speeds (over limit)

Posted: 22 Jan 2007 04:08
by Salvo_guy
well somehow i got rid of trhe errors...

but i get this at the end of my compiling...

Code: Select all

Linking...
LINK : .\Debug\openttd.exe not found or not built by the last incremental link; performing full link
Embedding manifest...

Posted: 22 Jan 2007 06:42
by Campmaster
That message can savely be ignored!

It means the linker didn't find a previous linked exe for incremental linking so he did full link which means, that he made a "new" exe instead of ajusting an existing (takes just a bit longer to link).