简体   繁体   English

如何在win7中链接Glib

[英]how to link Glib in win7

i'm compiling lightspark on windows7. 我正在Windows7上编译lightspark。 However,when it link glib,there're many errors,such as: 但是,当它链接glib时,会出现很多错误,例如:

error LNK2001: unresolved external symbol "public: void __thiscall Glib::Mutex::unlock(void)" (?unlock@Mutex@Glib@@QAEXXZ) " 错误LNK2001:无法解析的外部符号“ public:void __thiscall Glib :: Mutex :: unlock(void)”(?unlock @ Mutex @ Glib @@ QAEXXZ)

error LNK2001: unresolved external symbol "public: void __thiscall Glib::Cond::Cond(void)" (??0Cond@Glib@@QAE@XZ) " 错误LNK2001:无法解析的外部符号“ public:void __thiscall Glib :: Cond :: Cond(void)”(?? 0Cond @ Glib @@ QAE @ XZ)“

error LNK2001: unresolved external symbol "public: void __thiscall Glib::Cond::~Cond(void) " 错误LNK2001:无法解析的外部符号“ public:void __thiscall Glib :: Cond ::〜Cond(void)”

And I use dumbbin tool get something like this: 而且我用dumbbin工具得到了这样的东西:

?unlock@Mutex@Glib@@QEAAXXZ (public: void __cdecl Glib::Mutex::unlock(void)) ?unlock @ Mutex @ Glib @@ QEAAXXZ(公共:void __cdecl Glib :: Mutex :: unlock(void))

??0Cond@Glib@@QEAA@XZ (public: __cdecl Glib::Cond::Cond(void)) 0Cond @ Glib @@ QEAA @ XZ(公共:__cdecl Glib :: Cond :: Cond(void))

??1Cond@Glib@@QEAA@XZ (public: __cdecl Glib::Cond::~Cond(void)) 1Cond @ Glib @@ QEAA @ XZ(公共:__cdecl Glib :: Cond ::〜Cond(void))

what's the reason about this problem?Any idea appreciate. 这个问题的原因是什么?

Those symbols aren't part of glib, they're part of glibmm (C++ bindings for glib). 这些符号不是glib的一部分,而是glibmm(glib的C ++绑定)的一部分。 If you're only trying to link to glib and not glibmm, it's a good bet that that is your problem. 如果您仅尝试链接到glib而不是glibmm,那么可以肯定的是,这就是您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM