Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: maja_ldm on July 09, 2016, 07:06:07 pm
-
I'm trying some SDL tutorials and I realized functions and constant variables aren't auto-completing.
I'm using Code::Blocks 16.01, GCC 4.9, SDL2.0.4 in a project. I tried libquadmath and it auto-completes fine.
The project is compiling fine with SDL contents, but if I try to open the SDL include file I get a not found error.
Search Directories/Compiler : ..\SDL2-2.0.4\i686-w64-mingw32\include\SDL2
Search Directories/Linker : ..\SDL2-2.0.4\i686-w64-mingw32\lib
Linker Settings/Other Linker Options: -lmingw32 -lSDL2main -lSDL2
Include in source code: #include <SDL.h>
(duplicate of: http://forums.codeblocks.org/index.php?topic=15712.0, which didn't contain useful information)
-
It seems like I had removed the -lmingw32 library from the linker. After some maintenance the auto-complete is working.
I'm so sorry to introduce myself like this, I'll leave this thread here as a remainder of the obvious.