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

  • From: Pete Goodeve <pete.goodeve@xxxxxxxxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Wed, 9 Nov 2016 22:50:08 -0800

On Mon, Nov 07, 2016 at 06:55:15PM -0800, I wrote:

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?

Well, as nobody here seems to know the answer (:-/), I
dug into the web and found that it was because I hadn't
included libstdc++ in the library list.

But a) why is this not an issue with gcc2, and b) why isn't
it an issue when I build an add-on?

Thanks,

        -- Pete --

Other related posts: