User forums > Using Code::Blocks
Having Problems with code completion
weaver4:
I am using CB version 13.12 under Ubuntu.
I have the following code:
This code compiles correctly and runs correctly. But when I type:
"s." The code competion come up and shows me all of the functions for string.
But when I type:
"tmp." Nothing comes up, even after pressing cntr-j or cntr-space. If I hover over the tmp variable it knows that it is type "Category". The compiler can find the log4cpp/*.hh files.
Is there something that I am not setting up correctly?
--- Code: ---#include <iostream>
#include <string>
#include "log4cpp/Category.hh"
#include "log4cpp/Appender.hh"
#include "log4cpp/FileAppender.hh"
#include "log4cpp/OstreamAppender.hh"
#include "log4cpp/Layout.hh"
#include "log4cpp/BasicLayout.hh"
#include "log4cpp/Priority.hh"
#include "log4cpp/PropertyConfigurator.hh"
using namespace std;
int main()
{
cout << "Hello world!" << endl;
string s;
log4cpp::PropertyConfigurator::configure("/etc/jps-audioproc/log4cpp.properties");
log4cpp::Category& tmp = log4cpp::Category::getRoot();
s. // shows me all of the choices
tmp. // shows me no choices.
}
--- End code ---
ollydbg:
Would you mind to try a more recent version of C::B? Such as the nightly build version or you can build it yourself.
It may be already fixed in the trunk.
If the bug still exists, please file a ticket to our Tickets system in: http://sourceforge.net/projects/codeblocks/
Thank you.
weaver4:
I should of mentioned ... I am using Ubuntu for ARM, not Intel.
So I don't think there are binaries for me; so I need to a build.
But I could not find the correct place to get the nightly source code.
Unfortunately my company's firewall makes it very difficult to work with external subversion servers.
Is there a link?
Thanks,
MortenMacFly:
--- Quote from: weaver4 on April 13, 2015, 01:48:35 pm ---Is there a link?
--- End quote ---
Just install C::B on a stick, make it portable (see the Wiki) and then you can copy it to any PC. Actually there is no installation not internet access required.
ollydbg:
--- Quote from: weaver4 on April 13, 2015, 01:48:35 pm ---I should of mentioned ... I am using Ubuntu for ARM, not Intel.
So I don't think there are binaries for me; so I need to a build.
But I could not find the correct place to get the nightly source code.
Unfortunately my company's firewall makes it very difficult to work with external subversion servers.
Is there a link?
Thanks,
--- End quote ---
In this page: https://sourceforge.net/p/codeblocks/code/HEAD/tree/
Download the source package by click the "Download Snapshot" key.
Also, I think you can download from the mirror, like: https://github.com/obfuscated/codeblocks_sf
Just click the "Download Zip" button.
Navigation
[0] Message Index
[#] Next page
Go to full version