Thanks. I'll give this a try. My setup is 64 bits. Will I get 64 bit dlls? I also need 32 bit ones. How do I do this? John On Sat, Mar 05, 2011 at 07:34:14AM +1000, James Teh wrote: > On 5/03/2011 3:18 AM, John J. Boyer wrote: > >When using Cygwin to do the build, the gcc option -no-cygwin should be > >specified to make Cygwin produce libraries in native Windows format. > This shouldn't be the default. The default with Cygwin is always to > produce Cygwin libraries. > > >If > >this is done using the CFLAGS option with the present configure, the > >script generates an error message saying that executables canot be > >created. It would be nice to have a --cygwin option. > To build native libraries, Cygwin users should use --build=mingw32. > > Unfortunately, this still doesn't pass the -mno-cygwin option to gcc. > There are some bugs if you pass this in CFLAGS. I can't remember why; > it's something to do with it needing to be the first option or > something. The way I do it is to create a shell script with the > following text and stick it in /usr/local/bin/mgcc: > -- > #!/bin/bash > gcc -mno-cygwin "$@" > -- > You can then do: > ./configure CC=mgcc --build=mingw32 > > Jamie > > -- > James Teh > Vice President, Developer > NV Access Inc, ABN 61773362390 > Email: jamie@xxxxxxxxxxxx > Web site: http://www.nvaccess.org/ > For a description of the software, to download it and links to > project pages go to http://www.abilitiessoft.com -- John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc. http://www.abilitiessoft.com Madison, Wisconsin USA Developing software for people with disabilities For a description of the software, to download it and links to project pages go to http://www.abilitiessoft.com