Newbie Q: PB and C++ Link Errors

  • Hi folks,

    Having a spot of trouble with compiling c++ in Project Builder. I can build and launch anything I've done with Java or Obj-C, but not having much luck with std-c++. I'm getting some rather non-descriptive link errors, and I don't know how to proceed. Could anyone lend a hand?

    TIA,

    scott
  • On Wednesday, March 21, 2001, at 07:14 , System Administrator wrote:

    > Having a spot of trouble with compiling c++ in Project Builder. I can
    > build and launch anything I've done with Java or Obj-C, but not having
    > much luck with std-c++. I'm getting some rather non-descriptive link
    > errors, and I don't know how to proceed. Could anyone lend a hand?

    Try to add "-lstdc++" to the build setting "OTHER_CFLAGS".

    andy
    --
    Description forthcoming.
  • Hi Andy,

    Thanks for the reply. I had the -lstdc++ setting under OTHER_LDFLAGS. I took
    your advice and put it in the OTHER_CFLAGS location , but the compiler
    reported the same two errors. It has to be a problem with the way I have
    Project Builder set up; I just haven't found what it is yet.

    scott
    _______________________
    "It's just another skid mark
    on the toilet bowl of life."

    > Scott Judd wrote:
    >
    >> Having a spot of trouble with compiling c++ in Project Builder.
    >> I'm getting some rather non-descriptive link
    >> errors, and I don't know how to proceed. Could anyone lend a hand?
    >

    Andreas Monitzer wrote:
    > Try to add "-lstdc++" to the build setting "OTHER_CFLAGS".
    >
    > andy
  • On Wednesday, March 21, 2001, at 08:42 , Scott Judd wrote:

    > Hi Andy,
    >
    > Thanks for the reply. I had the -lstdc++ setting under OTHER_LDFLAGS. I
    > took
    > your advice and put it in the OTHER_CFLAGS location , but the compiler
    > reported the same two errors. It has to be a problem with the way I have
    > Project Builder set up; I just haven't found what it is yet.
    >

    Damn, LDFLAGS is correct. Maybe it would help if you paste in the exact
    error message from the linker.

    andy
    --
    Discussion forthcoming.
previous month march 2001 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Go to today