0
我試圖使項目polyworld但得到一個錯誤編譯qt_clust.o未定義的符號:「_alloca」
g++ -o bin/qt_clust .bld/qt_clust/tools/clustering/qt_clust.o -L/usr/lib -L/usr/local/lib -L/usr/include -lz -lgsl -lgslcblas -lgomp
,並得到
"_alloca", referenced from:
__Z38find_valid_neighbors__measureNeighborsP7ClusterRSt6vectorIiSaIiEEP22GeneDistanceDeltaCacheP19PopulationPartition.omp_fn.4 in qt_clust.o
(maybe you meant: ParsedCluster* std::vector<ParsedCluster, std::allocator<ParsedCluster> >::_M_allocate_and_copy<__gnu_cxx::__normal_iterator<ParsedCluster const*, std::vector<ParsedCluster, std::allocator<ParsedCluster> > > >(unsigned long, __gnu_cxx::__normal_iterator<ParsedCluster const*, std::vector<ParsedCluster, std::allocator<ParsedCluster> > >, __gnu_cxx::__normal_iterator<ParsedCluster const*, std::vector<ParsedCluster, std::allocator<ParsedCluster> > >))
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
我敢肯定問題是與此文件:https://github.com/JaimieMurdock/polyworld/blob/master/tools/clustering/qt_clust.cpp
我在OSX山獅。
非常感謝!它工作完美。我聽說'alloca'沒有警告堆棧溢出問題,但認爲它是在/ usr/include中編譯的。可能不會!感謝您的快速解答。 :) – crizCraig
@crizCraig:不客氣。 – Omnifarious