Search code examples
c++ubuntucodeblockssfmlcode-completion

SFML code completion not working for Code::Blocks 13.12 on Ubuntu 14.04


EDIT: NOT WORKING ON ANY IDE, SEEMS TO BE A GENERAL MISCONFIG

So hello guys. It's taking a bit longer to set my Ubuntu system to code with SFML and C++ than expected. This should be one of the last problems really.

So my C::B 13.12 install via apt-get on Ubuntu 14.04 will auto-complete all of my code perfectly, standard libs and personal .h files included. But it seems to be failing at auto-completing SFML. At least the .hpp files are found and C::B will give me some suggestions, like with any other .h files, but not the same thing happens with the classes and structs. To be concrete, this happens. Whenever I include the SFML files to a program, and try get code suggestions from the sf namespace, this happens.

As you can see, only some trivial types appear, not the SFML classes.

Sorry for that image, but on screen shot the suggestions close. The types suggested are Int16, Int32, Int64, Int8, and their Uint types.

So well, I can't really think of anything else to do. These are my Search paths for my GNU GCC Compiler on C::B.

enter image description here

enter image description here

Thanks a lot guys! Peace.


Solution

  • libsfml-dev reinstall was enough.