bonjour,
j'ai créé une classe Point que je voudrais utiliser dans mon main.
je fais ceci:
mais j'obtiens l'eereur suivante:Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 #include <cstdlib> #include <iostream> #include "point.h" #include "matrice.h" using namespace std; int main(int argc, char *argv[]) { double PI=3.141592; double theta=PI/2; Point p1; cout<<"//test de set_rot(theta)//\n"; //Matrice m1; //Point p1; //p1.set(0,1); /*Matrice m1; m1.set_rot(theta); p1.set(0,1); p2=p1.bouger(m1,p1); p1.affiche(p1); p2.affiche(p2); */ system("PAUSE"); return EXIT_SUCCESS; }
Citation:
C:\DOCUME~1\LOCALS~1\Temp\ccQtbaaa.o(.text+0x78):main.cpp: undefined reference to `Point::~Point(void)'
C:\DOCUME~1\LOCALS~1\Temp\ccQtbaaa.o(.text+0xc4):main.cpp: undefined reference to `Point::~Point(void)'