[LLVMbugs] [Bug 5175] New: llvm-gcc cannot export symbols with __declspec(dllexport)
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Oct 13 00:58:12 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=5175
Summary: llvm-gcc cannot export symbols with
__declspec(dllexport)
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Keywords: compile-fail
Severity: normal
Priority: P2
Component: Linker
AssignedTo: unassignedbugs at nondot.org
ReportedBy: pijnacker at dse.nl
CC: llvmbugs at cs.uiuc.edu
Compiling the following function into a shared library on mingw/windows
__declspec(dllexport) someFunction()
{
printf("Hi\n");
}
gives the following error:
$ llvm-gcc -shared -o libfunction.dll function.c
Cannot export _someFunction: symbol not found
collect2: ld returned 1 exit status
Anton said about this:
Right, this is a bug introduced recently - we need to emit linker directive
with unmangled, but decorated name...
--
Ronald
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list