home Forums # Technical Support Error in running file.cpp

  • This topic has 2 replies, 3 voices, and was last updated 3 years ago by AvatarAnonymous.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6196
    AvatarShahzeb Tanveer
    Participant

    Hi,
    i am facing these errors while running my code.Can anyone help me out.waiting…..

    asif@asif-HP-ENVY-15-Notebook-PC:~/fuzzylite-6.0/examples/mamdani$ g++ 123.cpp -o 123 -I/path/to/fuzzylite -L/path/to/fuzzylite/release/bin -lfuzzylite-static –std=c++11
    123.cpp: In function ‘int main(int, char**)’:
    123.cpp:82:33: error: ‘class fl::Aggregated’ has no member named ‘setAccumulation’
    outputVariable1->fuzzyOutput()->setAccumulation(new fl::Maximum);
    ^
    123.cpp:85:18: error: ‘class fl::OutputVariable’ has no member named ‘setLockValidOutput’
    outputVariable1->setLockValidOutput(false);
    ^
    123.cpp:86:18: error: ‘class fl::OutputVariable’ has no member named ‘setLockOutputRange’
    outputVariable1->setLockOutputRange(false);
    ^
    123.cpp:96:33: error: ‘class fl::Aggregated’ has no member named ‘setAccumulation’
    outputVariable2->fuzzyOutput()->setAccumulation(new fl::Maximum);
    ^
    123.cpp:99:18: error: ‘class fl::OutputVariable’ has no member named ‘setLockValidOutput’
    outputVariable2->setLockValidOutput(false);
    ^
    123.cpp:100:18: error: ‘class fl::OutputVariable’ has no member named ‘setLockOutputRange’
    outputVariable2->setLockOutputRange(false);
    ^
    123.cpp:112:41: error: no matching function for call to ‘fl::RuleBlock::setActivation(fl::Minimum*)’
    ruleBlock->setActivation(new fl::Minimum);
    ^
    123.cpp:112:41: note: candidate is:
    In file included from /home/asif/fuzzylite-6.0/fuzzylite/fl/Headers.h:115:0,
    from 123.cpp:1:
    /usr/local/include/fl/rule/RuleBlock.h:142:22: note: virtual void fl::RuleBlock::setActivation(fl::Activation*)
    virtual void setActivation(Activation* activation);
    ^
    /usr/local/include/fl/rule/RuleBlock.h:142:22: note: no known conversion for argument 1 from ‘fl::Minimum*’ to ‘fl::Activation*’

    #6198

    Hi,

    Your code is using fuzzylite 5, but you are compiling against version 6. There were some name
    Changes. Please check the changelog. For example, setAccumulation is now setAggregation.

    Cheers

    #6214
    AvatarAnonymous
    Inactive
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.