Subject: Re: Success! Cross Compiler Linux to Cygwin
From: Joe Buehler <[email-masked]>
To: [email-masked]
Date: Thu, 24 Apr 2003 11:02:21 -0400

Elfyn McBratney wrote:

> What happens when you try and link an executable using '-mno-cygwin'? Do you

../bin/i686-pc-cygwin-g++ -o test.exe -mno-cygwin test.cc
i686-pc-cygwin-g++: installation problem, cannot exec `cc1plus': No such file or directory

> have the full w32api package installed? What (link)errors do you get? Do you

I do on my Cygwin box, and I copied /lib and /usr/include as Tim Renner's instructions
said.  Or am I supposed to cross-compile w32api?  Or did I not copy something I need?

> have the the .../i686-pc-{cygwin,mingw} trees set-up?

Here's what I have in the way of directories under the top-level install dir
(cut down because the list is large):

./lib
./lib/gcc-lib
./lib/gcc-lib/i686-pc-cygwin
./lib/gcc-lib/i686-pc-cygwin/3.2
./lib/gcc-lib/i686-pc-cygwin/3.2/include
./i686-pc-cygwin
./i686-pc-cygwin/bin
./i686-pc-cygwin/lib
./i686-pc-cygwin/lib/ldscripts
./i686-pc-cygwin/lib/cvs
./i686-pc-cygwin/lib/cvs/contrib
./i686-pc-cygwin/lib/dde1.2
./i686-pc-cygwin/lib/gcc-lib
./i686-pc-cygwin/lib/gcc-lib/i686-pc-cygwin
./i686-pc-cygwin/lib/gcc-lib/i686-pc-cygwin/2.95.3-10
./i686-pc-cygwin/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/include
./i686-pc-cygwin/lib/gcc-lib/i686-pc-cygwin/3.2
./i686-pc-cygwin/lib/gcc-lib/i686-pc-cygwin/3.2/include
./i686-pc-cygwin/lib/gcc-lib/i686-pc-cygwin/3.2/include/gcj
./i686-pc-cygwin/lib/gcc-lib/i686-pc-mingw32
./i686-pc-cygwin/lib/gcc-lib/i686-pc-mingw32/3.2
./i686-pc-cygwin/lib/gcc-lib/i686-pc-mingw32/3.2/include
./i686-pc-cygwin/lib/gcc-lib/i686-pc-mingw32/3.2/include/objc
./i686-pc-cygwin/lib/w32api
./i686-pc-cygwin/lib/make
./i686-pc-cygwin/include
./i686-pc-cygwin/include/arpa
./i686-pc-cygwin/include/asm
./i686-pc-cygwin/include/c++
./i686-pc-cygwin/include/c++/3.2
./i686-pc-cygwin/include/c++/3.2/backward
./i686-pc-cygwin/include/c++/3.2/bits
./i686-pc-cygwin/include/c++/3.2/ext
./i686-pc-cygwin/include/c++/3.2/i686-pc-cygwin
./i686-pc-cygwin/include/c++/3.2/i686-pc-cygwin/bits
./i686-pc-cygwin/include/c++/3.2/i686-pc-mingw32
./i686-pc-cygwin/include/c++/3.2/i686-pc-mingw32/bits
./i686-pc-cygwin/include/cygwin
./i686-pc-cygwin/include/w32api
./i686-pc-cygwin/include/w32api/GL
./i686-pc-cygwin/include/w32api/ddk
./i686-pc-cygwin/sys-include
./i686-pc-cygwin/sys-include/arpa
./i686-pc-cygwin/sys-include/asm
./i686-pc-cygwin/sys-include/c++
./i686-pc-cygwin/sys-include/c++/3.2
./i686-pc-cygwin/sys-include/c++/3.2/backward
./i686-pc-cygwin/sys-include/c++/3.2/bits
./i686-pc-cygwin/sys-include/c++/3.2/ext
./i686-pc-cygwin/sys-include/c++/3.2/i686-pc-cygwin
./i686-pc-cygwin/sys-include/c++/3.2/i686-pc-cygwin/bits
./i686-pc-cygwin/sys-include/c++/3.2/i686-pc-mingw32
./i686-pc-cygwin/sys-include/c++/3.2/i686-pc-mingw32/bits
./i686-pc-cygwin/sys-include/cygwin
./i686-pc-cygwin/sys-include/g++-3
./i686-pc-cygwin/sys-include/g++-3/std
./i686-pc-cygwin/sys-include/mingw
./i686-pc-cygwin/sys-include/mingw/g++-3
./i686-pc-cygwin/sys-include/mingw/g++-3/std
./i686-pc-cygwin/sys-include/mingw/sys
./i686-pc-cygwin/sys-include/ncurses
./i686-pc-cygwin/sys-include/net
./i686-pc-cygwin/sys-include/netinet
./i686-pc-cygwin/sys-include/noX
./i686-pc-cygwin/sys-include/noX/X11
./i686-pc-cygwin/sys-include/org
./i686-pc-cygwin/sys-include/org/w3c
./i686-pc-cygwin/sys-include/org/w3c/dom
./i686-pc-cygwin/sys-include/org/w3c/dom/ranges
./i686-pc-cygwin/sys-include/org/w3c/dom/traversal
./i686-pc-cygwin/sys-include/org/xml
./i686-pc-cygwin/sys-include/org/xml/sax
./i686-pc-cygwin/sys-include/org/xml/sax/ext
./i686-pc-cygwin/sys-include/org/xml/sax/helpers
./i686-pc-cygwin/sys-include/protocols
./i686-pc-cygwin/sys-include/readline
./i686-pc-cygwin/sys-include/sys
./i686-pc-cygwin/sys-include/w32api
./i686-pc-cygwin/sys-include/w32api/GL
./i686-pc-cygwin/sys-include/w32api/ddk
./include
./include/c++
./include/c++/3.2
./include/c++/3.2/bits
./include/c++/3.2/backward
./include/c++/3.2/ext
./include/c++/3.2/i686-pc-cygwin
./include/c++/3.2/i686-pc-cygwin/bits

> I have this working but haven't attempted doing it myself yet, a colleague
> compiled it on our servers.

I am mainly looking for what is missing in Tim Renner's instructions.
-- 
Joe Buehler

--
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/