Success! Cross Compiler Linux to Cygwin

Elfyn McBratney elfyn-cygwin@exposure.org.uk
Thu Apr 24 17:13:00 GMT 2003


> 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

That's the problem. You need to set-up a host tree for i686-pc-mingw32 like
I said in the other reply.

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

Nope. This is all you 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):
>
> [...]
> > 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.

Making sure that (if you want to compile mingw apps) you have the host tree
set-up where you installed your cross.

Elfyn


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



More information about the Cygwin mailing list