次の方法で共有


Build Settings for a Win32 DLL

OverviewHow Do IDetails

The project settings for Win32 DLLs are almost the same as for Win32 EXEs. In the following, projname is the name that is created based on the project name you supply. Following are the default compiler options for new Win32 DLL projects:

Debug

/nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /Fp"Debug/projname.pch" /YX /Fo"Debug/" /Fd"Debug/" /c

Release

/nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /Fp"Release/projname.pch" /YX /Fo"Release/" /c

The default link options and link libraries for Win32 DLLs are:

kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll 

If you are using an external makefile, you can use the default build settings as a guide for the settings to use in your makefile.

What do you want to know more about?