Author Topic: Autocomplete with SDL  (Read 6977 times)

Offline endoc

  • Single posting newcomer
  • *
  • Posts: 2
Autocomplete with SDL
« 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. 

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Autocomplete with SDL
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: Autocomplete with SDL
« Reply #2 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'?

Offline endoc

  • Single posting newcomer
  • *
  • Posts: 2
Re: Autocomplete with SDL
« Reply #3 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")
« Last Edit: December 23, 2011, 04:58:26 pm by endoc »