473,320 Members | 2,112 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,320 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 4451
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;
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
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
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.