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

在类里面定义ikd_tree时程序崩溃 #8

Closed
AFEICHINA opened this issue Jul 10, 2021 · 4 comments
Closed

在类里面定义ikd_tree时程序崩溃 #8

AFEICHINA opened this issue Jul 10, 2021 · 4 comments

Comments

@AFEICHINA
Copy link

嗨,
我在测试最新版本ikdtree的时候遇到一个问题,当我在类中定义ikdtree的时候,程序总是Segmentation fault (core dumped)。你能修复一下这个问题吗?
谢谢!

@XW-HKU
Copy link
Member

XW-HKU commented Jul 10, 2021

嗨,
我在测试最新版本ikdtree的时候遇到一个问题,当我在类中定义ikdtree的时候,程序总是Segmentation fault (core dumped)。你能修复一下这个问题吗?
谢谢!

could you append some code here to let us see what happends

@AFEICHINA
Copy link
Author

`#include "ikd_Tree.h"
// KD_TREE kdtree;

class Test{
public:
Test(){printf("test\n");}
KD_TREE kdtree;
};

int main(int argc, char** argv){
printf("Testing ...\n");
Test test;
return 0;
}
`
你好,这是我的测试代码,谢谢。

@Ecstasy-EC
Copy link
Member

@AFEICHINA Please define the ikd-Tree (and any class that includes it) as a global variable since multi-thread is required.

@AFEICHINA
Copy link
Author

@AFEICHINA Please define the ikd-Tree (and any class that includes it) as a global variable since multi-thread is required.

Thanks

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

3 participants