bin3 / balgo Goto Github PK
View Code? Open in Web Editor NEWA library of BAsic ALGOrithms
License: Apache License 2.0
A library of BAsic ALGOrithms
License: Apache License 2.0
Segmentation fault occurs at line 361 in ac_da_trie.h when executing AhoCorasick::Build function.
Hello Contributor,
That case compile with G++ 4.6.3-1 and Gtest version .1.6.0. Please see below in case an error of define data type. I workaround using unsigned int replace with magic number on your code.
[ 11%] Built target brute_force_search_test [ 22%] Built target min_queue_test Scanning dependencies of target da_trie_test [ 33%] Building CXX object src/balgo/trie/CMakeFiles/da_trie_test.dir/da_trie_test.cpp.o Linking CXX executable ../../../../bin/da_trie_test [ 33%] Built target da_trie_test Scanning dependencies of target ternary_trie_test [ 44%] Building CXX object src/balgo/trie/CMakeFiles/ternary_trie_test.dir/ternary_trie_test.cpp.o Linking CXX executable ../../../../bin/ternary_trie_test [ 44%] Built target ternary_trie_test [ 55%] Built target trie_main [ 66%] Building CXX object src/balgo/trie/CMakeFiles/trie_traits_test.dir/trie_traits_test.cpp.o In file included from ~/balgo/src/balgo/trie/trie_traits_test.cpp:26:0: ~/gtest-1.6.0/include/gtest/gtest.h: In function ‘testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = int, T2 = long unsigned int]’: ~/gtest-1.6.0/include/gtest/gtest.h:1353:30: instantiated from ‘static testing::AssertionResult testing::internal::EqHelper<lhs_is_null_literal>::Compare(const char*, const char*, const T1&, const T2&) [with T1 = int, T2 = long unsigned int, bool lhs_is_null_literal = false]’ ~/balgo/src/balgo/trie/trie_traits_test.cpp:33:3: instantiated from here ~/gtest-1.6.0/include/gtest/gtest.h:1316:3: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
Thank you,
R.Chatsiri
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.