[linux] Re: [linux]OT: kompilacia pod cygwin
Marcel Telka
marcel na telka.sk
Čtvrtek Prosinec 19 17:09:15 CET 2002
On Thu, Dec 19, 2002 at 02:00:37PM +0100, Juraj Variny wrote:
> D?a Ut 17. December 2002 13:07 Marcel Telka napísal:
> > Ukaz kratku ukazku, ktora ti nefunguje (aj s chybovymi hlaskami).
>
> No, musel som sa medzitym presunut na iny komp (predtym win2000, teraz win98).
> Tu to uz hapruje aj na uplne trivialnom hello world programiku:
>
> $ gcc -o hello hello.c
> /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld: cannot
> find -luser32
> collect2: ld returned 1 exit status
>
> Pokus o riesenie:
>
> $ gcc -L/cygdrive/c/windows/system -o hello hello.c
> /usr/lib/gcc-lib/i686-pc-cygwin/3.2/libgcc.a(w32-shared-ptr.o)(.text+0x60):
> undefined reference to `_FindAtomA na 4'
> /usr/lib/gcc-lib/i686-pc-cygwin/3.2/libgcc.a(w32-shared-ptr.o)(.text+0x131):
> undefined reference to `_AddAtomA na 4'
> /usr/lib/gcc-lib/i686-pc-cygwin/3.2/libgcc.a(w32-shared-ptr.o)(.text+0x18e):
> undefined reference to `_GetAtomNameA na 12'
> /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libcygwin.a(_cygwin_crt0_common.o)(
> .text+0xbd): undefined reference to `_GetModuleHandleA na 4'
Posli mi este vystup prikazu `cygcheck -c`.
>
> > BTW, cygwin je tu mierne OT.
> Suhlas. Pozabudol som na to.
... mozes na sukromny mail.
Ahoj.
--
+-------------------------------------------+
| Marcel Telka e-mail: marcel na telka.sk |
| homepage: http://telka.sk/ |
| jabber: marcel na jabber.sk |
+-------------------------------------------+
Další informace o konferenci linux