Can we link libraries built with AMD64 SDK into vc8 win64 project?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

We have several 64-bit libraries here built with vc7, AMD64 SDK. I'm
wondering if it is OK to link them into vc8 win64 project. What are potential
issues?

Thank you,
Taras
 
Hi Taras!
We have several 64-bit libraries here built with vc7, AMD64 SDK. I'm
wondering if it is OK to link them into vc8 win64 project. What are potential
issues?

If your LIBs *do not* use CRT/MFC/ATL it is ok. Otherwise it leads to
linker-errors.

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
Jochen Kalmbach said:
Hi Taras!


If your LIBs *do not* use CRT/MFC/ATL it is ok. Otherwise it leads to
linker-errors.

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/

Jochen,

They do use CRT, but no MFC/ATL.
I tried to link and did not get any linker errors. Can I assume everything
is fine?

Also, same question about dlls. Would they be working ?

Thanks,
Taras
 
Taras Ovsyankin said:
Jochen,

They do use CRT, but no MFC/ATL.
I tried to link and did not get any linker errors. Can I assume everything
is fine?

All the normal warnings apply about memory ownership. Memory must be freed
from the same CRT that allocates it... this implies that classes that
allocate memory internally, like std::string, may not be shared.
 
Back
Top