[LLVMdev] Problems linking shared library with __declspec(dllexport)

Anton Korobeynikov anton at korobeynikov.info
Mon Oct 12 01:35:23 PDT 2009


>  $ llvm-gcc -shared -o libfunction.dll function.c
>  Cannot export _someFunction: symbol not found
>  collect2: ld returned 1 exit status
Right, this is a bug introduced recently - we need to emit linker
directive with unmangled, but decorated name...

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list