This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Linking dependencies into static library / Partial linking


On 14 January 2008 08:49, Philip K.F. Hölzenspies wrote:

> Dear David, All,
> 
> On Friday 11 January 2008 18:12:41 Dave Korn wrote:
>>   It's looking for the mangled versions; the library, as you point out, has
>> only unmangled versions.  If you change the start of bar.c from:
> 
> When I compile with "g++ -c bar.c" it does, indeed, give an object file with
> mangled names. This was a considerable oversight on my part. Thank you for
> pointing this out.

  See also the '-x' option, as in "g++ -c -x c bar.c".

> I also found an answer to the other part of my question (wanting to use
> a "plain C" compiler/linker to compile my C program, while still using this
> C++ library). Johan Petersson makes some very useful comments on the matter
> here:
> 
> http://www.trilithium.com/johan/2005/06/static-libstdc/

  Interesting link, ta!


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]