Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined symbol #3

Open
Aqinn opened this issue Sep 12, 2021 · 1 comment
Open

Undefined symbol #3

Aqinn opened this issue Sep 12, 2021 · 1 comment

Comments

@Aqinn
Copy link

Aqinn commented Sep 12, 2021

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
Copy link
Owner

有加载lib/so吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants