开发者

Linker error on Visual Studio 2008 C++: 32-bit library in 64-bit Windows

开发者 https://www.devze.com 2023-04-04 21:57 出处:网络
Look, I\'ve done my homework, googled and stack-overflowed and still can\'t manage it. So, pwleese, don\'t tell me to link my libraries with Project > Properties > Linker > Input > Additio

Look, I've done my homework, googled and stack-overflowed and still can't manage it. So, pwleese, don't tell me to link my libraries with Project > Properties > Linker > Input > Additional dependencies, ok?

I have some 3rd party static libs built for Win32, and am trying to link a program using VS C++ 2008 in a 64-bit machine. The point is, I'm using WinXP 32-bit, VSC++ solution platform is set to Win32 and开发者_JAVA技巧 the same configuration works fine on a 32-bit machine. I can't rule out another source of stupidness from me, but until now this is the only thing that makes sense. Initially some pre-built Boost libraries wouldn't link too; after I compiled them, they worked.

The errors are all like this: error LNK2001: unresolved external symbol "__declspec(dllimport) public: ..."

As I said, the same configuration works fine on another machine, although I did try to link the DLLs instead of static linking.

Thanks in advance for any help!


Try using the Dependency Walker and see what files are missing or wrong.

Note that it usees the current PATH variable, which can affect your results.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号