on-internet
← Community

Building simple DLL with MinGW

Stack Overflow ·

I've read everything here and everything I can find on the net about doing this, but the information is out-of-date, contradictory, or inapplicable. I have a very simple library in C, which I compile to a shared library in Linux, and all works wonderfully. I want to port this to a Windows DLL. I haven't programmed Windows since the 1990s, but I'm not totally clueless about its complications (indeed, they are the reason I use Linux :-). The MinGW compiler line that generates the library is this (generated by cmake): gcc.exe -Wl,--export-all -Wl,--enable-auto-import -shared -o libonejoker.dll -W

Comments

Sign in or sign up to comment and upvote.

No comments yet.