Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipse-dev] Issue building C++ project with CDT - external lib




         I’m using Eclispe/cdt to compile my C++ projetc (GNU Executable) and I’m having some issues. When I try to compile the project I got:


'Building target: testemd2'

C:\Dev-Cpp\bin\mingw32-g++.exe -L"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\include\SDL" -L"C:\Dev-Cpp\include\GL" -shared -o testemd2     main.o    -lSDL

C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lSDL

collect2: ld returned 1 exit status

C:\Dev-Cpp\bin\mingw32-make.exe: *** [testemd2] Error 1

Build complete for project testemd2


If I remove the SDL referency I got linking errors.


I have only .dll, .lib and (.h)header files for SDL librarie and I don’t know how to include or to reference these files in project. I’m working in Windows XP professional, Eclipse 3.0.2 and CDT 2.1.1.







Back to the top