Bugs item #1435895, was opened at 2006-02-21 13:59
Message generated for change (Comment added) made by drieseng
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1435895&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: Tasks
Group: 0.85
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: dimchick (dimchick)
>Assigned to: Gert Driesen (drieseng)
Summary: Can't link .NET project with VC++ project

Initial Comment:
I can not link managed project that is referenced to umnanaged project in 
solution

Steps to reproduce bug:
1. Create Solution
2. Create VC++ DLL project (e.g. "unmanaged")
2.a. add this function to any cpp file of the project
[code]
void __declspec(dllexport) foo1()
{
}
[/code]

3. Create .NET DLL project (e.g. "managed")
3.a.
add this code to any cpp file of the project
[code]
extern void __declspec(dllimport) foo1();

namespace test
{
        public __gc class Test
        {
        public:
                Test()
                {
                        foo1();
                }
        };
}
[/code]
3.b. refer this project to "unmanaged"

4. create build file
[xml]
<?xml version="1.0"?>
<project name="NAnt Examples" default="build">
        <solution configuration="Debug" solutionfile="Solution1\Solution1.sln" 
/>
</project>
[/xml]
5. start compilation
NAnt.exe" -t:net-1.1 -debug -f:sol.build

Expected:
NAnt provide standart lib files, obje files of compiled CPP files of project 
and unmanaged.lib to the linker while "managed" is compiling

In fact:
NAnt provide only standart lib files and OBJ files of compiled CPP files.

As the result we have linker error: 
[link] managed.obj : error LNK2001: unresolved external symbol "void __cdecl 
foo1(void)" (?foo1@@$$FYAXXZ)

----------------------------------------------------------------------

>Comment By: Gert Driesen (drieseng)
Date: 2006-03-05 10:17

Message:
Logged In: YES 
user_id=707851

This is now fixed in cvs.

Thanks for the report !

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1435895&group_id=31650


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to