Re: [gts-general] trying to link with c++
Brought to you by:
popinet
|
From: Scott D. <sc...@da...> - 2001-08-14 14:51:06
|
On Tue, 14 Aug 2001, Paul wrote:
>
> I am writing a program in C++ (under rh7.1 linux) using g++ and I wanted
> to use the gts library. How do I link to it? All the .cpp files compiled
> to .o but I get errors complaining about undefined references. So what
> options on g++ do I need to link to it?
Paul,
I haven't done this with gts, but I've done it with other software
packages. What you most probably need is to wrap the C include files:
A C++ program:
#extern "C" {
#include <some_C_include.h>
}
Scott
|