Click here to Skip to main content
15,312,540 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

I want to use a logger object in my visual studio project .
i have included thr library in dependancy tab .
but it is still giving error such as :

fatal error C1083: Cannot open include file: log4cplus/logger.h: No such file or directory

wat shud I do to resolve this problem ?
where i can find the include files for the log4plus .

if anyone have solution , please let me know .
Posted
Comments
CPallini 24-Jan-12 9:42am
   
Pardon the silly question, did you install it? There is a INSTALL text file providing instructions to.
pvilas007 25-Jan-12 4:57am
   
I dwnloaded log4cplus-1.0.4.tar.bz2 from http://sourceforge.net/projects/log4cplus/ .
I have just unzipped that package .I have followed the instruction from
http://w3studi.informatik.uni-stuttgart.de/~bischowg/languages/C++/CPPLog4cplus.html.
Am I doing anything wrong .Please give me a suggestion.Thanx

1 solution

1) You need to install the log4cplus package.
2) You need to know where the log4cplus header and lib were installed.
3) You need to tell your version of Studio where these files are by adding them to the paths(for header) and linker paths(for lib).
4) Should work at this point.
   
Comments
pvilas007 25-Jan-12 4:29am
   
I added all project setting .
I have copied include dir in VC include dir vand log4plusUSD.lib in VC lib dir which is at location c:\programfiles\micosoft visual studio\VC .
but still I am getting errors like :
fatal error LNK1104: cannot open file 'C:\Program.obj' logger_test

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900