You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Marc H. Graham" <dr...@bellatlantic.net> on 2005/11/03 00:32:30 UTC
CC -- Microsoft -- outtype -- multithreaded
I'm compiling with outtype=executable and multithreaded=true. It's
generating the compiler argument /MD, which is for dll's, not .exe's.
Is this a bug? Or is there someway to get it to do the right thing?
For completeness, here's the xml:
<cc name="msvc"
outtype="executable"
multithreaded="true"
objdir="${basedir}/objdir"
exceptions="true"
rebuild="true"
optimize="speed"
subsystem="console">
<defineset define="WIN32,NDEBUG,_CONSOLE,_MBCS">
<define name="CRTAPI1" value="_cdecl"/>
<define name="CRTAPI2" value="_cdecl"/>
</defineset>
<includepath refid="includePath"/>
<fileset dir="${sourcedir}"
includes="*.cpp"/>
</cc>
And here's a part of the ant-output:
cl /c /nologo /GX /O1 /DNDEBUG /MD /DCRTAPI1=_cdecl /DCRTAPI2=_cdecl
/DWIN32 /DNDEBUG /D_CONSOLE /D_MBCS
That /MD is wrong (I'm pretty sure). Any way to fix it?
Marc H. Graham