Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: darwin-development digest, Vol 3 #186 - 17 msgs



> Stephen Starkie <email@hidden> wrote:

Probably already answered...

I would try putting -lc after -lstdc++. There may be dependencies in stdc++
which require libc..

If instead you use c++ to link it should pick up those last libraries in the
right sequence by default. (without adding them to the link line)

You really should do this anyway in case there are any templates.

Hope that helps,

- P.

> Hi,
>
> I'm not sure if this is a Darwin question - but its Darwin I'm using.
>
> I try to link (in a makefile) an object file and two of my own
> libraries into an executable with the following command (result from
> make);
>
> ld -X -o Binaries/C3DVectorTest -L./Binaries
> -L/Users/sjstar/Development/UnitTesting/Binaries \
> .obj/C3DVectorTest.o -lUnitTesting -lGeometries -lc -lstdc++
>
> and get the following missing symbols;
>
> __._9exception
> ___builtin_delete
> ___builtin_new
> ___cp_pop_exception
> ___eh_rtime_match ... <truncated - you get the idea>
>
> most of which seem to be in libstdc++.a Does anyone have any ideas?
> Sorry if this is easy and obvious!
>
> Steve.
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.