Reini Urban wrote: > Some attribute causes the linker to refuse to build the dll and wants > to build an exe.
That's because you used -Wl,-shared where you should have used -shared. When you use -Wl the driver treats the argument as an opaque value that is simply passed to the linker without interpretation. In this case it means the driver is unaware that you're trying to create a shared library and instead passes to the linker the startup object and corresponding options for creating a program. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/