Sign in to follow this  

Problems Compiling SDL

This topic is 4339 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
<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.

Share this post


Link to post
Share on other sites

This topic is 4339 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this