[LLVMbugs] [Bug 19939] New: Clang fails to export __declspec(dllexport) symbols
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jun 4 00:33:05 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19939
Bug ID: 19939
Summary: Clang fails to export __declspec(dllexport) symbols
Product: clang
Version: 3.4
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: darkjedi.trashmail at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 12602
--> http://llvm.org/bugs/attachment.cgi?id=12602&action=edit
main.cpp & main.h
When trying to compile a Windows DLL with clang using functions marked with
__declspec(dllexport) the compilation fails with:
Cannot export _DllMain at 12: symbol not found
Cannot export _SomeFunction: symbol not found
The symbols created in the main.o file are correct (output from objdump):
[ 2](sec 1)(fl 0x00)(ty 20)(scl 2) (nx 1) 0x00000000 _SomeFunction
[ 5](sec 1)(fl 0x00)(ty 20)(scl 2) (nx 0) 0x00000080 _DllMain at 12
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140604/5551539e/attachment.html>
More information about the llvm-bugs
mailing list