[gSoap] undefined reference
Bonjour,
je utilise gSOAP pour crée un serveur/client à partir d'une fichier .h
le fichier utiliser est Test.h
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
| //gsoap ns service name: ColisageMutexService
//gsoap ns service style: rpc
//gsoap ns service encoding: literal
//gsoap ns service location: http://localhost:1444
//gsoap ns schema namespace: urn:ColisageMutex
class FamilleProduit
{
private:
int Id;
std::string Libelle;
public:
FamilleProduit();
~FamilleProduit();
int getId();
void setId(int value);
std::string getLibelle();
void setLibelle(std::string value);
};
//gsoap ns service method-action: ajouterByType ""
int ns__ajouterByType ( FamilleProduit familleproduit, bool * result);
//gsoap ns service method-action: ajouterByLibelle ""
int ns__ajouterByLibelle ( std::string libelle, bool * result); |
je lance la commande
Code:
soapcpp2.exe -I -pTest Test.h
et j’intègre tout les fichiers nécessaire dans mon projet serveur, mais lors du compilation je reçois le deux erreurs suivant.
Code:
error: undefined reference to `ns__ajouterByType(soap*, FamilleProduit, bool*)
et
Code:
error: undefined reference to `ns__ajouterByLibelle(soap*, std::string, bool*)
même que j'ai implément
Code:
int ns__ajouterByLibelle(struct sopa *soap, std::string Libelle, bool *result)
et
Code:
int ns__ajouterByType(struct sopa *soap, FamilleProduit f, bool *result)
merci pour votre aide