This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: w32api header problems
Hi
> To fix the min and max, define the following before including windows.h:
> #define NOMINMAX
added that... waiting for compile to complete (Working on a VM...
takes forever :) and tada! It's happy and so am I! It still warns me
about undefined symbols:
make all-recursive
make[1]: Entering directory /cygdrive/e/projects/multicast/pmfp'
Making all in libsrc
make[2]: Entering directory
/cygdrive/e/projects/multicast/pmfp/libsrc'
>>>
/bin/sh ../libtool --mode=link c++ -g -O2 -o libpmfp.la -rpath
/usr/local/lib --no-undefined
libtool: link: warning: undefined symbols not allowed in
i686-pc-cygwin shared libraries
<<<
rm -fr .libs/libpmfp.la .libs/libpmfp.* .libs/libpmfp.*
ar cru .libs/libpmfp.a common.o pmfp.o pmfp_log.o crypto.o
mckey.o
ranlib .libs/libpmfp.a
creating libpmfp.la
(cd .libs && rm -f libpmfp.la && ln -s ../libpmfp.la libpmfp.la)
[ -e .libs ] && cp -f .libs/libpmfp.so.0.0.0 ./libpmfp.so
cp: cannot stat .libs/libpmfp.so.0.0.0': No such file or directory
make[2]: *** [all] Error 1
make[2]: Leaving directory
/cygdrive/e/projects/multicast/pmfp/libsrc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory /cygdrive/e/projects/multicast/pmfp'
make: *** [all-recursive-am] Error 2
> > string itoa(const int value, const short fix=0); //line 285
> Have you included <string> ?
Yip... This whole thing works perfectly if I take out
the #include <windows.h>
bye
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/