Hello,
I inform, i am not well in english, so scuse me !
Before, i solved the problem of the backspace, i have modified the xorg.conf ...
Now, I have a problem with the Code completion, it doesnt work automatically.
In C++, with an object, when i write the ".", it doesnt list all methods of the object, you see ?
Even if i type Ctrl+Backspace it doesnt work ... (but if i type Ctrl+Backspace in front of nothing, it list all type, all object ...)
How can I resolve my problem ?
Thanks !
ps : I am 13 and in france at shcool, the english level is so bad ...
welcome!!
please post the sample/test code, and tell us how to reproduce such kind of bug, so that we can fix it.
Also, which version of c::b did you use???
I use Code::blocks 10.05, finally the last release (64 bit, Archlinux).
All example doesnt work with me, in C++, a point (.) after an object doesnt list them methods, you see ?
You can give the code of a sample project which reproduce that please ? I'm french too, that's not so hard to understand :p
Its a default SFML project
#include <SFML/Graphics.hpp>
int main()
{
// Create the main window
sf::RenderWindow App(sf::VideoMode(800, 600), "SFML window");
// Load a sprite to display
sf::Image Image;
if (!Image.LoadFromFile("cb.bmp"))
return EXIT_FAILURE;
sf::Sprite Sprite(Image);
Sprite. // /!\ list doesnt appear
// Start the game loop
while (App.IsOpened())
{
// Process events
sf::Event Event;
while (App.GetEvent(Event))
{
// Close window : exit
if (Event.Type == sf::Event::Closed)
App.Close();
}
// Clear screen
App.Clear();
// Draw the sprite
App.Draw(Sprite);
// Update the window
App.Display();
}
return EXIT_SUCCESS;
}
to understand who ? :mrgreen:
an idea ? :(
Sometimes I also have this problem :(
Sometimes it gets solved after the file compilation is done :)
Sorry, no more ideas.
HTH
Manolo
It is a bug of code::blocks ?
Good news, code completion work with a personnal class.
It doesnt work with an extern lib (SFML, iostream ...).
Did you add the path somewhere?
Maybe C::B's don't know where to search the headers...
Or maybe try the nigthlies, CC has been greatly improved since 2010.
No i didnt, where i can add it ?
Nightlies, its only for windows no ?
How can I configure "code completion" consider SFML and standar library ?
Thanks !
We have nightlies for debian/ubuntu.
Or you could build the svn verison. It is way easier on linux.
I have the 7363 SVN version, with the bug too ...
QuoteDid you add the path somewhere?
Maybe C::B's don't know where to search the headers...
Yes probably, where can I add manually the headers please ?
Quote from: Pelleschi on August 12, 2011, 08:04:57 PM
How can I configure "code completion" consider SFML and standar library ?
Thanks !
I guess mostly SFML library use some special macro definitions, I will check it today and give you the direction.
I followed this page
http://www.sfml-dev.org/tutorials/1.6/start-cb.php
and works here:(see screen shot)
(http://i683.photobucket.com/albums/vv194/ollydbg_cb/2011-08-13104133.png)
(http://img11.hostingpics.net/pics/119719Capture.png)
(http://img11.hostingpics.net/pics/717169Capture1.png)
(http://img11.hostingpics.net/pics/516899Capture3.png)
(http://img11.hostingpics.net/pics/473856Capture5.png)
i have Code::Blocks 7363 svn and archlinux.
Quotehttp://www.sfml-dev.org/tutorials/1.6/start-cb.php
its for windows only :s ...
and standard lib didnt list also
after reinstalling codeblocks, code completion work on a local class only.
SFML or other lib didnt auto-complete.
Quote from: Pelleschi on August 13, 2011, 07:17:36 PM
after reinstalling codeblocks, code completion work on a local class only.
SFML or other lib didnt auto-complete.
I only have Win system, so I can't help you further more. :(
Quote from: ollydbg on August 14, 2011, 05:04:59 AM
Quote from: Pelleschi on August 13, 2011, 07:17:36 PM
after reinstalling codeblocks, code completion work on a local class only.
SFML or other lib didnt auto-complete.
I only have Win system, so I can't help you further more. :(
Works well on Linux Mint 11.