automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: automake cross compile on Linux


From: Ralf Wildenhues
Subject: Re: automake cross compile on Linux
Date: Sun, 29 Nov 2009 20:32:11 +0100
User-agent: Mutt/1.5.20 (2009-08-09)

Hi Ken,

* Ken Perl wrote on Sun, Nov 29, 2009 at 07:11:11AM CET:
> I may configure; make successfully on Linux, but when I tried to build
> it for win32 crossly on Linux, I have trouble, see below steps,
> 
> ./configure --build i686-pc-linux-gnu --host i586-mingw32msvc
> make
> i586-mingw32msvc-gcc  -g -O2   -o hello.exe hello.o
> hello.o: In function `main':
> /home/pgy/c/gtk/test/hello.c:4: undefined reference to `puts'
> /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/lib/libmingw32.a(main.o):(.text+0x85):
> undefined reference to address@hidden'
> collect2: ld returned 1 exit status

Hmm, did you build that i586-mingw32msvc-gcc yourself?  How was it
configured?

This doesn't look like an autotools bug to me.  If you take your hello.c
and just run
  i586-mingw32msvc-gcc -o hello.exe hello.c

without involving make, autoconf, nor automake, it seems it would still
fail; we need to find out why.

Cheers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]