bond001
July 25th, 2003, 02:57 PM
I have an application which uses three MFC extenion dll's.This is workig fine if I dynamically link to MFC for all the dll's and the application.
I wanted to do static link to MFC as one of the Dll's using ADO and I dont want users to install ADO or MFC dlls on their machine.
I have careated a new configuration(same as release)for all the applications and all dll's build fine but I got compilation errors C4251 when I build the application.
I appreciate if some one help me in this.Any ideas or any hints will help me.
The following are the build settings for the projects.
DatebaseDLL
===========
/O2 /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "_AFXEXT" /D "_WINDLL" /D "_MBCS" /FD /EHsc /MD /GS /Zc:wchar_t /Yu"stdafx.h" /Fp"Release Static Link/BPDatabaseAccess.pch" /Fo"Release Static Link/" /Fd"Release Static Link/vc70.pdb" /W3 /nologo /c /Wp64 /Zi /TP
UtilitiesDll
========
/O2 /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "_AFXEXT" /D "_WINDLL" /D "_MBCS" /FD /EHsc /MD /GS /Zc:wchar_t /Yu"stdafx.h" /Fp"Release Static Link/BioUtilities.pch" /Fo"Release Static Link/" /Fd"Release Static Link/vc70.pdb" /W4 /nologo /c /Wp64 /Zi /TP
FunctionsDLL
=============
/O2 /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "_AFXEXT" /D "_WINDLL" /D "_MBCS" /FD /EHsc /MD /GS /Zc:wchar_t /GR /Yu"stdafx.h" /Fp"Release Static Link/BPMValidation40.pch" /Fo"Release Static Link/" /Fd"Release Static Link/vc70.pdb" /W3 /nologo /c /Wp64 /Zi /TP
Application
======
/O2 /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "_MBCS" /FD /EHsc /MD /GS /Zc:wchar_t /GR /Yu"stdafx.h" /Fp"Release Static Link/ValidationKitUtility.pch" /Fo"Release Static Link/" /Fd"Release Static Link/vc70.pdb" /W3 /nologo /c /Wp64 /Zi /TP
Thanks for your time
I wanted to do static link to MFC as one of the Dll's using ADO and I dont want users to install ADO or MFC dlls on their machine.
I have careated a new configuration(same as release)for all the applications and all dll's build fine but I got compilation errors C4251 when I build the application.
I appreciate if some one help me in this.Any ideas or any hints will help me.
The following are the build settings for the projects.
DatebaseDLL
===========
/O2 /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "_AFXEXT" /D "_WINDLL" /D "_MBCS" /FD /EHsc /MD /GS /Zc:wchar_t /Yu"stdafx.h" /Fp"Release Static Link/BPDatabaseAccess.pch" /Fo"Release Static Link/" /Fd"Release Static Link/vc70.pdb" /W3 /nologo /c /Wp64 /Zi /TP
UtilitiesDll
========
/O2 /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "_AFXEXT" /D "_WINDLL" /D "_MBCS" /FD /EHsc /MD /GS /Zc:wchar_t /Yu"stdafx.h" /Fp"Release Static Link/BioUtilities.pch" /Fo"Release Static Link/" /Fd"Release Static Link/vc70.pdb" /W4 /nologo /c /Wp64 /Zi /TP
FunctionsDLL
=============
/O2 /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "_AFXEXT" /D "_WINDLL" /D "_MBCS" /FD /EHsc /MD /GS /Zc:wchar_t /GR /Yu"stdafx.h" /Fp"Release Static Link/BPMValidation40.pch" /Fo"Release Static Link/" /Fd"Release Static Link/vc70.pdb" /W3 /nologo /c /Wp64 /Zi /TP
Application
======
/O2 /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "_MBCS" /FD /EHsc /MD /GS /Zc:wchar_t /GR /Yu"stdafx.h" /Fp"Release Static Link/ValidationKitUtility.pch" /Fo"Release Static Link/" /Fd"Release Static Link/vc70.pdb" /W3 /nologo /c /Wp64 /Zi /TP
Thanks for your time