467,879 Members | 1,296 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,879 developers. It's quick & easy.

Static linking of Log4cpp with the project on solaris

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 our project . i was able to log and trace also.
But my problem is static linking : i mean how do build log4cpp and create static libraries. I have tried building the log4cpp with the command : ./configure --enable-static , But when i try t oinclude these libraries in my project and build it ; its throwing an error in Probabilty.hh file of log4cpp

"/usr/local/log4cpp/include/log4cpp/Portability.hh", line 39: Error: #error no strcasecmp alternative for this platform implemented yet.

I am not able to proceed further.
Can anyone suggest on how do i proceed?
Nov 13 '06 #1
  • viewed: 2983
Share:
2 Replies
Banfa
Expert Mod 8TB
Find the code line producing the error, it is the result of a

#error

preprocessor directive. Then examine the file and work out what condition is causing the error and then program you way round it.
Nov 13 '06 #2
Do you mean to debug the Log4cpp code?
I mean Log4cpp is a stable code , its building properly only .
But while trying to integrate that in our application we are receiving an error from Log4cpp code.
Actually we trying to attach the log4cpp libraries along with our code.
When its built by disabling static those libraries are not being attached along with our exe.. So we tried building Log4cpp statically which lead to this error.
Can you tell us :
How do we build Log4cpp statically so that those libraries can be included along with our exe?
How do we attach the libraries generated by Log4cpp built by disabling static to our exe using Make file.? We are able compile without any errors and create our exe but couldnt attach the libraries to the exe.
Nov 14 '06 #3

Post your reply

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

Similar topics

3 posts views Thread by Grzegorz Dostatni | last post: by
reply views Thread by Dibyendu Roy | last post: by
reply views Thread by zhangrusi | last post: by
2 posts views Thread by Atiz | last post: by
1 post views Thread by hamardk | last post: by
reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.