[haiku] gcc4/5 compile -- what am I missing?

  • From: Pete Goodeve <pete.goodeve@xxxxxxxxxxxx>
  • To: Haiku <haiku@xxxxxxxxxxxxx>
  • Date: Mon, 7 Nov 2016 18:55:15 -0800

Hi,

I'm trying to do some testing with some code that I want to
call either as an add-on, or directly as a linked-in binary.
I'm also doing this in both gcc2 and gcc5 (also gcc4 on an
earlier system).

The add-on code compiles and runs in all variants [except
for the bug I'm chasing...(:-)] , but when I try to directly link
the gcc5 objects, I get loads of "undefined reference to
operator new..." and undefined vtables.  The Makefile
(standard Haiku) is the same in both environments, just
with setarch x86 prepended to the command.

The same happens with gcc4 in my earlier partition.
What have I left out?

Thanks,

        -- Pete --

Other related posts: