shaoyuan1943 / chromium-base

from chromium
124 stars 69 forks source link

Undefined symbol #3

Open Aqinn opened 3 years ago

Aqinn commented 3 years ago

halo~我编译完之后生成了库,但测试代码无法通过编译,我刚开始使用C++,请问这是我的问题吗?

#include <iostream>
#include "base/bind.h"

using namespace std;

void TestVoid(){
    cout << "Hello, world!" << endl;
}

int main(){
    auto f = base::Bind(&TestVoid);
    f.Run();
    return 0;
}
iShot2021-09-12 19 45 20
shaoyuan1943 commented 3 years ago

有加载lib/so吗?