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


Joined: 18 Jun 2015
Posts: 21
Location: tehran, iran
can you fined libsdl2.a and libsdl2main.a in C:\MinGW\lib
(not in subdirectories)
those should be in the lib directory itself

۱۳۹۵-۰۱-۱۲ ۱۸:۵۳ −۰۷:۰۰ گرینویچ, JaSONOfficial:
Quote:
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.





_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org