log4cxx错误消息 [英] log4cxx error massage

查看:82
本文介绍了log4cxx错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用VS2005和log4cxx 10.0.1记录日志.
我下载并构建了log4cxx.
然后将.dll和.lib文件复制到正在运行的(新)项目中.
还制作了.xml文件.
以及所有必要的更改以构建新项目.

我成功建立了新项目,但是当我运行该项目(新)时,弹出一个错误消息框,提示

过程入口点?getLogger @ Logger @ log4cxx @@ SA?AV?$ ObjectPtrT @ VLogger @ log4cxx @@@ halpers @ 2 @ QB_W @ Z不能位于动态链接库log4cxx.dll中."

有没有人可以帮我这个忙...我被困在这里...任何帮助都会得到真正的应用..在此先感谢...

Rakesh

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

推荐答案

ObjectPtrT @ VLogger @ log4cxx @@@ halpers @ 2 @ QB_W @ Z不能在动态链接库中找到log4cxx.dll"

有没有人可以帮我这个忙...我被困在这里...任何帮助都会得到真正的应用..在此先感谢...

Rakesh
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


大家好,
我想登录ORACLE,MS Access,DB2数据库,但我无法为其提供附加程序,任何人都可以帮助我....任何提示都将适用...在此先感谢
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


一些想法:构建应用程序时使用__declspec(dllimport),而构建DLL时使用__declspec(dllexport)?我相信如果其中一个或另一个不存在,那么它们将使C ++名称混乱,如果为true,则将导致它在运行时无法在DLL中找到该函数.

(这些东西对我来说一直有点像魔术饼干,我从未尝试过.)

另外,如果从C ++调用DLL的.h文件,可能需要用extern "C" {包裹起来,这似乎是这种情况.尽管我原本希望log4cxx标头已经包含此标头:

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


这篇关于log4cxx错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆