Hi to all;
I use nant to build some VC++ .NET projects. I use only solution task and csproj files. Tehre is some conflict in libc.lib and libcmt.lib files. How can i solve the problem... The build script and the error is below...
Thank you all.
Build Script:

 <target name="build" description="Build all targets.">
        <call target="build.winforms"/>
    </target>
   
    <target name="rebuild" depends="build" />

    <target name="build.winforms">
     <solution configuration="Release SERVICE">
    <projects>
      <include name="CrdServer.vcproj" />
    </projects>
 </solution>
 </target>

 

And the error is:

                             [link] libc.lib(crt0dat.obj) : error LNK2005: ___crtExitProcess already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: __cinit already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: _exit already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: __exit already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: __cexit already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: __c_exit already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: __C_Exit_Done already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: __C_Termination_Done already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: __exitflag already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: __wpgmptr already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: __pgmptr already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: ___winitenv already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: __wenviron already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: ___initenv already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: __environ already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: ___wargv already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: ___argv already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: ___argc already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: __winminor already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: __winmajor already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: __winver already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: __osver already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: __osplatform already defined in LIBCMT.lib(crt0dat.obj)
                             [link] libc.lib(crt0dat.obj) : error LNK2005: __umaskval already defined in LIBCMT.lib(crt0dat.obj)
                             [link] LIBCMT.lib(crt0init.obj) : warning LNK4098:defaultlib 'libc.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
                             [link] C:\ClearCaseViews\MILENASP\MILENASP_OnlineModules\SwitchServer\Switch___Win32_Release_SERVICE\Switch.exe : fatal error LNK11
69: one or more multiply defined symbols found

            BUILD FAILED

 
 
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to