clang: Compiling dll with clang

Hey guys,

Could someone be so kind as to tell me how to build a dll with clang?

While trying to compile a very basic test dll I keep getting:

clang++: error: unable to execute command: program not executable
clang++: error: linker command failed due to signal (use -v to see invocation)

I'm unable to find any tutorials or info on the correct syntax to use and any caveats you need to keep in mind specifically for clang when building dlls.

Thanks for your time.

Did you try to use '-v' to see the command invocation, and get a clue about what is wrong ?

-- Jean-Daniel