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 reference to StaticWindow::Size in Debug #53

Open
PolarNick239 opened this issue Apr 16, 2018 · 1 comment
Open

Undefined reference to StaticWindow::Size in Debug #53

PolarNick239 opened this issue Apr 16, 2018 · 1 comment

Comments

@PolarNick239
Copy link

make debug leads to:

mkdir -p Bin/Linux/
g++ -c -o Bin/Linux/PlyFile.o -fopenmp -Wno-deprecated -Wno-write-strings -std=c++11 -DDEBUG -g3 -I. Src/PlyFile.cpp
mkdir -p Bin/Linux/
g++ -c -o Bin/Linux/PoissonRecon.o -fopenmp -Wno-deprecated -Wno-write-strings -std=c++11 -DDEBUG -g3 -I. Src/PoissonRecon.cpp
g++ -o Bin/Linux/PoissonRecon Bin/Linux/PlyFile.o Bin/Linux/PoissonRecon.o -lgomp -lstdc++ -lz -lpng -ljpeg 
Bin/Linux/PoissonRecon.o: In function `void FEMTree<3u, float>::finalizeForMultigrid<2u, FEMTree<3u, float>::HasNormalDataFunctor<UIntPack<6u, 6u, 6u> >, SparseNodeData<Point<float, 3u>, UIntPack<6u, 6u, 6u> >, FEMTree<3u, float>::DensityEstimator<2u> >(int, FEMTree<3u, float>::HasNormalDataFunctor<UIntPack<6u, 6u, 6u> >, SparseNodeData<Point<float, 3u>, UIntPack<6u, 6u, 6u> >*, FEMTree<3u, float>::DensityEstimator<2u>*) [clone ._omp_fn.5]':
.../PoissonRecon/Src/FEMTree.inl:491: undefined reference to `StaticWindow<RegularTreeNode<3u, FEMTreeNodeData, unsigned short>*, UIntPack<5u, 5u, 5u> >::Size'
Bin/Linux/PoissonRecon.o: In function `void FEMTree<3u, float>::finalizeForMultigrid<2u, FEMTree<3u, float>::HasNormalDataFunctor<UIntPack<7u, 7u, 7u> >, SparseNodeData<Point<float, 3u>, UIntPack<7u, 7u, 7u> >, FEMTree<3u, float>::DensityEstimator<2u> >(int, FEMTree<3u, float>::HasNormalDataFunctor<UIntPack<7u, 7u, 7u> >, SparseNodeData<Point<float, 3u>, UIntPack<7u, 7u, 7u> >*, FEMTree<3u, float>::DensityEstimator<2u>*) [clone ._omp_fn.165]':
.../PoissonRecon/Src/FEMTree.inl:491: undefined reference to `StaticWindow<RegularTreeNode<3u, FEMTreeNodeData, unsigned short>*, UIntPack<5u, 5u, 5u> >::Size'
Bin/Linux/PoissonRecon.o: In function `void FEMTree<3u, float>::finalizeForMultigrid<2u, FEMTree<3u, float>::HasNormalDataFunctor<UIntPack<8u, 8u, 8u> >, SparseNodeData<Point<float, 3u>, UIntPack<8u, 8u, 8u> >, FEMTree<3u, float>::DensityEstimator<2u> >(int, FEMTree<3u, float>::HasNormalDataFunctor<UIntPack<8u, 8u, 8u> >, SparseNodeData<Point<float, 3u>, UIntPack<8u, 8u, 8u> >*, FEMTree<3u, float>::DensityEstimator<2u>*) [clone ._omp_fn.301]':
.../PoissonRecon/Src/FEMTree.inl:491: undefined reference to `StaticWindow<RegularTreeNode<3u, FEMTreeNodeData, unsigned short>*, UIntPack<5u, 5u, 5u> >::Size'
collect2: error: ld returned 1 exit status
Makefile:127: recipe for target 'Bin/Linux/PoissonRecon' failed
make: *** [Bin/Linux/PoissonRecon] Error 1

P.S. Release builds Ok.

@mkazhdan
Copy link
Owner

mkazhdan commented Apr 16, 2018 via email

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