En fait j'ai bien un constructeur et un fichier .h, pour préciser le problème je vous attache les bouts de code copncernés:
1) La classe Point (fichier.cpp)
#include "Point.h"
////////////////////////////////////////////////////////////////////////////////
//Constructeur
Point::Point(float Tx,float Ty)
{
//cree un point avec ses coordonnes
x=Tx;
y=Ty;
}
////////////////////////////////////////////////////////////////////////////////
//Constructeur
Point::Point(float Tx,float Ty,float Ttheta)
{
//cree un point avec ses coordonnes
x=Tx;
y=Ty;
theta=Ttheta;
}
////////////////////////////////////////////////////////////////////////////////
//Destructeur
Point::~Point(void)
{
}
2) La creation d'une librairie libPER_Utils.a qui compile et stocke Point.o
ar qvs ../../../../Lib/libPER_Utils.a Point.o Segment.o Utilitaires.o matrix_inv.o util.o
r - Point.o
r - Segment.o
r - Utilitaires.o
r - matrix_inv.o
r - util.o
3) La compilation:
g++ carte.C -o ../../../Bin/carte -DVERBEUX -Wall -DVISU \
../../../Lib/libPER_Utils.a ../../../Lib/ACT_planif_trajectoire.o
etc....
4) le message d'erreur !
../../../Lib/ACT_planif_trajectoire.o(.text+0x1a93):
In function `agt_planif_trajectoire::Create_Potentiel()':
: undefined reference to `Point::Point[in-charge](float, float, float)'
5) La fonction qui ne trouve pas le point
![:D :D]()
ans « void agt_planif_trajectoire::Create_Potentiel(void) »:
Point *PointBut=new Point(CelluleXArrivee- CelluleXMin,CelluleYArrivee- CelluleYMin,0)
Voila le problème est ainsi mieux posé... ça fait un bout de temps que je me creuse mais tout me parrait correct !