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

I am using VS2005 and log4cxx 10.0.1 for logging purpuse.
I downloaded the log4cxx and built it.
then i copied the .dll and .lib files to the working(new) project.
Also made the .xml file.
and all required changes to build new project.

I built new project successfully but when i run the project(new), an error msg box is poping up saying

"The procedure entry point ?getLogger@Logger@log4cxx@@SA?AV?$ObjectPtrT@VLogger@log4cxx@@@halpers@2@QB_W@Z could not be located in the dynamic link librarylog4cxx.dll"

is there any one to help me out for this...i stuck in this...Any help will be realy appriciated..Thanks in advance...

Rakesh
Posted
Comments
OriginalGriff 11-Jul-11 10:17am    
Don't repost your question. Again.
I have deleted the newer version.
R_a_k 15-Jul-11 9:29am    
Hi all,

i want to log into the ORACLE , MS Access , DB2 database but i am not able to fing appenders for the same can any one help me out please….any hint will be appriciated…Thanks in advance

Hi all,
i want to log into the ORACLE , MS Access , DB2 database but i am not able to fing appenders for the same can any one help me out please….any hint will be appriciated…Thanks in advance
 
Share this answer
 
A couple of ideas: was __declspec(dllimport) used when building the app and __declspec(dllexport) when building the DLL? I believe those will mess with the C++ name mangling if one or the other is not present, which if true would cause it not to find the function in the DLL at run-time.

(Those have always been a bit like magic cookies to me, I've never experimented with them.)

Alternatively, the .h file for the DLL may need extern "C" { wrapped around it if being called from C++ which appears to be the case. Although I would have expected the log4cxx header to include this already:

#ifdef __cplusplus
extern "C" {
#endif

[function definitions]

#ifdef __cplusplus
}
#endif
 
Share this answer
 

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