Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Nicoteen on September 13, 2009, 05:23:19 pm
-
hello,
i have problems with the code completion feature of the editor. I'm using SDL. After writing "SDL_" it shows alle the defines, structures and enumerations from SDL, but no functions, like SDL_init(), at all. Also unions, like the SDL_Event union, doesn't show up. Strangely the functions from expansion libraries like SDL_gfxPrimitives.h or SDL_Framerate.h are shown. Do somebody know what i am doing wrong?
Maybe CodeCompletion didn't load the library correctly in its cache the first time. How can I tell the plugin to reload the libraries to the cache?
-
Hello,
The completion doesn't work with SDL functions like SDL_Init() because these function are declared with "extern DECLSPEC" :
extern DECLSPEC int SDLCALL SDL_Init(Uint32 flags);
Does anyone know how to activate completion in code::blocks with "extern DECLSPEC" functions?
have a good day!
-
Hello,
The completion doesn't work with SDL functions like SDL_Init() because these function are declared with "extern DECLSPEC" :
extern DECLSPEC int SDLCALL SDL_Init(Uint32 flags);
Does anyone know how to activate completion in code::blocks with "extern DECLSPEC" functions?
have a good day!
If I recall correctly, there's discussion about parsing the "extern" statement. and there's also a patch to solve "this kind of problem", but strictly, this is not a bug, maybe. You can search the forum.
Solving this is quite easy, but it surely have side effect.