The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Linking errors with SDL2 2.0.4 under mingw with Eclipse CDT
JaSONOfficial


Joined: 31 Mar 2016
Posts: 1
Hi, I first want to say that I am new to C++ Programming and even more new to SDL. I normaly never post on forums but I have a problem and after over 10 hours of research, I still have not find a fix to my problem.

I added the Header files of SDL in the include folder of my compiler (C:\MingW\include) and after adding all the library files of SDL in the lib file of MingW (C:\MingW\lib) like many tutorials told me to do on the Internet. But even though I perfectly linked my compiler to the files using Eclipse I get : cannot find lSDL2 and cannot find lSDL2main when I try to build my program using Eclipse. I am sorry for the poor description of my problem and for the bad usage of the English language.

Thanks a lot !

A 15 years old programmer in distress.