User forums > Using Code::Blocks

Autocomplete with SDL

(1/1)

maja_ldm:
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)

maja_ldm:
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.

Navigation

[0] Message Index

Go to full version