473,378 Members | 1,134 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

log4cpp make error extra ';' in Manipulator.hh

Colloid Snake
144 100+
Hello,

I was attempting to configure log4cpp to monitor some logs on my *nix box, and when I run 'make' I get this error message:

Expand|Select|Wrap|Line Numbers
  1. [user@sandbox]# make
  2. [... lots of output snipped ...]
  3. g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -02 -Wall -Wno-unused -pedantic -MT FileAppender.lo -MD -MP -MF .deps/FileAppender.Tpo -c FileAppender.cpp -fPIC -DPIC -o .libs/FileAppender.o
  4. ../include/log4cpp/Manipulator.hh:29: error: extra ';'
  5. make[1]: *** [FileAppender.lo] Error 1
  6. make[1]: Leaving directory `/home/user/unzip/log4cpp-0.3.5rc3/src'
  7. make: *** [all-recursive] Errro1
  8. [user@sandbox]#
  9.  
I tried playing around with the Manipulator.hh file (removing/moving/adding ';'s) to no avail, and am now stuck. Any help is appreciated!

Extra info, if necessary:

gcc version 4.1.0 20060304 (Red Hat 4.1.0-3)

TYIA
Dec 1 '06 #1
2 4458
I am having the same trouble attempting to compile on rhel4. Has anyone encountered this and fixed it?

Thanks,
Tim
Mar 5 '07 #2
I removed the extra semicolon (;) after the end of namespace bracket and before the #endif in include/log4cpp/Manipulator.hh

It then compiled.

Cheers
Jul 17 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Matthieu Labour | last post by:
Hi, I want to use a c++ version of log4j. But there are 3 of them :log4cpp, log4cplus, log4cx. Whis one is the best ? Thank you
0
by: Steven T. Hatton | last post by:
I tried to create my own manipulator that would both set the width of the subsequent output field, and cast an unsigned char to unsigned in. I came up with the following rather ugly hack. Notice...
8
by: stoptv | last post by:
Hello group, this is my dilemma: ------------------------------------------------------------------------ #include <iostream> using namespace std; // a regular manipulator ostream & hello(...
6
by: jack | last post by:
I have a class which overloads the insertion operator '<<' for every type that ostream handles. I do this so that I can use my class a direct replacement for cout and cerr where the insertion...
2
by: vasantha2712 | last post by:
I am trying to integrate Log4cpp in our project. I was able to successfully build the log4cpp using the command : ./configure --disable-static . I have included the log4cpp libraries path in...
2
by: Atiz | last post by:
Hi all, I have just downloaded log4CPP and am intending to use it for logging and debugging purposes in my c++ project. I'm currently using MS Visual Studio 2005. What I gathered from...
1
by: hamardk | last post by:
Hi, I'm trying to compile log4cpp-0.3.5rc3 on : SunOS belaurora 5.9 Generic_118558-11 sun4u sparc SUNW,Ultra-4 I'm having compilation issues which are: In file included from...
4
by: Quidny | last post by:
Hi, This is a question pertaining to C++, so it seems to me to be on-topic here. If not, I apologize, and would ask which of these forums would be the correct one to used instead. I haven’t...
1
by: thomas | last post by:
// ws manipulator example #include <iostream> #include <sstream> using namespace std; int main () { char a, b, c; istringstream iss (" one \n \t two"); iss >noskipws;
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.