亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

c++ - 老問(wèn)題error LNK2005: "public: void __thiscall
巴扎黑
巴扎黑 2017-06-24 09:43:00
0
1
1027
// A.cpp
#include "A.h"

// A.h
#ifndef _A_H
#define _A_H
class A
{
public:
    A();
    ~A();


private:

};

A::A()
{
}

A::~A()
{
}
#endif
// test.cpp
#include "A.h"
int main(){

}

然後編譯就會(huì)出現(xiàn)error LNK2005: "public: void __thiscall問(wèn)題,當(dāng)刪除構(gòu)造和析構(gòu)函數(shù)可以通過(guò)?為什麼呢?還有我通過(guò)網(wǎng)上說(shuō)的更改運(yùn)行時(shí)庫(kù)還是不能編譯通過(guò),怎麼辦? ?

巴扎黑
巴扎黑

全部回覆(1)
伊謝爾倫

程式碼有沒(méi)有貼全,我在vs2015運(yùn)作正常。


#include <iostream>
#include <vector>
#include <iterator>

using namespace std;

class A
{
public:
    A();
    ~A();

private:

};

A::A()
{
}

A::~A()
{
}

int main() 
{
    
    

    return 0;
}
最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板