I'm having trouble using a library with templates in it.
Everything seems to be working fine when I compile the library,
but when I try to include it in an other file, the compiler says
that all the function are not in the .o file. What am I doing
I've read some stuff about the #pragma implementation and the
#pragma interface statements, but it's not very clear how to use it.
My librairie contains two file: dbllist.cc and dbllist.h and the file
that uses the librairie includes "dbllist.h". Can it be the problem?
If so, in wich file should my librairie be, and how do I compile it and
By the way, I use GCC 2.5.8 on a Linux machine, but I have the same
problem when I try to compile on a SUN running SUN/OS 5.
Here is the output that I have when I compile (it is from the SUN):
$: g++ -o dbllist.o -c dbllist.cc
$: g++ exp_list.cc dbllist.o
Undefined first referenced
symbol in file
ld: fatal: Symbol referencing errors. No output written to a.out
Any help would be appreciated