Re: boost program_options library with cygwin

2005-11-11 Thread Thomas Porschberg
On Thu, Nov 10, 2005 at 10:25:40AM -0800, Brian Dessent wrote: > Thomas Porschberg wrote: > > > because libcppunit was built as cygwin-library. I resolved the > > problem by compiling the library from sources with -mno-cygwin > > flag. And then I used this library for both, my application > > cygw

Re: boost program_options library with cygwin

2005-11-10 Thread Brian Dessent
Thomas Porschberg wrote: > because libcppunit was built as cygwin-library. I resolved the > problem by compiling the library from sources with -mno-cygwin > flag. And then I used this library for both, my application > cygwin-build and my application mingw-build. > If I understand you right, this

Re: boost program_options library with cygwin

2005-11-10 Thread Thomas Porschberg
Hi Brian, thanks for your explanation. I'm quite new to cygwin/mingw and so my questions are probably very basic. The idea on my side is to have sources which can be compiled as an cygwin application or as a mingw/windows application. The working environment is cygwin. The distinction between wind

Re: boost program_options library with cygwin

2005-11-09 Thread Brian Dessent
Thomas Porschberg wrote: > This is of course nice but can someone give an explanation ? What do you want an explantion of? The fact that you can't mix and match Cygwin and non-Cygwin objects in an executable? That's because mingw and Cygwin use different C runtimes. It boils down to the fact t

boost program_options library with cygwin

2005-11-09 Thread Thomas Porschberg
Hi, I have a problem when using the boost::program::options library under cygwin in conjunction with building a application which I compile with the "-mno-cygwin -mwindows" options. I get a "undefined reference error to _environ" at link time. I guess the problem arised because boost libraries (ve