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?
#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.
}
Hi, I just download the log4cpp and try to test it.
I have a very simple code:
#include "log4cpp/Category.hh"
int main()
{
log4cpp::Category a;
a.
}
I also don't see the suggestion list.
So, I debugged our CC under C::B, and I finally found that we did miss the option here, see image below:
(http://imagizer.imageshack.us/v2/796x496q90/538/c0F2qq.png)
After setting this "hh" to the options, I have now solved the issue, see the image show below:
(http://imagizer.imageshack.us/v2/855x374q90/661/ZSFjNp.png)