繁体   English   中英

gSoap QT未定义参考

[英]gSoap QT undefined reference

我正在尝试使用gSOAP创建c ++ / QT服务器/客户端

这是我的Test.h文件

//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);

我运行oapcpp2.exe -I -pTest Test.h ,并将生成的代码与我的项目集成在一起,但是编译器不断给我错误的问题

error: undefined reference to `ns__ajouterByType(soap*, FamilleProduit, bool*)

error: undefined reference to `ns__ajouterByLibelle(soap*, std::string, bool*)

即使我在我的主要功能中添加了此拖曳功能的实现

问题在于我忘了提出的方法的实施

struct soap* soap

在方法的定义中

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM