Squall

When I try to use a 32-bit librariry provided by the thirdparty to build my own project in X-64 mode, some link errors occurred. The reason is that the functionsí» names exported by the 32-bit library are not the same with the names generated by Visual Studio 2005 64-bit compiler. Therefore, the interfaces in the third party's library invoked by my own project will be treated as unresolved external symbols. How can I solve this problem and Is it possible to use 32-bit library (DLL) in 64-bit application Thanks.


Re: Visual C++ General How to use 32-bit library in 64-bit application.

einaros

You will need to get 64 bit libraries if you wish to compile your application x64. You cannot mix 32 bit and 64 bit code.




Re: Visual C++ General How to use 32-bit library in 64-bit application.

Sarath.

In addition to einar's comment, if the library source is available (e.g boost) build it in you own PC in 64 bit compiler and environment.





Re: Visual C++ General How to use 32-bit library in 64-bit application.

Bruno van Dooren

einaros wrote:
You will need to get 64 bit libraries if you wish to compile your application x64. You cannot mix 32 bit and 64 bit code.

With one exception: you can use 32 bit COM servers in a 64 bit environment, as long as they are Out Of Process servers.

http://dnjonline.com/article.aspx ID=jun07_access3264





Re: Visual C++ General How to use 32-bit library in 64-bit application.

einaros

Bruno van Dooren wrote:

With one exception: you can use 32 bit COM servers in a 64 bit environment, as long as they are Out Of Process servers.

http://dnjonline.com/article.aspx ID=jun07_access3264

That didn't seem very relevant in the case of the original question, however.






Re: Visual C++ General How to use 32-bit library in 64-bit application.

crescens2k

Worst comes to the worst, if you can't get a 64bit build and you can't get access to the source, you are going to have to wrap it. You can create a 32bit COM out of process server or use some form of IPC to use it.