Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » HELP ME
HELP ME [message #152468] Sat, 27 August 2005 01:39 Go to next message
Eclipse UserFriend
Originally posted by: hughdavenport.hotmail.com

Yeh no-one has been replying to my posts, could someone please help me, my
error is as below. i really want it to work so i can use eclipse for c++ as
well :D

Code:
#include <iostream>
using namespace std;
int main()
{
cout <<"Hello World\n";
return 0;
}

Error: from linking(ie, after compiling .ccp-> .o, now compiling .o -> .exe)
g++ -L"C:\Windows\System32" -oHelloWorld.exe ./hello.o
d000014.o(.text+0x0): multiple definition of `_onexit'
/mingw/lib/crt2.o(.text+0x2c0):d:/src/mingw/build/runtime/.. /../runtime/crt1.c:277:
first defined here
d000020.o(.text+0x0): multiple definition of `atexit'
/mingw/lib/crt2.o(.text+0x2b0):d:/src/mingw/build/runtime/.. /../runtime/crt1.c:269:
first defined here
/mingw/lib/crt2.o(.text+0x15f): In function `_mingw_CRTStartup':
d:/src/mingw/build/runtime/../../runtime/crt1.c:193: undefined reference
to `SetUnhandledExceptionFilter@4'
/mingw/lib/crt2.o(.text+0x241):d:/src/mingw/build/runtime/.. /../runtime/crt1.c:234:
undefined reference to `ExitProcess@4'
/mingw/lib/libstdc++.a(globals_io.o)(.text+0x2e):globals_io. cc: undefined
reference to `_imp__CreateSemaphoreA@16'
/mingw/lib/libstdc++.a(globals_io.o)(.text+0x71):globals_io. cc: undefined
reference to `_imp__CreateSemaphoreA@16'
/mingw/lib/libstdc++.a(eh_globals.o)(.text+0x28):eh_globals. cc: undefined
reference to `_imp__TlsAlloc@0'
/mingw/lib/libstdc++.a(eh_globals.o)(.text+0x58):eh_globals. cc: undefined
reference to `_imp__GetLastError@0'
/mingw/lib/libstdc++.a(eh_globals.o)(.text+0xe4):eh_globals. cc: undefined
reference to `_imp__GetLastError@0'
/mingw/lib/libstdc++.a(eh_globals.o)(.text+0xf5):eh_globals. cc: undefined
reference to `_imp__TlsGetValue@4'
/mingw/lib/libstdc++.a(eh_globals.o)(.text+0x107):eh_globals .cc: undefined
reference to `_imp__SetLastError@4'
/mingw/lib/libstdc++.a(eh_globals.o)(.text+0x19e):eh_globals .cc: undefined
reference to `_imp__GetLastError@0'
/mingw/lib/libstdc++.a(eh_globals.o)(.text+0x1af):eh_globals .cc: undefined
reference to `_imp__TlsGetValue@4'
/mingw/lib/libstdc++.a(eh_globals.o)(.text+0x1c1):eh_globals .cc: undefined
reference to `_imp__SetLastError@4'
/mingw/lib/libstdc++.a(eh_globals.o)(.text+0x289):eh_globals .cc: undefined
reference to `InterlockedIncrement@4'
/mingw/lib/libstdc++.a(eh_globals.o)(.text+0x2a5):eh_globals .cc: undefined
reference to `imp(long,...)(...)( *) static@4'
/mingw/lib/libstdc++.a(eh_globals.o)(.text+0x2e4):eh_globals .cc: undefined
reference to `_imp__TlsSetValue@8'
/mingw/lib/libstdc++.a(eh_globals.o)(.text+0x32c):eh_globals .cc: undefined
reference to `_imp__GetLastError@0'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(w32-shared-pt r.o)(.text+0x31):
undefined reference to `_imp__GetAtomNameA@12'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(w32-shared-pt r.o)(.text+0x159):
undefined reference to `_imp__FindAtomA@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(w32-shared-pt r.o)(.text+0x281):
undefined reference to `_imp__AddAtomA@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(w32-shared-pt r.o)(.text+0x2a2):
undefined reference to `_imp__FindAtomA@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xf):
undefined reference to `_imp__TlsAlloc@0'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x42):
undefined reference to `_imp__GetLastError@0'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xc0):
undefined reference to `InterlockedIncrement@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xe9):
undefined reference to `imp(long,...)(...)( *) static@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x195):
undefined reference to `_imp__GetLastError@0'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x1a0):
undefined reference to `_imp__TlsGetValue@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x1ae):
undefined reference to `_imp__SetLastError@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x1c8):
undefined reference to `_imp__TlsSetValue@8'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x1e2):
undefined reference to `_imp__GetLastError@0'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x26c):
undefined reference to `_imp__TlsSetValue@8'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x279):
undefined reference to `_imp__GetLastError@0'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x4a5):
undefined reference to `_imp__GetLastError@0'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x4b0):
undefined reference to `_imp__TlsGetValue@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x4be):
undefined reference to `_imp__SetLastError@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x55b):
undefined reference to `_imp__TlsSetValue@8'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x568):
undefined reference to `_imp__GetLastError@0'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x715):
undefined reference to `_imp__GetLastError@0'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x720):
undefined reference to `_imp__TlsGetValue@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x72e):
undefined reference to `_imp__SetLastError@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x79a):
undefined reference to `_imp__TlsSetValue@8'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x7a7):
undefined reference to `_imp__GetLastError@0'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x8a5):
undefined reference to `_imp__GetLastError@0'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x8b0):
undefined reference to `_imp__TlsGetValue@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x8be):
undefined reference to `_imp__SetLastError@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x8dc):
undefined reference to `_imp__TlsSetValue@8'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x8ed):
undefined reference to `_imp__GetLastError@0'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x9dc):
undefined reference to `_imp__GetLastError@0'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x9e7):
undefined reference to `_imp__TlsGetValue@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x9f5):
undefined reference to `_imp__SetLastError@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xa0f):
undefined reference to `_imp__TlsSetValue@8'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xa1c):
undefined reference to `_imp__GetLastError@0'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xb30):
undefined reference to `_imp__GetLastError@0'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xb3c):
undefined reference to `_imp__TlsGetValue@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xb4d):
undefined reference to `_imp__SetLastError@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x5b):
undefined reference to `InterlockedIncrement@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x79):
undefined reference to `imp(long,...)(...)( *) static@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0xa8):
undefined reference to `_imp__TlsAlloc@0'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0xd2):
undefined reference to `_imp__GetLastError@0'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0xee):
undefined reference to `_imp__TlsFree@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x102):
undefined reference to `_imp__GetLastError@0'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x11e):
undefined reference to `_imp__GetLastError@0'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x12c):
undefined reference to `_imp__TlsGetValue@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x13a):
undefined reference to `_imp__SetLastError@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x165):
undefined reference to `_imp__TlsSetValue@8'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x178):
undefined reference to `_imp__GetLastError@0'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x1be):
undefined reference to `_imp__CreateSemaphoreA@16'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x1de):
undefined reference to `InterlockedIncrement@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x201):
undefined reference to `_imp__WaitForSingleObject@8'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x210):
undefined reference to `InterlockedDecrement@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x23e):
undefined reference to `InterlockedDecrement@4'
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x262):
undefined reference to `_imp__ReleaseSemaphore@12'
collect2: ld returned 1 exit status
make: *** [HelloWorld.exe] Error 1
make: Target `all' not remade because of errors.
Build complete for project Hello World
Re: HELP ME [message #152486 is a reply to message #152468] Sat, 27 August 2005 16:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: doug-list.threepenny.net

Hugh,

Your error is in the linking phase after the compilation has completed
successfully. So I think you would do better to post the makefile if
you can as that's where the list of libraries used in the link will be
defined.

Doug


Hugh Davenport wrote:
> Yeh no-one has been replying to my posts, could someone please help me, my
> error is as below. i really want it to work so i can use eclipse for c++ as
> well :D
>
> Code:
> #include <iostream>
> using namespace std;
> int main()
> {
> cout <<"Hello World\n";
> return 0;
> }
>
> Error: from linking(ie, after compiling .ccp-> .o, now compiling .o -> .exe)
> g++ -L"C:\Windows\System32" -oHelloWorld.exe ./hello.o
> d000014.o(.text+0x0): multiple definition of `_onexit'
> /mingw/lib/crt2.o(.text+0x2c0):d:/src/mingw/build/runtime/.. /../runtime/crt1.c:277:
> first defined here
> d000020.o(.text+0x0): multiple definition of `atexit'
> /mingw/lib/crt2.o(.text+0x2b0):d:/src/mingw/build/runtime/.. /../runtime/crt1.c:269:
> first defined here
> /mingw/lib/crt2.o(.text+0x15f): In function `_mingw_CRTStartup':
> d:/src/mingw/build/runtime/../../runtime/crt1.c:193: undefined reference
> to `SetUnhandledExceptionFilter@4'
> /mingw/lib/crt2.o(.text+0x241):d:/src/mingw/build/runtime/.. /../runtime/crt1.c:234:
> undefined reference to `ExitProcess@4'
> /mingw/lib/libstdc++.a(globals_io.o)(.text+0x2e):globals_io. cc: undefined
> reference to `_imp__CreateSemaphoreA@16'
> /mingw/lib/libstdc++.a(globals_io.o)(.text+0x71):globals_io. cc: undefined
> reference to `_imp__CreateSemaphoreA@16'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x28):eh_globals. cc: undefined
> reference to `_imp__TlsAlloc@0'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x58):eh_globals. cc: undefined
> reference to `_imp__GetLastError@0'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0xe4):eh_globals. cc: undefined
> reference to `_imp__GetLastError@0'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0xf5):eh_globals. cc: undefined
> reference to `_imp__TlsGetValue@4'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x107):eh_globals .cc: undefined
> reference to `_imp__SetLastError@4'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x19e):eh_globals .cc: undefined
> reference to `_imp__GetLastError@0'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x1af):eh_globals .cc: undefined
> reference to `_imp__TlsGetValue@4'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x1c1):eh_globals .cc: undefined
> reference to `_imp__SetLastError@4'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x289):eh_globals .cc: undefined
> reference to `InterlockedIncrement@4'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x2a5):eh_globals .cc: undefined
> reference to `imp(long,...)(...)( *) static@4'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x2e4):eh_globals .cc: undefined
> reference to `_imp__TlsSetValue@8'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x32c):eh_globals .cc: undefined
> reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(w32-shared-pt r.o)(.text+0x31):
> undefined reference to `_imp__GetAtomNameA@12'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(w32-shared-pt r.o)(.text+0x159):
> undefined reference to `_imp__FindAtomA@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(w32-shared-pt r.o)(.text+0x281):
> undefined reference to `_imp__AddAtomA@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(w32-shared-pt r.o)(.text+0x2a2):
> undefined reference to `_imp__FindAtomA@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xf):
> undefined reference to `_imp__TlsAlloc@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x42):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xc0):
> undefined reference to `InterlockedIncrement@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xe9):
> undefined reference to `imp(long,...)(...)( *) static@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x195):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x1a0):
> undefined reference to `_imp__TlsGetValue@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x1ae):
> undefined reference to `_imp__SetLastError@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x1c8):
> undefined reference to `_imp__TlsSetValue@8'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x1e2):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x26c):
> undefined reference to `_imp__TlsSetValue@8'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x279):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x4a5):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x4b0):
> undefined reference to `_imp__TlsGetValue@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x4be):
> undefined reference to `_imp__SetLastError@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x55b):
> undefined reference to `_imp__TlsSetValue@8'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x568):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x715):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x720):
> undefined reference to `_imp__TlsGetValue@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x72e):
> undefined reference to `_imp__SetLastError@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x79a):
> undefined reference to `_imp__TlsSetValue@8'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x7a7):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x8a5):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x8b0):
> undefined reference to `_imp__TlsGetValue@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x8be):
> undefined reference to `_imp__SetLastError@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x8dc):
> undefined reference to `_imp__TlsSetValue@8'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x8ed):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x9dc):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x9e7):
> undefined reference to `_imp__TlsGetValue@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x9f5):
> undefined reference to `_imp__SetLastError@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xa0f):
> undefined reference to `_imp__TlsSetValue@8'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xa1c):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xb30):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xb3c):
> undefined reference to `_imp__TlsGetValue@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xb4d):
> undefined reference to `_imp__SetLastError@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x5b):
> undefined reference to `InterlockedIncrement@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x79):
> undefined reference to `imp(long,...)(...)( *) static@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0xa8):
> undefined reference to `_imp__TlsAlloc@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0xd2):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0xee):
> undefined reference to `_imp__TlsFree@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x102):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x11e):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x12c):
> undefined reference to `_imp__TlsGetValue@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x13a):
> undefined reference to `_imp__SetLastError@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x165):
> undefined reference to `_imp__TlsSetValue@8'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x178):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x1be):
> undefined reference to `_imp__CreateSemaphoreA@16'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x1de):
> undefined reference to `InterlockedIncrement@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x201):
> undefined reference to `_imp__WaitForSingleObject@8'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x210):
> undefined reference to `InterlockedDecrement@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x23e):
> undefined reference to `InterlockedDecrement@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x262):
> undefined reference to `_imp__ReleaseSemaphore@12'
> collect2: ld returned 1 exit status
> make: *** [HelloWorld.exe] Error 1
> make: Target `all' not remade because of errors.
> Build complete for project Hello World
>
>
>
>
Re: HELP ME [message #152502 is a reply to message #152468] Sun, 28 August 2005 21:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shengcun.ma.sas.com

Hi Hugh Davenport,
I met the same error, you should modify your source code file name like
Hello.cpp.
> Yeh no-one has been replying to my posts, could someone please help me, my
> error is as below. i really want it to work so i can use eclipse for c++ as
> well :D
>
> Code:
> #include <iostream>
> using namespace std;
> int main()
> {
> cout <<"Hello World\n";
> return 0;
> }
>
> Error: from linking(ie, after compiling .ccp-> .o, now compiling .o -> .exe)
> g++ -L"C:\Windows\System32" -oHelloWorld.exe ./hello.o
> d000014.o(.text+0x0): multiple definition of `_onexit'
> /mingw/lib/crt2.o(.text+0x2c0):d:/src/mingw/build/runtime/.. /../runtime/crt1.c:277:
> first defined here
> d000020.o(.text+0x0): multiple definition of `atexit'
> /mingw/lib/crt2.o(.text+0x2b0):d:/src/mingw/build/runtime/.. /../runtime/crt1.c:269:
> first defined here
> /mingw/lib/crt2.o(.text+0x15f): In function `_mingw_CRTStartup':
> d:/src/mingw/build/runtime/../../runtime/crt1.c:193: undefined reference
> to `SetUnhandledExceptionFilter@4'
> /mingw/lib/crt2.o(.text+0x241):d:/src/mingw/build/runtime/.. /../runtime/crt1.c:234:
> undefined reference to `ExitProcess@4'
> /mingw/lib/libstdc++.a(globals_io.o)(.text+0x2e):globals_io. cc: undefined
> reference to `_imp__CreateSemaphoreA@16'
> /mingw/lib/libstdc++.a(globals_io.o)(.text+0x71):globals_io. cc: undefined
> reference to `_imp__CreateSemaphoreA@16'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x28):eh_globals. cc: undefined
> reference to `_imp__TlsAlloc@0'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x58):eh_globals. cc: undefined
> reference to `_imp__GetLastError@0'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0xe4):eh_globals. cc: undefined
> reference to `_imp__GetLastError@0'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0xf5):eh_globals. cc: undefined
> reference to `_imp__TlsGetValue@4'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x107):eh_globals .cc: undefined
> reference to `_imp__SetLastError@4'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x19e):eh_globals .cc: undefined
> reference to `_imp__GetLastError@0'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x1af):eh_globals .cc: undefined
> reference to `_imp__TlsGetValue@4'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x1c1):eh_globals .cc: undefined
> reference to `_imp__SetLastError@4'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x289):eh_globals .cc: undefined
> reference to `InterlockedIncrement@4'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x2a5):eh_globals .cc: undefined
> reference to `imp(long,...)(...)( *) static@4'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x2e4):eh_globals .cc: undefined
> reference to `_imp__TlsSetValue@8'
> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x32c):eh_globals .cc: undefined
> reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(w32-shared-pt r.o)(.text+0x31):
> undefined reference to `_imp__GetAtomNameA@12'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(w32-shared-pt r.o)(.text+0x159):
> undefined reference to `_imp__FindAtomA@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(w32-shared-pt r.o)(.text+0x281):
> undefined reference to `_imp__AddAtomA@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(w32-shared-pt r.o)(.text+0x2a2):
> undefined reference to `_imp__FindAtomA@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xf):
> undefined reference to `_imp__TlsAlloc@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x42):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xc0):
> undefined reference to `InterlockedIncrement@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xe9):
> undefined reference to `imp(long,...)(...)( *) static@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x195):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x1a0):
> undefined reference to `_imp__TlsGetValue@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x1ae):
> undefined reference to `_imp__SetLastError@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x1c8):
> undefined reference to `_imp__TlsSetValue@8'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x1e2):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x26c):
> undefined reference to `_imp__TlsSetValue@8'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x279):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x4a5):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x4b0):
> undefined reference to `_imp__TlsGetValue@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x4be):
> undefined reference to `_imp__SetLastError@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x55b):
> undefined reference to `_imp__TlsSetValue@8'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x568):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x715):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x720):
> undefined reference to `_imp__TlsGetValue@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x72e):
> undefined reference to `_imp__SetLastError@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x79a):
> undefined reference to `_imp__TlsSetValue@8'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x7a7):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x8a5):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x8b0):
> undefined reference to `_imp__TlsGetValue@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x8be):
> undefined reference to `_imp__SetLastError@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x8dc):
> undefined reference to `_imp__TlsSetValue@8'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x8ed):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x9dc):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x9e7):
> undefined reference to `_imp__TlsGetValue@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x9f5):
> undefined reference to `_imp__SetLastError@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xa0f):
> undefined reference to `_imp__TlsSetValue@8'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xa1c):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xb30):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xb3c):
> undefined reference to `_imp__TlsGetValue@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xb4d):
> undefined reference to `_imp__SetLastError@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x5b):
> undefined reference to `InterlockedIncrement@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x79):
> undefined reference to `imp(long,...)(...)( *) static@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0xa8):
> undefined reference to `_imp__TlsAlloc@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0xd2):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0xee):
> undefined reference to `_imp__TlsFree@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x102):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x11e):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x12c):
> undefined reference to `_imp__TlsGetValue@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x13a):
> undefined reference to `_imp__SetLastError@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x165):
> undefined reference to `_imp__TlsSetValue@8'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x178):
> undefined reference to `_imp__GetLastError@0'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x1be):
> undefined reference to `_imp__CreateSemaphoreA@16'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x1de):
> undefined reference to `InterlockedIncrement@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x201):
> undefined reference to `_imp__WaitForSingleObject@8'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x210):
> undefined reference to `InterlockedDecrement@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x23e):
> undefined reference to `InterlockedDecrement@4'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x262):
> undefined reference to `_imp__ReleaseSemaphore@12'
> collect2: ld returned 1 exit status
> make: *** [HelloWorld.exe] Error 1
> make: Target `all' not remade because of errors.
> Build complete for project Hello World
>
>
>
>
Re: HELP ME [message #152510 is a reply to message #152486] Mon, 29 August 2005 02:21 Go to previous message
Eclipse UserFriend
Originally posted by: hughdavenport.hotmail.com

Make file:

############################################################ ####################

# Automatically-generated file. Do not edit!

############################################################ ####################

ROOT := ..

-include $(ROOT)/makefile.init

RM := rm -rf

# All of the sources participating in the build are defined here

-include sources.mk

-include $(SUBDIRS:%=%/subdir.mk)

-include objects.mk

ifneq ($(strip $(DEPS)),)

-include $(DEPS)

endif

-include $(ROOT)/makefile.defs

# Add inputs and outputs from these tool invocations to the build variables

# All Target

all: HelloWorld.exe

# Tool invocations

HelloWorld.exe: $(OBJS) $(USER_OBJS)

@echo 'Building target: $@'

@echo 'Invoking: GCC C++ Linker'

@echo g++.exe -L"C:\Windows\System32" -oHelloWorld.exe $(OBJS) $(USER_OBJS)
$(LIBS)

@g++.exe -L"C:\Windows\System32" -oHelloWorld.exe $(OBJS) $(USER_OBJS)
$(LIBS)

@echo 'Finished building target: $@'

@echo ' '

# Other Targets

clean:

-$(RM) $(OBJS)$(DEPS)$(EXECUTABLES) HelloWorld.exe

-@echo ' '

..PHONY: all clean dependents

..SECONDARY:

-include $(ROOT)/makefile.targets



Error after reboot (shorter):

'Building target: HelloWorld.exe'

'Invoking: GCC C++ Linker'

g++.exe -L"C:\Windows\System32" -oHelloWorld.exe ./hello.o

d000007.o(.text+0x0): multiple definition of `_onexit'

/mingw/lib/crt2.o(.text+0x2c0):d:/src/mingw/build/runtime/.. /../runtime/crt1.c:277:
first defined here

d000010.o(.text+0x0): multiple definition of `atexit'

/mingw/lib/crt2.o(.text+0x2b0):d:/src/mingw/build/runtime/.. /../runtime/crt1.c:269:
first defined here

/mingw/lib/crt2.o(.text+0x15f): In function `_mingw_CRTStartup':

d:/src/mingw/build/runtime/../../runtime/crt1.c:193: undefined reference to
`SetUnhandledExceptionFilter@4'

/mingw/lib/crt2.o(.text+0x241):d:/src/mingw/build/runtime/.. /../runtime/crt1.c:234:
undefined reference to `ExitProcess@4'

C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(w32-shared-pt r.o)(.text+0x31):
undefined reference to `_imp__GetAtomNameA@12'

C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(w32-shared-pt r.o)(.text+0x159):
undefined reference to `_imp__FindAtomA@4'

C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(w32-shared-pt r.o)(.text+0x281):
undefined reference to `_imp__AddAtomA@4'

C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(w32-shared-pt r.o)(.text+0x2a2):
undefined reference to `_imp__FindAtomA@4'

collect2: ld returned 1 exit status

make: *** [HelloWorld.exe] Error 1

make: Target `all' not remade because of errors.

Build complete for project Hello World

"Doug Pearson" <doug-list@threepenny.net> wrote in message
news:deqioe$dji$1@news.eclipse.org...
> Hugh,
>
> Your error is in the linking phase after the compilation has completed
> successfully. So I think you would do better to post the makefile if you
> can as that's where the list of libraries used in the link will be
> defined.
>
> Doug
>
>
> Hugh Davenport wrote:
>> Yeh no-one has been replying to my posts, could someone please help me,
>> my error is as below. i really want it to work so i can use eclipse for
>> c++ as well :D
>>
>> Code:
>> #include <iostream>
>> using namespace std;
>> int main()
>> {
>> cout <<"Hello World\n";
>> return 0;
>> }
>>
>> Error: from linking(ie, after compiling .ccp-> .o, now compiling .o ->
>> .exe)
>> g++ -L"C:\Windows\System32" -oHelloWorld.exe ./hello.o
>> d000014.o(.text+0x0): multiple definition of `_onexit'
>> /mingw/lib/crt2.o(.text+0x2c0):d:/src/mingw/build/runtime/.. /../runtime/crt1.c:277:
>> first defined here
>> d000020.o(.text+0x0): multiple definition of `atexit'
>> /mingw/lib/crt2.o(.text+0x2b0):d:/src/mingw/build/runtime/.. /../runtime/crt1.c:269:
>> first defined here
>> /mingw/lib/crt2.o(.text+0x15f): In function `_mingw_CRTStartup':
>> d:/src/mingw/build/runtime/../../runtime/crt1.c:193: undefined reference
>> to `SetUnhandledExceptionFilter@4'
>> /mingw/lib/crt2.o(.text+0x241):d:/src/mingw/build/runtime/.. /../runtime/crt1.c:234:
>> undefined reference to `ExitProcess@4'
>> /mingw/lib/libstdc++.a(globals_io.o)(.text+0x2e):globals_io. cc: undefined
>> reference to `_imp__CreateSemaphoreA@16'
>> /mingw/lib/libstdc++.a(globals_io.o)(.text+0x71):globals_io. cc: undefined
>> reference to `_imp__CreateSemaphoreA@16'
>> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x28):eh_globals. cc: undefined
>> reference to `_imp__TlsAlloc@0'
>> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x58):eh_globals. cc: undefined
>> reference to `_imp__GetLastError@0'
>> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0xe4):eh_globals. cc: undefined
>> reference to `_imp__GetLastError@0'
>> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0xf5):eh_globals. cc: undefined
>> reference to `_imp__TlsGetValue@4'
>> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x107):eh_globals .cc:
>> undefined
>> reference to `_imp__SetLastError@4'
>> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x19e):eh_globals .cc:
>> undefined
>> reference to `_imp__GetLastError@0'
>> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x1af):eh_globals .cc:
>> undefined
>> reference to `_imp__TlsGetValue@4'
>> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x1c1):eh_globals .cc:
>> undefined
>> reference to `_imp__SetLastError@4'
>> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x289):eh_globals .cc:
>> undefined
>> reference to `InterlockedIncrement@4'
>> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x2a5):eh_globals .cc:
>> undefined
>> reference to `imp(long,...)(...)( *) static@4'
>> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x2e4):eh_globals .cc:
>> undefined
>> reference to `_imp__TlsSetValue@8'
>> /mingw/lib/libstdc++.a(eh_globals.o)(.text+0x32c):eh_globals .cc:
>> undefined
>> reference to `_imp__GetLastError@0'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(w32-shared-pt r.o)(.text+0x31):
>> undefined reference to `_imp__GetAtomNameA@12'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(w32-shared-pt r.o)(.text+0x159):
>> undefined reference to `_imp__FindAtomA@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(w32-shared-pt r.o)(.text+0x281):
>> undefined reference to `_imp__AddAtomA@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(w32-shared-pt r.o)(.text+0x2a2):
>> undefined reference to `_imp__FindAtomA@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xf):
>> undefined reference to `_imp__TlsAlloc@0'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x42):
>> undefined reference to `_imp__GetLastError@0'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xc0):
>> undefined reference to `InterlockedIncrement@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xe9):
>> undefined reference to `imp(long,...)(...)( *) static@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x195):
>> undefined reference to `_imp__GetLastError@0'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x1a0):
>> undefined reference to `_imp__TlsGetValue@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x1ae):
>> undefined reference to `_imp__SetLastError@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x1c8):
>> undefined reference to `_imp__TlsSetValue@8'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x1e2):
>> undefined reference to `_imp__GetLastError@0'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x26c):
>> undefined reference to `_imp__TlsSetValue@8'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x279):
>> undefined reference to `_imp__GetLastError@0'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x4a5):
>> undefined reference to `_imp__GetLastError@0'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x4b0):
>> undefined reference to `_imp__TlsGetValue@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x4be):
>> undefined reference to `_imp__SetLastError@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x55b):
>> undefined reference to `_imp__TlsSetValue@8'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x568):
>> undefined reference to `_imp__GetLastError@0'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x715):
>> undefined reference to `_imp__GetLastError@0'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x720):
>> undefined reference to `_imp__TlsGetValue@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x72e):
>> undefined reference to `_imp__SetLastError@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x79a):
>> undefined reference to `_imp__TlsSetValue@8'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x7a7):
>> undefined reference to `_imp__GetLastError@0'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x8a5):
>> undefined reference to `_imp__GetLastError@0'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x8b0):
>> undefined reference to `_imp__TlsGetValue@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x8be):
>> undefined reference to `_imp__SetLastError@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x8dc):
>> undefined reference to `_imp__TlsSetValue@8'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x8ed):
>> undefined reference to `_imp__GetLastError@0'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x9dc):
>> undefined reference to `_imp__GetLastError@0'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x9e7):
>> undefined reference to `_imp__TlsGetValue@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0x9f5):
>> undefined reference to `_imp__SetLastError@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xa0f):
>> undefined reference to `_imp__TlsSetValue@8'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xa1c):
>> undefined reference to `_imp__GetLastError@0'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xb30):
>> undefined reference to `_imp__GetLastError@0'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xb3c):
>> undefined reference to `_imp__TlsGetValue@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(unwind-sjlj.o )(.text+0xb4d):
>> undefined reference to `_imp__SetLastError@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x5b):
>> undefined reference to `InterlockedIncrement@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x79):
>> undefined reference to `imp(long,...)(...)( *) static@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0xa8):
>> undefined reference to `_imp__TlsAlloc@0'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0xd2):
>> undefined reference to `_imp__GetLastError@0'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0xee):
>> undefined reference to `_imp__TlsFree@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x102):
>> undefined reference to `_imp__GetLastError@0'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x11e):
>> undefined reference to `_imp__GetLastError@0'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x12c):
>> undefined reference to `_imp__TlsGetValue@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x13a):
>> undefined reference to `_imp__SetLastError@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x165):
>> undefined reference to `_imp__TlsSetValue@8'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x178):
>> undefined reference to `_imp__GetLastError@0'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x1be):
>> undefined reference to `_imp__CreateSemaphoreA@16'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x1de):
>> undefined reference to `InterlockedIncrement@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x201):
>> undefined reference to `_imp__WaitForSingleObject@8'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x210):
>> undefined reference to `InterlockedDecrement@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x23e):
>> undefined reference to `InterlockedDecrement@4'
>> C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(gthr-win32.o) (.text+0x262):
>> undefined reference to `_imp__ReleaseSemaphore@12'
>> collect2: ld returned 1 exit status
>> make: *** [HelloWorld.exe] Error 1
>> make: Target `all' not remade because of errors.
>> Build complete for project Hello World
>>
>>
>>
>>
>
Previous Topic:Duplicate Project
Next Topic:Problem: cygwin1.dll was not found
Goto Forum:
  


Current Time: Thu Jul 17 20:44:44 EDT 2025

Powered by FUDForum. Page generated in 0.53021 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top