Re: [gts-general] trying to link with c++
Brought to you by:
popinet
|
From: Luis C. Y. <lui...@uo...> - 2001-08-15 03:51:16
|
Hello, If you received undefined references, maybe other libraries or even the compiler needs another libraries. If you already know the symbols you need but you dont know where they are, you could try nm libraryname.(a/so) to look for the symbols. nm will list symbols in library and so you could find what library is needed. Maybe you need to link libstdc++. I noticed I needed to include this after I updated my Mesa (new glut is g++). Luis 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? |