Jump to content
  • Advertisement
Sign in to follow this  
Synt4x

SDL project linking error, help please!

This topic is 4421 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

Hey guys, I am having troulbe with this linking error. I fixed all my compiling errors. It's using SDL + Visual Studio 6.0 (C++) Build Log --------------------Configuration: SDL Introduction - Win32 Debug-------------------- Command Lines Creating temporary file "D:\DOCUME~1\Bryan\LOCALS~1\Temp\RSP1D7.tmp" with contents [ /nologo /MD /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /Fp"Debug/SDL Introduction.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c "D:\Programming\Projects\Game Programming\SDL\SDL Introduction\Main.cpp" ] Creating command line "cl.exe @D:\DOCUME~1\Bryan\LOCALS~1\Temp\RSP1D7.tmp" Creating temporary file "D:\DOCUME~1\Bryan\LOCALS~1\Temp\RSP1D8.tmp" with contents [ kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /incremental:yes /pdb:"Debug/SDL Introduction.pdb" /debug /machine:I386 /out:"Debug/SDL Introduction.exe" /pdbtype:sept ".\Debug\Main.obj" ] Creating command line "link.exe @D:\DOCUME~1\Bryan\LOCALS~1\Temp\RSP1D8.tmp" Output Window Compiling... Main.cpp Linking... Main.obj : error LNK2001: unresolved external symbol "void __cdecl Shutdown(void)" (?Shutdown@@YAXXZ) Debug/SDL Introduction.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. Results SDL Introduction.exe - 2 error(s), 0 warning(s) let me know if anyone can help me... Thank you very much, -Karakadin

Share this post


Link to post
Share on other sites
Advertisement
Give us some code show us where void Shutdown() is declared and comes into play. I think that is the problem.

Share this post


Link to post
Share on other sites
void shutdown is in two places:

here:

int main(int argc, char **argv)
{

Init();

// Game Loop
while(!g_StateStack.empty())
{

g_StateStack.top().StatePointer();

}

Shutdown();

return 0;

}


and here:


// Shutdown
void ShutDown()
{

// Shuts down TTF lib.
TTF_Quit();

// Frees surfaces
SDL_FreeSurface(g_Bitmap);
SDL_FreeSurface(g_Window);

// Shuts down SDL and frees the resouces it was using.
SDL_Quit();

}

thanks,

-Karakadin

Share this post


Link to post
Share on other sites
... anybody? I would really appreciate it, im trying to get into this whole game dev thing, but I can't even get my first project to work right... I would love any help/or just an idea of what it might be. Thank you,

-Karakadin

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!