From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11229 invoked by alias); 23 Nov 2003 15:22:30 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 11221 invoked from network); 23 Nov 2003 15:22:29 -0000 Received: from unknown (HELO mail-7.tiscali.it) (195.130.225.153) by sources.redhat.com with SMTP; 23 Nov 2003 15:22:29 -0000 Received: from [80.182.252.131] by mail-7.tiscali.it with HTTP; Sun, 23 Nov 2003 16:22:27 +0100 Date: Sun, 23 Nov 2003 15:22:00 -0000 Message-ID: <3FAA85C800021D80@mail-7.tiscali.it> From: codaditasso@tiscali.it Subject: missing function To: gcc-help@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-SW-Source: 2003-11/txt/msg00298.txt.bz2 Hello I have write the following files: prova91.cpp: 1 #include "prova92.h" 2 3 int 4 main(){ 5 int k=3D1; 6 prova(k); 7 return 0; 8 }; prova92.h: 1 template void prova(T k); prova92.cpp: 1 #include 2 #include "prova92.h" 3 using namespace std; 4 template void 5 prova(T k){ 6 cout<(int)' collect2: ld returned 1 exit status What's the problem ? Maybe the template function and class must be written only in the header files? Greetings from Pinzi __________________________________________________________________ Tiscali ADSL SENZA CANONE, paghi solo quando navighi! E in pi=F9 il modem e' GRATIS! Abbonati subito. http://point.tiscali.it/adsl/index.shtml