Hello ! Thanks for comming here !
I know that is a known problem, and I've searched a lot, but it didn't work at all...
I'm on Windows 7, CB 13.12:
I have my little main.cpp, my project in c++, and I use SDL :
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <SDL/SDL_ttf.h>
In my folder, I have :
my source file
include/SDL/[all the SDL.h I need]
lib/[libSDL.dll.a , libSDL.la , libSDLmain.a , SDL_image.lib , SDL_ttf.lib ]
I
linked this libs (right click in the project, build options, linker settings, added /sudoku(my folder with the project)/lib/libSDLmain.a then libSDL.dll.a)
I know that the libSDLmain.a needs to be
before the libSDL.dll.a )
But...
mingw32-g++.exe: error: \lib\libSDLmain.a: No such file or directory
mingw32-g++.exe: error: \lib\libSDL.dll.a: No such file or directoryAnd it is the only two errors that I have : Here is the complete build log :
-------------- Build: Debug in sudoku (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -o bin\Debug\sudoku.exe obj\Debug\Grille.o obj\Debug\InterfaceGraphique.o obj\Debug\main.o -lSDLmain -lSDL.dll \lib\libSDLmain.a \lib\libSDL.dll.a lib\libSDLmain.a lib\libSDL.dll.a C:\Users\ME\Desktop\sudoku\lib\libSDL.dll.a C:\Users\ME\Desktop\sudoku\lib\libSDLmain.a C:\Users\ME\Desktop\sudoku\lib\SDL_image.lib C:\Users\ME\Desktop\sudoku\lib\SDL_ttf.lib -mwindows
mingw32-g++.exe: error: \lib\libSDLmain.a: No such file or directory
mingw32-g++.exe: error: \lib\libSDL.dll.a: No such file or directory
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))
I've searched a lot, but I already did the two common problems : main before all, and link them...
Thanks for the solution !
(And sorry for my english, It's not my native language)