User forums > Using Code::Blocks

Code Completion with SDL

(1/1)

Nicoteen:
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?

glu:
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!

ollydbg:

--- Quote from: glu on April 05, 2010, 02:28:25 pm ---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!

--- End quote ---
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.

Navigation

[0] Message Index

Go to full version