Error During Startup Cannot Load Library Undefined Symbol
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
in or Register Menu Skip to content home Qt C++ Java FLL/FLD Downloads Reviews Community Forums About Me home › Forums › # Technical Support › FuzzyLite 3.1: [syntax error] stack expected to contain the root, but http://www.fuzzylite.com/forums/topic/fuzzylite-3-1-syntax-error-stack-expected-to-contain-the-root-but-contains/ contains Tagged:fuzzylite5.0, runtime error, solved, syntax error This topic contains 8 replies, has 3 voices, and was last updated by kidd84 2 years, 1 month ago. Viewing 9 posts - 1 through 9 (of 9 total) Author Posts August 26, 2014 at 20:00 #1392 kidd84Participant Hello, I am using FuzzyLite 3.1 with the OMNeT++ simulator. When running a simulation I have been getting these kind of errors: [syntax error] stack error during expected to contain the root, but contains 0 nodes After searching I found that this error points to the file FuzzyAntecedent.cpp and particularly these lines: if (expressionStack.size() != 1) { std::ostringstream ex; ex << "[syntax error] stack expected to contain the root, but contains " << expressionStack.size() << " nodes"; throw fl::Exception(ex.str(), FL_AT); } The expressionStack is defined as: std::stack expressionStack; What is the cause of the expressionStack = 0 error? error during startup What is the expressionStack used for? August 26, 2014 at 21:54 #1394 Juan Rada-VilelaKeymaster Hi, I strongly recommend you use the new fuzzylite 5.0. It is in a much much better shape. The error you are having has to do with an invalid rule that is probably misspelled, or contains invalid characters. Again, fuzzylite 5.0 would give you more information about the error. Cheers. September 4, 2014 at 01:19 #1416 kidd84Participant Hi Juan, Thanks your reply. I recently updated to FuzzyLite 5.0. I updated my code to the new version from 3.1, and the code compiles fine without any errors and all the necessary include files are present in the OMNeT++ IDE. However, when starting my simulation at the OMNeT++ IDE, I get this linker error: Error during startup: Cannot load library ‘/..inetmanet/src//libinet.so': /../inetmanet/src//libinet.so: undefined symbol: _ZN2fl9TrapezoidC1ERKSsdddd. Libinet.so is a library file in which all the simulator code is loaded. It seems that it is not loading correctly the FuzzyLite library. I have added to the simulation project properties "OMNeT++ makemake->Additional objects to link with" the file libfuzzylite-static.a ( found in FuzzyLite-5.0/fuzzylite/release/bin), which was the library file that was created after compiling the FuzzyLite 5.0 as "./build.sh all". I did not have any linker problems with the previous versio