473,545 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Static linking of Log4cpp with the project on solaris

2 New Member
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
2 3467
Banfa
9,065 Recognized Expert Moderator Expert
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
vasantha2712
2 New Member
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

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

Similar topics

3
2855
by: Grzegorz Dostatni | last post by:
Cheers. First what I am trying to do: I am trying to create a version of pytho23.dll that contains everything inside of it. It is staticaly linked. It also needs to contain the qt library. For this I am trying to work off of instructions designed for unix/linux using visual c++.net and gui. I can compile basic python - that's not a...
0
2322
by: Dibyendu Roy | last post by:
Hi All, I build an object called "dblorcle" to connect to oracle database in Sun solaris box. This is built linking with various oracle ".a" (archived, for static linking) files come with standard oracle library. I use the following command while linking: ld -L(oracle lib path) -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork...
1
4287
by: mccoyn | last post by:
I'm porting an old project to use .NET. When I try to link in a static library (.lib) that has a single managed class in it. I get the following errors: LINK : error LNK2020: unresolved token (0600000E) PatInfo::.ctor LINK : error LNK2020: unresolved token (0600000F) PatInfo::Finalize LINK : fatal error LNK1120: 2 unresolved externals I've...
3
10919
by: mpatnam | last post by:
I have an executable which links to a static library (.a). I want to provide a hook by overriding a function part of this static library. Eg: I have a function "int blkstart(int i)" in this static library. I want to override this by having another function which is exactly similar in signature including name. When somebody call this...
0
1457
by: zhangrusi | last post by:
I have a static library that is compiled using the latest version of VC 6. It uses the multithreaded DLL versions of the run-time library, and it uses STL classes. I would like to make use of this static library in a VS .NET 2003 managed C++ project. Currently, I am just linking the compiled .lib file into my VC 7 project. (This is the...
2
4004
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 sourceforge.net is that I should use the files present in msvc6 folder. I have opened it in a new project and have only included log4cpp files and testmain.cpp...
0
3965
by: xieml2007 | last post by:
Dear Madam or Sir, I encountered one problem which is quite similiar to the discussions launched at the web site: http://www.thescripts.com/forum/thread280324.html
1
2961
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 PortabilityImpl.hh:12, from Appender.cpp:10: .../include/log4cpp/Portability.hh:40: syntax error before `('
3
2846
by: Pixel.to.life | last post by:
Hi, Gurus, I recently attempted to build a .Net forms application, that links with old style unmanaged C++ static libs. Of course I had to recompile the static lib projects to link properly with the managed application. My questions are two fold: The managed project uses /clr and /MDd (in debug) options. The
0
7486
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7416
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7676
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7442
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7776
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6001
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3456
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1905
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
729
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.