Code Monkey home page Code Monkey logo

balgo's People

Contributors

bin3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

0rchard

balgo's Issues

Segmentation faults

Segmentation fault occurs at line 361 in ac_da_trie.h when executing AhoCorasick::Build function.

Tests compile steps not pass to run. An error with case : error: comparison between signed and unsigned integer expressions.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.