all groups > visual c libraries > november 2005 >
You're in the

visual c libraries

group:

VC8 lib linked with VC6 project


VC8 lib linked with VC6 project MikeD
11/9/2005 8:46:09 PM
visual c libraries:

I have a library that I'm creating with VS2005 but I need to be able t
link it with a VS6 project. I am getting some linker errors, mostl
surrounding _ftol2_sse and CxxFrameHandler3. I've tried includin
different runtime libraries inside my library but nothing has helped.
The closest I've gotten to success is including libcpmtd but then I ge
some corrupt debug information error.

Am I trying to do the impossible? Can I create a lib in VC8 and lin
it with a VC6 project?

Thanks,

Mike

--
Mike
-----------------------------------------------------------------------
MikeD's Profile: http://www.hightechtalks.com/m23
View this thread: http://www.hightechtalks.com/t228156
Re: VC8 lib linked with VC6 project David Lowndes
11/9/2005 8:53:09 PM
[quoted text, click to view]

Not impossible Mike, but to do it you'd have so many restrictions
(eliminate most references to the 'C' run-time library) as to make it
almost worthless.

[quoted text, click to view]

You could create a DLL and use it from VC6 providing that the
interface doesn't pass heap allocated objects across the boundary.
i.e. stick to plain old data types and it'll work.

Dave
--
Re: VC8 lib linked with VC6 project MikeD
11/9/2005 10:15:16 PM

Thanks David. I'm wondering how to get rid of the few references to th
CRT that exist. It seems to only be the two I listed: _ftol2_sse an
CxxFrameHandler3. I'm willing to bet if I get rid of exceptio
handling that the CxxFrameHandler3 problem will go away but I have n
idea how to get rid of the _ftol2_sse reference. I'm not using i
directly, it is being referenced by the compiler since my C++ clas
does do some floats to longs. I guess I'm wondering if there's a wa
to pull in _ftol2_sse from somewhere and include it in the lib or i
there a way to get the compiler to stop referencing it and eithe
inline or use something else?

Any ideas?

BTW, a DLL isn't a valid option for this particular lib. It is used i
almost every project we write

--
Mike
-----------------------------------------------------------------------
MikeD's Profile: http://www.hightechtalks.com/m23
View this thread: http://www.hightechtalks.com/t228156
AddThis Social Bookmark Button