Boost logo

Boost :

From: Oliver.Kowalke_at_[hidden]
Date: 2006-12-18 07:09:24

> >> It's quite reasonable
> >> to build things on operating system X version N and have it run on
> >> operating system Y version M.
> >> Compiler running on Linux and producing binaries for Windows is a
> >> common beast.
> >
> > I think this is not true:
> I've used such a cross-compiler personally. It works and the
> produced binaries run on Windows.
> > UNIX : socket().
> > WIN: WSASocket()
> And? When you're building for mingw using Linux-hosted
> compiler, the set of header files and functions and
> preprocessor defines is the same as if you was running
> Windows-hosted compiler.

You have to insert your own preprocessor defines - which could be
handled better with autoconf.
It evaluates if the requested feature is available and produces the
See my example with strerror/strerror_r in my previous mail.

(without autoconf)

#if defined (LINUX || Solaris_10)
#elif defined (Solaris_28 || HP/UX_11)

(autoconf - version)


Boost list run by bdawes at, gregod at, cpdaniel at, john at