• Advertisement
Sign in to follow this  

SDL in DLL help needed

This topic is 4827 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, I have a problem, using SDLL from within a DLL. The dll file compiles and links fine , but when I build an testapp with incudes and lib and dll file, i get an error while linking , saying: ------ Erstellen gestartet: Projekt: Test, Konfiguration: Release Win32 ------ Verknüpfen... SDLmain.lib(SDL_win32_main.obj) : error LNK2019: Nicht aufgelöstes externes Symbol '_SDL_main', verwiesen in Funktion '_main' Release/Test.exe : fatal error LNK1120: 1 unaufgelöste externe Verweise Das Build-Protokoll wurde unter "file://e:\_coding\Test\Release\BuildLog.htm" gespeichert. Test - 2 Fehler, 0 Warnung(en) Anyone can help? I´m desperate

Share this post


Link to post
Share on other sites
Advertisement
Don't suppose you could translate that error message to english for us? If not, you'll be relying on someone knowing the error number or who speaks german showing up.

Share this post


Link to post
Share on other sites
sry

SDLmain.lib(SDL_win32_main.obj) : error LNK2019: unresolved external symbol '_SDL_main', called from function '_main'
Release/Test.exe : fatal error LNK1120: 1 unresolved extarnal reference

Share this post


Link to post
Share on other sites
Try linking with SDL.dll and SDLmain.lib, also in your VisualC++ project you go to Project|Settings|C/C++ tab|Code generation|Runtime Library and select "Multi-threaded DLL". HTH

Also take a look at www.libsdl.org and download documentation - there are some articles on how to link your programs with misc compilers.

Share this post


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

  • Advertisement