473,322 Members | 1,806 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,322 software developers and data experts.

log4cpp compilation errors

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 PortabilityImpl.hh:12,
from Appender.cpp:10:
.../include/log4cpp/Portability.hh:40: syntax error before `('
In file included from ../include/log4cpp/Layout.hh:14,
from ../include/log4cpp/Appender.hh:22,
from Appender.cpp:11:
.../include/log4cpp/LoggingEvent.hh:46: type specifier omitted for
parameter
.../include/log4cpp/LoggingEvent.hh:46: parse error before `::'
.../include/log4cpp/LoggingEvent.hh:59: syntax error before `::'
.../include/log4cpp/LoggingEvent.hh:68: syntax error before `;'
In file included from ../include/log4cpp/Appender.hh:22,
from Appender.cpp:11:
.../include/log4cpp/Layout.hh:35: parse error before `&'
In file included from Appender.cpp:11:
.../include/log4cpp/Appender.hh:74: parse error before `&'
.../include/log4cpp/Appender.hh:100: `Layout' was not declared in this
scope
.../include/log4cpp/Appender.hh:100: `layout' was not declared in this
scope
.../include/log4cpp/Appender.hh:100: virtual outside class declaration
.../include/log4cpp/Appender.hh:100: variable or field `setLayout'
declared void
.../include/log4cpp/Appender.hh:114: `Priority' was not declared in
this scope
.../include/log4cpp/Appender.hh:114: parse error before `::'
.../include/log4cpp/Appender.hh:120: warning: ANSI C++ forbids
declaration `Priority' with no type
.../include/log4cpp/Appender.hh:120: `Priority' declared as a `virtual'
field
.../include/log4cpp/Appender.hh:120: parse error before `::'
.../include/log4cpp/Appender.hh:125: `Filter' was not declared in this
scope
.../include/log4cpp/Appender.hh:125: `filter' was not declared in this
scope
.../include/log4cpp/Appender.hh:125: virtual outside class declaration
.../include/log4cpp/Appender.hh:125: variable or field `setFilter'
declared void
.../include/log4cpp/Appender.hh:131: warning: ANSI C++ forbids
declaration `Filter' with no type
.../include/log4cpp/Appender.hh:131: `Filter' declared as a `virtual'
field
.../include/log4cpp/Appender.hh:131: parse error before `*'
.../include/log4cpp/Appender.hh:137: warning: ANSI C++ forbids
declaration `threading' with no type
.../include/log4cpp/Appender.hh:137: parse error before `::'
.../include/log4cpp/Appender.hh:147: `Appender' was not declared in
this scope
.../include/log4cpp/Appender.hh:147: parse error before `>'
Appender.cpp:14: syntax error before `::'
Appender.cpp:15: syntax error before `::'
Appender.cpp:18: syntax error before `::'
Appender.cpp:25: syntax error before `*'
Appender.cpp:27: syntax error before `&'
Appender.cpp:28: syntax error before `::'
Appender.cpp:32: syntax error before `::'
Appender.cpp:35: `appender' was not declared in this scope
Appender.cpp:35: warning: ANSI C++ forbids declaration
`_getAllAppenders' with no type
Appender.cpp:35: `appender' was not declared in this scope
Appender.cpp:35: assignment (not initialization) in declaration
Appender.cpp:36: parse error before `}'
Appender.cpp:38: syntax error before `::'
Appender.cpp:40: warning: ANSI C++ forbids declaration
`_getAllAppenders' with no type
Appender.cpp: In function `int _getAllAppenders()':
Appender.cpp:40: parse error before `.'
Appender.cpp:43: syntax error before `::'
Appender.cpp:45: confused by earlier errors, bailing out
*** Error code 1
clearmake: Error: Build script failed for "Appender.lo"
================================================== ======

*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

Do you have any idea why?

BTW, I was able to compile it on linux and not on Solaris

Thanks

Kamel

Jun 15 '07 #1
1 2946
On 2007-06-15 21:13, ha*****@gmail.com wrote:
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:
Sorry, this group is for C++ language issues only, questions about third
party libraries should be posted in a group dedicated to them. As to the
problem at hand: you are aware that all 0.3.x releases are development
releases and not considered stable, and especially so with a RC3.
Besides that, have you followed the instructions for Solaris on the
projects homepage?

--
Erik Wikström
Jun 15 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

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
2
by: FireStarter | last post by:
Guys, in the code that follows, why does the method F() still compile, even if DBG is undefined? Inside method G(), the code inside <#if DBG> does not compile (notice that I can write whatever I...
2
by: Tommy Vercetti | last post by:
In Visual Studio .NET 2003, I do the following 1) File->New->Project 2) Visual C++ Projects->.NET->Windows Forms Application 3) Project->Add New Item->C++ File 4) Clear the new C++ file and...
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...
2
Colloid Snake
by: Colloid Snake | last post by:
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: # make g++ -DHAVE_CONFIG_H -I. -I. -I../include...
35
by: mwelsh1118 | last post by:
Why doesn't C# allow incremental compilation like Java? Specifically, in Java I can compile single .java files in isolation. The resulting individual .class files can be grouped into .jar files....
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: BSand0764 | last post by:
I'm getting an error that I can't seem to resolve. When I compile the Functor related logic in a test program, the files compile and execute properly (see Listing #1). However, when I...
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...
0
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: 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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.