Re: ld terminated with signal 11
- From: Tauno Voipio <tauno.voipio@xxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 26 Jul 2005 20:28:58 GMT
vsouders@xxxxxxxxxxxxxx wrote:
I'm working on setting up an ARM toolchain under Linux. I've installed binutils 2.10, arm-gcc 2.95.2 and glibc 2.1.3. When I try to compile the simple test code shown below, the linker terminates with a signal 11. If I remove the iostream include and the cout statement, the application compiles and links without errors. Does this mean the linker is attempting to link against an incorrect lib version? I've set up a similar tool chain on Windows using cygwin and didn't have this issue. Any help would be much appreciated.
Thanks, Vance
#include <iostream>
using namespace std;
int main() { cout << "Hello ARM" << endl; return 0; }
Are you trying to compile/link C++ code with the 'gcc' command? It will not link properly. C++ must be linked with 'g++'.
GCC 2.95 is very old, and the ARM support is somewhat kludged on it. Please get a GCC 3.x.y series compiler with suitable version of binutils and libraries.
The 'simple' C++ program creates HUGE amounts of code when expanded. Start with a pure C program.
There is little (or no at all) sense to attempt C++ before plain C is running OK.
If you're targeting an embedded system without an operating system, please understand that the standard I/O library needs a lot of other code to run. This applies to stdio.h as well as the iostream functions.
--
Tauno Voipio tauno voipio (at) iki fi
.
- References:
- ld terminated with signal 11
- From: vsouders
- ld terminated with signal 11
- Prev by Date: Re: ARM development board
- Next by Date: Re: HC12
- Previous by thread: Re: ld terminated with signal 11
- Next by thread: Re: ld terminated with signal 11
- Index(es):
Relevant Pages
|