Hi Einar, The following nant build script works on a simple "Hello World" managed C++ app.
Inputs: main.cpp assemblyinfo.cpp Outputs: bin\debug\HelloCppWorld.exe Nant script: <project name="HelloCppWorld" default="build"> <!--The initialisation target.--> <target name="init"> <mkdir dir="bin\debug" /> </target> <!--The 'clean' target.--> <target name="clean"> <delete> <fileset> <includes name="bin\Debug\HelloCppWorld.exe" /> <includes name="bin\Debug\*.obj" /> </fileset> </delete> </target> <!--The 'build' target.--> <target name="build" depends="init"> <!--Compiles the code --> <cl outputdir='bin\Debug' managedextensions='True' options='/W"4" /EHsc /MT /J /GR /Y- /Gd /TP' > <sources> <includes name="Main.cpp" /> <includes name="AssemblyInfo.cpp" /> </sources> </cl> <!--Links compiled object files--> <link output="bin\Debug\HelloCppWorld.exe"> <sources> <includes name="bin\debug\Main.obj" /> <includes name="bin\debug\AssemblyInfo.obj" /> </sources> </link> </target> </project> Assuming that the original C++ project can be compiled under Visual Studio, you should be able to look at the build log which will show you the various compiler and linker options used. Hope this helps, Matt. ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users