Linking errors with SDL2 2.0.4 under mingw with Eclipse CDT

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.

can you fined libsdl2.a and libsdl2main.a in C:\MinGW\lib
(not in subdirectories)
those should be in the lib directory itself

???-??-?? ??:?? ???:?? ???, JaSONOfficial :> 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.