[linux] Re: [linux]OT: kompilacia pod cygwin

Juraj Variny jv99737 na decef.elf.stuba.sk
Čtvrtek Prosinec 19 14:00:37 CET 2002


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'

> BTW, cygwin je tu mierne OT.
Suhlas. Pozabudol som na to.

Juraj
 




Další informace o konferenci linux