Product dll with gcc

I would like to produce with gcc
a linux special dll file (PE AND NOT ELF format) and use functions
linux inside.
How do I do ?
there is x86_64-w64-mingw32-gcc but i can't integrate linux function.

OTHER question :
When produce a dll windows since x86_64-w64-mingw32-gcc HOW I DO FOR REMOVE DECORATION 'MSVRTDLL....' ?
How i do for remove decoration dllmain ?
I would suggest to use code blocks in both cases. That would make it easier to find the appropriate flags.

For MSVRTDLL: This is again a flag. You need to check the static runtime environment.

How i do for remove decoration dllmain ?
What does that mean?
It might be possible to create a resource only dll.
Topic archived. No new replies allowed.