Bugs item #1435895, was opened at 2006-02-21 14:59 Message generated for change (Tracker Item Submitted) made by Item Submitter 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: Functions Group: 0.85 Status: Open Resolution: None Priority: 5 Submitted By: dimchick (dimchick) Assigned to: Nobody/Anonymous (nobody) 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) ---------------------------------------------------------------------- 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: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers