Problems Compiling SDL
Hi Everyone,
I am converting my Visual C++ 5.0 game to Visual C++ 2005 Express Edition using SDL 1.2.9. So far I've got it to this stage and I can't get it any further. Can any one offer any suggestions?
Linking...
LINK : .\Debug/FightingFantasy.exe not found or not built by the last incremental link; performing full link
Creating library .\Debug/FightingFantasy.lib and object .\Debug/FightingFantasy.exp
SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined symbol _exit imported in function _main
SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined symbol _strrchr imported in function _main
SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined symbol _fprintf imported in function _ShowError
SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined symbol __iob imported in function _ShowError
SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined symbol _remove imported in function _cleanup_output
SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined symbol _fopen imported in function _cleanup_output
SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined symbol _fgetc imported in function _cleanup_output
SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined symbol _fclose imported in function _cleanup_output
SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined symbol __getcwd imported in function _WinMain@16
SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined symbol __pctype imported in function _ParseCommandLine
SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined symbol ___mb_cur_max imported in function _ParseCommandLine
SDLmain.lib(SDL_win32_main.obj) : warning LNK4217: locally defined symbol __isctype imported in function _ParseCommandLine
SDLmain.lib(SDL_win32_main.obj) : error LNK2019: unresolved external symbol __imp__strncpy referenced in function _main
SDLmain.lib(SDL_win32_main.obj) : error LNK2019: unresolved external symbol __imp__setbuf referenced in function _WinMain@16
SDLmain.lib(SDL_win32_main.obj) : error LNK2019: unresolved external symbol __imp__setvbuf referenced in function _WinMain@16
SDLmain.lib(SDL_win32_main.obj) : error LNK2019: unresolved external symbol __imp__freopen referenced in function _WinMain@16
.\Debug/FightingFantasy.exe : fatal error LNK1120: 4 unresolved externals
have you downloaded the platform SDK and registered it with VS2005....that should solve the link issues.
The warnings relate to VS2005 being more ++ standard compliant, but should not stop you running once you have the link
The warnings relate to VS2005 being more ++ standard compliant, but should not stop you running once you have the link
<quote> Creating library .\Debug/FightingFantasy.lib and object .\Debug/FightingFantasy.exp</quote>
In that line, did you make the slashes ( "\" or "/" ) yourself? Some compilers only like them going a certain way. Try that out.
In that line, did you make the slashes ( "\" or "/" ) yourself? Some compilers only like them going a certain way. Try that out.
Make sure you have set your game to use a "MultiThreaded Debug DLL" for debug and "MultiThreaded DLL" for release. Found a reference to your problem here.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement