Compiling drivers under Cygwin

Vlad Dumitrescu <>
Wed Oct 6 20:50:48 CEST 2004


----- Original Message ----- 
From: "Nicolas Charpentier" <>
> I succeed to compile a driver using gcc from Cygwin. To avoid the 
> dependency with cygwin.dll, I compile with the option '-mno-cygwin' to use 
> the mingw librairies.

Thanks for the info, I had forgotten about that.

> 'g++ -c -mno-cygwin -fpic -shared -I$ERL_INCLUDE_CYGWIN_PATH' for all 
> sources.
> 'g++ -mno-cygwin -fpic -shared -oXXX.dll all_dot_o -llibrary_to_drive'

I still had trouble getting it compiled from Eclipse (using CDT), until I 
noticed the answer was in front of my nose: the "-mno-cygwin" option must be 
used even for the linker...

Thanks again!
/Vlad 



More information about the erlang-questions mailing list