Re: help with C API in C++ static library

2010-01-15 Thread Bob Friesenhahn
On Fri, 15 Jan 2010, Jason Kraftcheck wrote: Linking with the C++ compiler would address my immediate problem of linking my test code, by still produces a library intended to be linked with C code that requires using the c++ compiler to link. I had hoped that libtool's .la files would provide t

Re: help with C API in C++ static library

2010-01-15 Thread Jason Kraftcheck
Ralf Wildenhues wrote: > Hello Jason, > > * Jason Kraftcheck wrote on Fri, Jan 15, 2010 at 07:10:21PM CET: >> I am trying to build a static library that is implemented in C++ and has a C >> API. The resulting .la does not appear to include any information >> indicating that the library needs to b

Re: help with C API in C++ static library

2010-01-15 Thread Ralf Wildenhues
Hello Jason, * Jason Kraftcheck wrote on Fri, Jan 15, 2010 at 07:10:21PM CET: > I am trying to build a static library that is implemented in C++ and has a C > API. The resulting .la does not appear to include any information > indicating that the library needs to be either linked with C++ or expl

Re: help with C API in C++ static library

2010-01-15 Thread Bob Friesenhahn
On Fri, 15 Jan 2010, Jason Kraftcheck wrote: I am trying to build a static library that is implemented in C++ and has a C API. The resulting .la does not appear to include any information indicating that the library needs to be either linked with C++ or explicitly include the C++ runtime librar

Re: help with C API in C++ static library

2010-01-15 Thread Jason Kraftcheck
Harring Figueiredo wrote: > Was the C API code explicilty marked as C so that the compiler does not > mangle the fucntion names? Check to make sure this is not happening. > Thanks for taking the time to reply. Unfortunately, the problem isn't this simple. I have marked the function names as 'e

Re: help with C API in C++ static library

2010-01-15 Thread Harring Figueiredo
Was the C API code explicilty marked as C so that the compiler does not mangle the fucntion names? Check to make sure this is not happening. Hope this helps, Harring On Fri, Jan 15, 2010 at 1:10 PM, Jason Kraftcheck wrote: > I am trying to build a static library that is implemented in C++ and

help with C API in C++ static library

2010-01-15 Thread Jason Kraftcheck
I am trying to build a static library that is implemented in C++ and has a C API. The resulting .la does not appear to include any information indicating that the library needs to be either linked with C++ or explicitly include the C++ runtime libraries. Thus when I try to link a simple test appl