Loading ...
Sorry, an error occurred while loading the content.

Re: undefined reference to __gxx_personality_sj0 error

Expand Messages
  • Jeff Smith
    ... I ve no experience with g++, but I know it is not well supported in gnu-m68hc11. There are a few missing or problematic parts. I don t know what
    Message 1 of 3 , Aug 6, 2007
    • 0 Attachment
      --- In gnu-m68hc11@yahoogroups.com, "fjzuluaga" <fjzuluaga@...> wrote:
      >
      > Hi,
      >
      > I'm new using the GNU C compiler for the 68HC11, i'm using gcc (GCC)
      > 3.3.6-m68hc1x-20060122. I installed it on an operating system called
      > windows xp, i'm new using it too. I have a project divided in many
      > cpp files and i try to compile this aplication with the next
      > command:
      >
      >
      > gcc -I./include -g -Os -Wl,-m,m68hc11elfb -
      > o ./bin/zinuxHC11.elf ./src/*.cpp
      >
      >
      > i get the next error:
      >
      > C:\DOCUME~1\fjzuluag\LOCALS~1\Temp/cc2paaaa.o(.text+0x19): In
      > function `main':
      > src/zinuxHC11.cpp:17: undefined reference to `__gxx_personality_sj0'
      > collect2: ld returned 1 exit status

      I've no experience with g++, but I know it is not well supported in
      gnu-m68hc11. There are a few missing or problematic parts. I don't
      know what "__gxx_personality_sj0" is, or what lib should provide it,
      but do you? Do you even have that lib, and did you try linking with it
      specifically with "-l"?

      What is "zinuxHC11.elf"... that might be helpful to know.
    • 42Bastian Schick
      Hi fjzuluaga ... In order to compile and link C++ code you shall use g++. ... Maybe -nostdlib will help, but I doubt as the C++ support is weak. -- 42Bastian
      Message 2 of 3 , Aug 6, 2007
      • 0 Attachment
        Hi fjzuluaga

        > gcc -I./include -g -Os -Wl,-m,m68hc11elfb -
        > o ./bin/zinuxHC11. elf ./src/*.cpp

        In order to compile and link C++ code you shall use g++.

        > \usr\\lib\gcc- lib\m6811- elf\3.3.6- m68hc1x-20060122 \..\..\.. \..\m6811-
        > elf\bin\ld.exe: cannot find -lstdc++
        > collect2: ld returned 1 exit status

        Maybe -nostdlib will help, but I doubt as the C++ support is weak.

        --
        42Bastian
      Your message has been successfully submitted and would be delivered to recipients shortly.