Author Topic: Autocomplete with SDL  (Read 3379 times)

Offline maja_ldm

  • Single posting newcomer
  • *
  • Posts: 2
Autocomplete with SDL
« 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)
« Last Edit: July 09, 2016, 07:10:18 pm by maja_ldm »

Offline maja_ldm

  • Single posting newcomer
  • *
  • Posts: 2
Re: Autocomplete with SDL
« Reply #1 on: July 10, 2016, 05:59:02 pm »
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.
« Last Edit: July 10, 2016, 06:35:29 pm by maja_ldm »