Compile within cygwin with -mnocygwin

2004-12-01 Thread BARTHEL, MATTIAS
Hello

I am trying to compile a perl swig1.3 wrapper for a C++ lib
using cygwin but with the compiler define -mno-cygwin.

In perl.h there are lots of includes that cannot be found.

Should I put some special define in the Makefile to use another
Path for includes?

Thanks,

Mattias

Output:

c++ -DHAVE_CONFIG_H -I. -I. -I../config -I../include
-I/c/Python22/include -I/us
r/lib/perl5/5.8.5/cygwin-thread-multi-64int/CORE -g -O2 -DWINSOCK_2
-mno-cygwin
-DSWIG_GLOBAL_MAPPING -D_HOST_LITTLE_ENDIAN
-D_BK_LIBRARY=\/usr/local/lib/vh/li
bvhcore.so\ -L//c/SWIG-1.3.19/Lib -lswigpl -Wp,-MD,.deps/vhcore_wrap.pp
-c vhco
re_wrap.cpp  -DDLL_EXPORT -DPIC
In file included from vhcore_wrap.cpp:251:
/usr/lib/perl5/5.8.5/cygwin-thread-multi-64int/CORE/perl.h:637:27:
netinet/in.h:
 No such file or directory
/usr/lib/perl5/5.8.5/cygwin-thread-multi-64int/CORE/perl.h:641:26:
arpa/inet.h:
No such file or directory
/usr/lib/perl5/5.8.5/cygwin-thread-multi-64int/CORE/perl.h:687:27:
sys/times.h:
No such file or directory
/usr/lib/perl5/5.8.5/cygwin-thread-multi-64int/CORE/perl.h:838:30:
sys/ioctl.h:
No such file or directory
/usr/lib/perl5/5.8.5/cygwin-thread-multi-64int/CORE/perl.h:1274:23:
ieeefp.h: No
 such file or directory
/usr/lib/perl5/5.8.5/cygwin-thread-multi-64int/CORE/perl.h:2056:31:
win32thread.
h: No such file or directory
/usr/lib/perl5/5.8.5/cygwin-thread-multi-64int/CORE/perl.h:2086:21:
win32.h: No
such file or directory
In file included from
/usr/lib/perl5/5.8.5/cygwin-thread-multi-64int/CORE/perl.h
:2350,
 from vhcore_wrap.cpp:251:

--
Mattias Barthel, Software Engineer
CapGemini at Hewlett Packard Spain
Tel. 34 93 582 26 02
E-mail: [EMAIL PROTECTED] 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Compile within cygwin with -mnocygwin

2004-12-01 Thread Christopher Faylor
On Wed, Dec 01, 2004 at 04:23:55PM +0100, BARTHEL, MATTIAS wrote:
Hello

I am trying to compile a perl swig1.3 wrapper for a C++ lib
using cygwin but with the compiler define -mno-cygwin.

In perl.h there are lots of includes that cannot be found.

Right.  You have just discovered the difference between no cygwin
and cygwin.  Cygwin provides a unix-like environment for windows.

No cygwin provides a windows-like environment for windows with
a few minor, cheap unixisms thrown in.  netinet/in.h, sys/ioctl.h,
etc., are not minor or cheap so they are not part of no cygwin.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Compile within cygwin with -mnocygwin

2004-12-01 Thread Gerrit P. Haase
BARTHEL, MATTIAS wrote:
Hello
I am trying to compile a perl swig1.3 wrapper for a C++ lib
using cygwin but with the compiler define -mno-cygwin.
In perl.h there are lots of includes that cannot be found.
Yes, Cygwin Perl is compiled without this flag and so WIN32 is
not defined for Cygwin Perl.

Should I put some special define in the Makefile to use another
Path for includes?
You will need to use a MinGW compiled Perl.  I saw some links to
mingw-perl at the MinGW website recently where you should look to
get it.
Gerrit
--
=^..^=
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/