Hi Kevin,

The warnings you get are not related to NAnt. You're building a
mixed-mode assembly (including both native and clr code), are you aware
of the specific issues you have to deal with? Here are some resources if
you're not : 

PRB: Linker Warnings When You Build Managed Extensions for C++ DLL
Projects:
http://support.microsoft.com/?id=814472

Mixed DLL Loading Problem:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vste
chart/html/vcconMixedDLLLoadingProblem.asp

What are the C and C++ libraries my program would link with? :
http://support.microsoft.com/default.aspx?scid=kb;EN-US;154753


I'm just curious as well : what are your motivations for choosing to use
cl/link rather than a solution task ?


regards,

Thibaut Barrère

http://blogs.dotnetguru.org/tbarrere

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Burton,
Kevin
Sent: dimanche 25 juillet 2004 11:31
To: [EMAIL PROTECTED]
Subject: Re: [Nant-users] Managed C++ DLL?



Still getting warnings with the below task.

                 [link] Linking 16 files to
'D:\Projects\Visa\MR0804\Application
 Server Code\build\debug-2.1.13\LDAPInterface.dll'.
                 [link] msvcrtd.lib(checkclr.obj) : warning LNK4210:
.CRT
sectio
n exists; there may be unhandled static initializers or terminators
                 [link] msvcrtd.lib(secchk.obj) : warning LNK4210: .CRT
section
exists; there may be unhandled static initializers or terminators
                 [link] libcpmt.lib(xlock.obj) : warning LNK4210: .CRT
section e
xists; there may be unhandled static initializers or terminators
                 [link] LDAPInterface.obj : warning LNK4210: .CRT
section
exists
; there may be unhandled static initializers or terminators

Any ideas what I need to add?

        <link output="${build.dir}\LDAPInterface.dll">
            <arg value="/DLL" />
            <arg value="/NOENTRY" />
            <sources>
               <include name="${build.dir}\*.obj" />
               <include
name="${VcInstallDir}\PlatformSDK\lib\wldap32.lib"
/>
               <include name="D:\Program Files\Microsoft Visual Studio
.NET
2003\SDK\v1.1\Lib\mscoree.lib" />
               <include name="${VcInstallDir}\lib\msvcrtd.lib" />
               <include
name="${VcInstallDir}\PlatformSDK\lib\Netapi32.lib"
/>
               <include
name="${VcInstallDir}\PlatformSDK\lib\kernel32.lib"
/>
               <include
name="${VcInstallDir}\PlatformSDK\lib\advapi32.lib"
/>
               <include name="${VcInstallDir}\PlatformSDK\lib\ole32.lib"
/>
            </sources>
            <libdirs>
               <include name="${VcInstallDir}\lib" />
               <include name="${VcInstallDir}\PlatformSDK\lib" />
            </libdirs>
        </link>




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=ick
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.725 / Virus Database: 480 - Release Date: 19/07/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.725 / Virus Database: 480 - Release Date: 19/07/2004
 



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to