can't compile program as shared DLL

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
arfeena
Posts: 1
Joined: Wed 08 Mar 2006 15:57

can't compile program as shared DLL

Post by arfeena » Wed 08 Mar 2006 15:59

I'm using the OCL libraries to connect to the oracle database in my MFC application in Visual Studio 2003.

OCL is by the way is working perfectly for us so far (great library! ) But we had been using the project setting 'Use MFC in a Static Library' and now we need to switch to 'Use MFC in a Shared DLL'

And when I try to build me application after setting the Use of MFC setting to 'Use MFC in a Shared DLL', I get a bunch of linker errors. Here's one of them which is more readable.

OCLTesting2 warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library

the project linker settings are as follows:
Additional Dependencies: ocl.lib
Ignore specific Library: libc.lib

Does anybody know how to build the program without including the dlls in the executable.

Thanks

Paul
Posts: 725
Joined: Thu 28 Oct 2004 14:06

Post by Paul » Tue 21 Mar 2006 10:50

Please recompile OCL library with different setting of "Configuration Properties|General|Use of MFC". Set it to "Use MFC in a Shared DLL"

Post Reply