gnu.gcc.help
[Top] [All Lists]

error during linking: multiple definition of `__cygwin_crt0_bp' ...

Subject: error during linking: multiple definition of `__cygwin_crt0_bp' ...
From: "kai rostenthal"
Date: 18 Jul 2006 03:52:21 -0700
Newsgroups: gnu.gcc.help
Hello,

I wrote a little c++-program (hallo world) and I wanted to compile and
link this.

my steps:
1. set
GCC_EXEC_PREFIX=J:\Software\WinProgs\cyggnu\h-i386-cygwin32\lib\gcc-lib\

2. gcc test.cpp -o test.o

3. C:\tmp\rs\dev>gcc test.o -o "Project1.exe"
test.o(.data+0x0):fake: multiple definition of `__cygwin_crt0_bp'
J:\Software\WinProgs\cyggnu\h-i386-cygwin32\lib\gcc-lib\i386-cygwin32\2.7-B19\../../../../i386-cygwin32\lib\crt0.o(.data+0x0):crt0.c:
first defined here
test.o(.text+0x0):fake: multiple definition of `mainCRTStartup'
J:\Software\WinProgs\cyggnu\h-i386-cygwin32\lib\gcc-lib\i386-cygwin32\2.7-B19\../../../../i386-cygwin32\lib\crt0.o(.text+0x0):crt0.c:
first defined here

I don't get an executable.
What is the reason and how can I resolve this problem?
Thank's  for your hints, Kai


<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy