SourceForge has been redesigned. Learn more.
Close

libset element not being processed?

Help
2006-03-10
2013-04-24
  • Owen Jacobson

    Owen Jacobson - 2006-03-10

    My cc invokation looks like:

        <!-- Compliation targets -->
        <target name="build.lib">
            <cc debug="false"
                exceptions="true"
                multithreaded="true"
                link="static"
                objdir="${compile.objects}"
                outfile="${compile.build}/${compile.file}"
                optimize="none"
                rtti="false"
                runtime="dynamic">
                <includepath refid="compile.include" />
                <defineset refid="compile.defines" />
                <fileset refid="compile.src" />

                <compiler name="msvc">
                    <defineset define="DLL_USE,WINNT" />
                </compiler>
                <linker name="msvc">
                    <libset libs="hlvdd" dir="${compile.lib}" />
                    <syslibset libs="iphlpapi,netapi32" />
                </linker>
            </cc>
        </target>

    And yet, cc seems to be silently dropping the libset and syslibset:

           [cc] cl /c /nologo /GX /DNDEBUG /MD /DDLL_USE /DWINNT /ID:\dev-env\licenc
    e\include /ID:\dev-env\licence\include\licence D:\dev-env\licence\src\secfeat.cp
    p D:\dev-env\licence\src\seccrypt.cpp D:\dev-env\licence\src\licence.cpp D:\dev-
    env\licence\src\secdongl.cpp D:\dev-env\licence\src\hlapi_c.c D:\dev-env\licence
    \src\opssem.cpp D:\dev-env\licence\src\opsmlt.cpp D:\dev-env\licence\src\opsseme
    x.cpp
           [cc] secfeat.cpp
           [cc] seccrypt.cpp
           [cc] licence.cpp
           [cc] secdongl.cpp
           [cc] Generating Code...
           [cc] Compiling...
           [cc] hlapi_c.c
           [cc] Generating Code...
           [cc] Compiling...
           [cc] opssem.cpp
           [cc] opsmlt.cpp
           [cc] opssemex.cpp
           [cc] Generating Code...
           [cc] Starting link
           [cc] lib /nologo /OUT:licence.lib ..\objects\secfeat.obj ..\objects\seccr
    ypt.obj ..\objects\licence.obj ..\objects\secdongl.obj ..\objects\hlapi_c.obj ..
    \objects\opssem.obj ..\objects\opsmlt.obj ..\objects\opssemex.obj

    What've I screwed up?  compile.lib really does contain a file named hlvdd.lib, and both netapi32.lib and iphlpapi.lib are in LIB.

     
    • Owen Jacobson

      Owen Jacobson - 2006-03-10

      (I should point out I get the same results by using <cc name="msvc"...> and putting the libset and syslibset elements directly in the cc element, too.)

       

Log in to post a comment.