Re: compiling sys/types.h from cygwin ????

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

 



On Mon, Feb 02, 2004 at 06:34:49AM -0500, Graham Walsh wrote:
> 
> 
> thanks for that,
> 
> No my link line is failing with multiple definition of "atexit".
> 
> can you tell me what I should link against? I  am getting the following 
> link error;
> 
> C:\Dev-Cpp\projects>g++ -o server.exe server.cpp -L"C:\cygwin\lib" -lcygwin 
> -I"C
> :\cygwin\usr\include"
> C:\cygwin\lib/libcygwin.a(d000586.o)(.text+0x0): multiple definition of 
> `atexit'
> 
> c:/dev-cpp/bin/../lib/gcc-lib/mingw32/3.2/../../../crt2.o(.text+0x40):crt1.c: 
> fi
> rst defined here

I think you're trying to hard (to break things). Usually

$ g++ -o server server.cpp 

should suffice as the cygwin DLLs are automatically included when
linking unless the -mno-cygwin option is given.

HTH
-- 
Claudio Bley                                 ASCII ribbon campaign (")
Debian GNU/Linux user                         - against HTML email  X 
http://www.cs.uni-magdeburg.de/~bley/                     & vCards / \

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux