Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: endoc on December 23, 2011, 05:34:06 am

Title: Autocomplete with SDL
Post by: endoc on December 23, 2011, 05:34:06 am
Is there a way to use auto complete with SDL?  For example, if I start start typing SD... then I want a bunch of SDL related type names and variables to show up.

I am using SDL 1.2.14.

Let me know if you need more info about my situation. 
Title: Re: Autocomplete with SDL
Post by: MortenMacFly on December 23, 2011, 06:53:35 am
Let me know if you need more info about my situation. 
Depends on what version of C::B you are using... which you did not mention.
Title: Re: Autocomplete with SDL
Post by: Alpha on December 23, 2011, 07:03:13 am
@Morten: it looks like we tried to reply at the same time... here is what I was going to say:

What version of Code::Blocks are you using?

What is your OS?

Does code completion work with any other library (besides the standard template library (STL) and the C library)?

Are you using a project to manage your build or only a single file?

What happens if you right-click on your sdl include
Code
#include <SDL.h>
and select Open include file: 'SDL.h'?
Title: Re: Autocomplete with SDL
Post by: endoc on December 23, 2011, 03:46:57 pm
EDIT:  It looks like I have everything working, thanks for your help.

-----

I am running Windows 7 64 bit, and Code Blocks 10.05.  I have not tried doing this with any other library yet.  I am using a project to manage my build since I will be using multiple files.  

As of this morning, the auto complete seems to be working with SDL.  I don't know why its working now and not last night....

Anyway, is auto-complete supposed to work with any header file I include?  (This is what it looks like exactly: #include "SDL/SDL.h")