Sign in to follow this  
lem

SDL in DLL help needed

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
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

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