home Forums # Technical Support error in compiling .cpp file with fuzzylit library

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2186
    Unknown
    Member

    root@inam-Lenovo-G50-70:/home/inam/Downloads/fuzzylite-5.0/fuzzylite-5.0/fuzzylite/fl# g++ Hello.cpp -I/home/inam/Downloads -L/home/inam/Downloads/fuzzylite-5.0/fuzzylite-5.0/fuzzylite/debug/bin -lfuzzylite-static
    Hello.cpp:1:24: fatal error: fl/Headers.h: No such file or directory
    #include <fl/Headers.h>
    ^
    how can i fix it sir ? i will be very thankfull for your response.

    #2187

    Hi,

    thank you for your post.

    Please, try:

    g++ Hello.cpp -I/home/inam/Downloads/fuzzylite-5.0/fuzzylite-5.0/ -L/home/inam/Downloads/fuzzylite-5.0/fuzzylite-5.0/fuzzylite/debug/bin -lfuzzylite-static

    In your case, the file fl/Headers.h has to be directly accessible from /home/inam/Downloads/fuzzylite-5.0/fuzzylite-5.0/. Otherwise, please adjust the -I path to achieve so.

    Cheers.

    #2188
    Unknown
    Member

    # g++ Hello.cpp -I/home/inam/Downloads/fuzzylite-5.0/fuzzylite-5.0 -L/home/inam/Downloads/fuzzylite-5.0/fuzzylite-5.0/fuzzylite/debug/bin -lfuzzylite-static
    Hello.cpp:1:24: fatal error: fl/Headers.h: No such file or directory
    #include <fl/Headers.h>
    ^
    compilation terminated.
    in -I path i give the path where fuzzylite folder is located but give it same error again.

    #2189
    Unknown
    Member

    g++ Hello.cpp -I/home/inam/Downloads/fuzzylite-5.0/fuzzylite-5.0 -L/home/inam/Downloads/fuzzylite-5.0/fuzzylite-5.0/fuzzylite/debug/bin -lfuzzylite-static
    Hello.cpp:1:24: fatal error: fl/Headers.h: No such file or directory
    #include <fl/Headers.h>
    ^
    compilation terminated.

    #2190

    Hi,

    as mentioned before, you need to make sure the following file exists:

    /home/inam/Downloads/fuzzylite-5.0/fuzzylite-5.0/fl/Headers.h

    when you write `-I
    /home/inam/Downloads/fuzzylite-5.0/fuzzylite-5.0/thefl/Headers.h` must be accessible from there. In your case, it seems it is not accessible from there. Please make sure this is the case.

    In addition, you could try adding Hello.cpp at the end (e.g., g++ -I... -l... Hello.cpp).

    Cheers.

    #2191
    Unknown
    Member

    sir header file error have been remove know thanks for your response but now if i want to compile a mamdani exampel Allterm.cpp
    it give the follwing “fl” how can i fix it?
    inputVariable->addTerm(new Concave(“F”, 0.850, 0.250));
    ^
    AllTerms.cpp:19:28: error: expected type-specifier before ‘Rectangle’
    inputVariable->addTerm(new Rectangle(“G”, 1.750, 2.250));
    ^
    AllTerms.cpp:20:24: error: ‘Discrete’ has not been declared
    inputVariable->addTerm(Discrete::create(“H”, 10, 2.000, 0.000, 2.250, 1.000, 2.500, 0.500, 2.750, 1.000, 3.000, 0.000));
    ^
    AllTerms.cpp:21:28: error: expected type-specifier before ‘Gaussian’
    inputVariable->addTerm(new Gaussian(“I”, 3.000, 0.200));
    ^
    AllTerms.cpp:22:28: error: expected type-specifier before ‘Cosine’
    inputVariable->addTerm(new Cosine(“J”, 3.250, 0.650));
    ^
    AllTerms.cpp:23:28: error: expected type-specifier before ‘GaussianProduct’
    inputVariable->addTerm(new GaussianProduct(“K”, 3.500, 0.100, 3.300, 0.300));
    ^
    AllTerms.cpp:24:28: error: expected type-specifier before ‘Spike’
    inputVariable->addTerm(new Spike(“L”, 3.640, 1.040));
    ^
    AllTerms.cpp:25:28: error: expected type-specifier before ‘Bell’
    inputVariable->addTerm(new Bell(“M”, 4.000, 0.250, 3.000));
    ^
    AllTerms.cpp:26:28: error: expected type-specifier before ‘PiShape’
    inputVariable->addTerm(new PiShape(“N”, 4.000, 4.500, 4.500, 5.000));
    ^
    AllTerms.cpp:27:28: error: expected type-specifier before ‘Concave’
    inputVariable->addTerm(new Concave(“O”, 5.650, 6.250));
    ^
    AllTerms.cpp:28:28: error: expected type-specifier before ‘SigmoidDifference’
    inputVariable->addTerm(new SigmoidDifference(“P”, 4.750, 10.000, 30.000, 5.250));
    ^
    AllTerms.cpp:29:28: error: expected type-specifier before ‘SigmoidProduct’
    inputVariable->addTerm(new SigmoidProduct(“Q”, 5.250, 20.000, -10.000, 5.750));
    ^
    AllTerms.cpp:30:28: error: expected type-specifier before ‘Ramp’
    inputVariable->addTerm(new Ramp(“R”, 5.500, 6.500));
    ^
    AllTerms.cpp:31:28: error: expected type-specifier before ‘SShape’
    inputVariable->addTerm(new SShape(“S”, 5.500, 6.500));
    ^
    AllTerms.cpp:32:28: error: expected type-specifier before ‘Sigmoid’
    inputVariable->addTerm(new Sigmoid(“T”, 6.000, 20.000));
    ^
    AllTerms.cpp:35:1: error: ‘OutputVariable’ was not declared in this scope
    OutputVariable* outputVariable = new OutputVariable;
    ^
    AllTerms.cpp:35:17: error: ‘outputVariable’ was not declared in this scope
    OutputVariable* outputVariable = new OutputVariable;
    ^
    AllTerms.cpp:35:38: error: expected type-specifier before ‘OutputVariable’
    OutputVariable* outputVariable = new OutputVariable;
    ^
    AllTerms.cpp:35:38: error: expected ‘;’ before ‘OutputVariable’
    AllTerms.cpp:39:52: error: expected type-specifier before ‘Maximum’
    outputVariable->fuzzyOutput()->setAccumulation(new Maximum);
    ^
    AllTerms.cpp:40:36: error: expected type-specifier before ‘Centroid’
    outputVariable->setDefuzzifier(new Centroid(200));
    ^
    AllTerms.cpp:41:33: error: ‘fl’ has not been declared
    outputVariable->setDefaultValue(fl::nan);
    ^
    AllTerms.cpp:44:29: error: expected type-specifier before ‘Sigmoid’
    outputVariable->addTerm(new Sigmoid(“A”, 0.500, -20.000));
    ^
    AllTerms.cpp:45:29: error: expected type-specifier before ‘ZShape’
    outputVariable->addTerm(new ZShape(“B”, 0.000, 1.000));
    ^
    AllTerms.cpp:46:29: error: expected type-specifier before ‘Ramp’
    outputVariable->addTerm(new Ramp(“C”, 1.000, 0.000));
    ^
    AllTerms.cpp:47:29: error: expected type-specifier before ‘Triangle’
    outputVariable->addTerm(new Triangle(“D”, 0.500, 1.000, 1.500));
    ^
    AllTerms.cpp:48:29: error: expected type-specifier before ‘Trapezoid’
    outputVariable->addTerm(new Trapezoid(“E”, 1.000, 1.250, 1.750, 2.000));
    ^
    AllTerms.cpp:49:29: error: expected type-specifier before ‘Concave’
    outputVariable->addTerm(new Concave(“F”, 0.850, 0.250));
    ^
    AllTerms.cpp:50:29: error: expected type-specifier before ‘Rectangle’
    outputVariable->addTerm(new Rectangle(“G”, 1.750, 2.250));
    ^
    AllTerms.cpp:51:25: error: ‘Discrete’ has not been declared
    outputVariable->addTerm(Discrete::create(“H”, 10, 2.000, 0.000, 2.250, 1.000, 2.500, 0.500, 2.750, 1.000, 3.000, 0.000));
    ^
    AllTerms.cpp:52:29: error: expected type-specifier before ‘Gaussian’
    outputVariable->addTerm(new Gaussian(“I”, 3.000, 0.200));
    ^
    AllTerms.cpp:53:29: error: expected type-specifier before ‘Cosine’
    outputVariable->addTerm(new Cosine(“J”, 3.250, 0.650));
    ^
    AllTerms.cpp:54:29: error: expected type-specifier before ‘GaussianProduct’
    outputVariable->addTerm(new GaussianProduct(“K”, 3.500, 0.100, 3.300, 0.300));
    ^
    AllTerms.cpp:55:29: error: expected type-specifier before ‘Spike’
    outputVariable->addTerm(new Spike(“L”, 3.640, 1.040));
    ^
    AllTerms.cpp:56:29: error: expected type-specifier before ‘Bell’
    outputVariable->addTerm(new Bell(“M”, 4.000, 0.250, 3.000));
    ^
    AllTerms.cpp:57:29: error: expected type-specifier before ‘PiShape’
    outputVariable->addTerm(new PiShape(“N”, 4.000, 4.500, 4.500, 5.000));
    ^
    AllTerms.cpp:58:29: error: expected type-specifier before ‘Concave’
    outputVariable->addTerm(new Concave(“O”, 5.650, 6.250));
    ^
    AllTerms.cpp:59:29: error: expected type-specifier before ‘SigmoidDifference’
    outputVariable->addTerm(new SigmoidDifference(“P”, 4.750, 10.000, 30.000, 5.250));
    ^
    AllTerms.cpp:60:29: error: expected type-specifier before ‘SigmoidProduct’
    outputVariable->addTerm(new SigmoidProduct(“Q”, 5.250, 20.000, -10.000, 5.750));
    ^
    AllTerms.cpp:61:29: error: expected type-specifier before ‘Ramp’
    outputVariable->addTerm(new Ramp(“R”, 5.500, 6.500));
    ^
    AllTerms.cpp:62:29: error: expected type-specifier before ‘SShape’
    outputVariable->addTerm(new SShape(“S”, 5.500, 6.500));
    ^
    AllTerms.cpp:63:29: error: expected type-specifier before ‘Sigmoid’
    outputVariable->addTerm(new Sigmoid(“T”, 6.000, 20.000));
    ^
    AllTerms.cpp:66:1: error: ‘RuleBlock’ was not declared in this scope
    RuleBlock* ruleBlock = new RuleBlock;
    ^
    AllTerms.cpp:66:12: error: ‘ruleBlock’ was not declared in this scope
    RuleBlock* ruleBlock = new RuleBlock;
    ^
    AllTerms.cpp:66:28: error: expected type-specifier before ‘RuleBlock’
    RuleBlock* ruleBlock = new RuleBlock;
    ^
    AllTerms.cpp:66:28: error: expected ‘;’ before ‘RuleBlock’
    AllTerms.cpp:69:31: error: expected type-specifier before ‘Minimum’
    ruleBlock->setConjunction(new Minimum);
    ^
    AllTerms.cpp:70:31: error: expected type-specifier before ‘Maximum’
    ruleBlock->setDisjunction(new Maximum);
    ^
    AllTerms.cpp:71:30: error: expected type-specifier before ‘Minimum’
    ruleBlock->setActivation(new Minimum);
    ^
    AllTerms.cpp:72:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is A then AllOutputTerms is T”, engine));
    ^
    AllTerms.cpp:73:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is B then AllOutputTerms is S”, engine));
    ^
    AllTerms.cpp:74:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is C then AllOutputTerms is R”, engine));
    ^
    AllTerms.cpp:75:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is D then AllOutputTerms is Q”, engine));
    ^
    AllTerms.cpp:76:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is E then AllOutputTerms is P”, engine));
    ^
    AllTerms.cpp:77:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is F then AllOutputTerms is O”, engine));
    ^
    AllTerms.cpp:78:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is G then AllOutputTerms is N”, engine));
    ^
    AllTerms.cpp:79:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is H then AllOutputTerms is M”, engine));
    ^
    AllTerms.cpp:80:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is I then AllOutputTerms is L”, engine));
    ^
    AllTerms.cpp:81:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is J then AllOutputTerms is K”, engine));
    ^
    AllTerms.cpp:82:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is K then AllOutputTerms is J”, engine));
    ^
    AllTerms.cpp:83:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is L then AllOutputTerms is I”, engine));
    ^
    AllTerms.cpp:84:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is M then AllOutputTerms is H”, engine));
    ^
    AllTerms.cpp:85:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is N then AllOutputTerms is G”, engine));
    ^
    AllTerms.cpp:86:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is O then AllOutputTerms is F”, engine));
    ^
    AllTerms.cpp:87:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is P then AllOutputTerms is E”, engine));
    ^
    AllTerms.cpp:88:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is Q then AllOutputTerms is D”, engine));
    ^
    AllTerms.cpp:89:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is R then AllOutputTerms is C”, engine));
    ^
    AllTerms.cpp:90:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is S then AllOutputTerms is B”, engine));
    ^
    AllTerms.cpp:91:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is T then AllOutputTerms is A”, engine));
    ^
    root@inam-Lenovo-G50-70:/home/inam/Downloads/fuzzylite-5.0/fuzzylite-5.0/fuzzylite# g++ AllTerms.cpp -I/home/inam/Downloads/fuzzylite-5.0/fuzzylite-5.0/fuzzylite/fl/ -L/home/inam/Downloads/fuzzylite-5.0/fuzzylite-5.0/fuzzylite/debug/bin -lfuzzylite-static
    In file included from AllTerms.cpp:1:0:
    /home/inam/Downloads/fuzzylite-5.0/fuzzylite-5.0/fuzzylite/fl/Headers.h:25:9: error: macro names must be identifiers
    #ifndef /home/inam/Downloads/fuzzylite-5.0/fuzzylite-5.0/fuzzylite/fl_HEADERS_H
    ^
    AllTerms.cpp: In function ‘int main(int, char**)’:
    AllTerms.cpp:4:17: error: ‘fl’ is not a namespace-name
    using namespace fl;
    ^
    AllTerms.cpp:4:19: error: expected namespace-name before ‘;’ token
    using namespace fl;
    ^
    AllTerms.cpp:6:1: error: ‘Engine’ was not declared in this scope
    Engine* engine = new Engine;
    ^
    AllTerms.cpp:6:9: error: ‘engine’ was not declared in this scope
    Engine* engine = new Engine;
    ^
    AllTerms.cpp:6:22: error: expected type-specifier before ‘Engine’
    Engine* engine = new Engine;
    ^
    AllTerms.cpp:6:22: error: expected ‘;’ before ‘Engine’
    AllTerms.cpp:9:1: error: ‘InputVariable’ was not declared in this scope
    InputVariable* inputVariable = new InputVariable;
    ^
    AllTerms.cpp:9:16: error: ‘inputVariable’ was not declared in this scope
    InputVariable* inputVariable = new InputVariable;
    ^
    AllTerms.cpp:9:36: error: expected type-specifier before ‘InputVariable’
    InputVariable* inputVariable = new InputVariable;
    ^
    AllTerms.cpp:9:36: error: expected ‘;’ before ‘InputVariable’
    AllTerms.cpp:13:28: error: expected type-specifier before ‘Sigmoid’
    inputVariable->addTerm(new Sigmoid(“A”, 0.500, -20.000));
    ^
    AllTerms.cpp:14:28: error: expected type-specifier before ‘ZShape’
    inputVariable->addTerm(new ZShape(“B”, 0.000, 1.000));
    ^
    AllTerms.cpp:15:28: error: expected type-specifier before ‘Ramp’
    inputVariable->addTerm(new Ramp(“C”, 1.000, 0.000));
    ^
    AllTerms.cpp:16:28: error: expected type-specifier before ‘Triangle’
    inputVariable->addTerm(new Triangle(“D”, 0.500, 1.000, 1.500));
    ^
    AllTerms.cpp:17:28: error: expected type-specifier before ‘Trapezoid’
    inputVariable->addTerm(new Trapezoid(“E”, 1.000, 1.250, 1.750, 2.000));
    ^
    AllTerms.cpp:18:28: error: expected type-specifier before ‘Concave’
    inputVariable->addTerm(new Concave(“F”, 0.850, 0.250));
    ^
    AllTerms.cpp:19:28: error: expected type-specifier before ‘Rectangle’
    inputVariable->addTerm(new Rectangle(“G”, 1.750, 2.250));
    ^
    AllTerms.cpp:20:24: error: ‘Discrete’ has not been declared
    inputVariable->addTerm(Discrete::create(“H”, 10, 2.000, 0.000, 2.250, 1.000, 2.500, 0.500, 2.750, 1.000, 3.000, 0.000));
    ^
    AllTerms.cpp:21:28: error: expected type-specifier before ‘Gaussian’
    inputVariable->addTerm(new Gaussian(“I”, 3.000, 0.200));
    ^
    AllTerms.cpp:22:28: error: expected type-specifier before ‘Cosine’
    inputVariable->addTerm(new Cosine(“J”, 3.250, 0.650));
    ^
    AllTerms.cpp:23:28: error: expected type-specifier before ‘GaussianProduct’
    inputVariable->addTerm(new GaussianProduct(“K”, 3.500, 0.100, 3.300, 0.300));
    ^
    AllTerms.cpp:24:28: error: expected type-specifier before ‘Spike’
    inputVariable->addTerm(new Spike(“L”, 3.640, 1.040));
    ^
    AllTerms.cpp:25:28: error: expected type-specifier before ‘Bell’
    inputVariable->addTerm(new Bell(“M”, 4.000, 0.250, 3.000));
    ^
    AllTerms.cpp:26:28: error: expected type-specifier before ‘PiShape’
    inputVariable->addTerm(new PiShape(“N”, 4.000, 4.500, 4.500, 5.000));
    ^
    AllTerms.cpp:27:28: error: expected type-specifier before ‘Concave’
    inputVariable->addTerm(new Concave(“O”, 5.650, 6.250));
    ^
    AllTerms.cpp:28:28: error: expected type-specifier before ‘SigmoidDifference’
    inputVariable->addTerm(new SigmoidDifference(“P”, 4.750, 10.000, 30.000, 5.250));
    ^
    AllTerms.cpp:29:28: error: expected type-specifier before ‘SigmoidProduct’
    inputVariable->addTerm(new SigmoidProduct(“Q”, 5.250, 20.000, -10.000, 5.750));
    ^
    AllTerms.cpp:30:28: error: expected type-specifier before ‘Ramp’
    inputVariable->addTerm(new Ramp(“R”, 5.500, 6.500));
    ^
    AllTerms.cpp:31:28: error: expected type-specifier before ‘SShape’
    inputVariable->addTerm(new SShape(“S”, 5.500, 6.500));
    ^
    AllTerms.cpp:32:28: error: expected type-specifier before ‘Sigmoid’
    inputVariable->addTerm(new Sigmoid(“T”, 6.000, 20.000));
    ^
    AllTerms.cpp:35:1: error: ‘OutputVariable’ was not declared in this scope
    OutputVariable* outputVariable = new OutputVariable;
    ^
    AllTerms.cpp:35:17: error: ‘outputVariable’ was not declared in this scope
    OutputVariable* outputVariable = new OutputVariable;
    ^
    AllTerms.cpp:35:38: error: expected type-specifier before ‘OutputVariable’
    OutputVariable* outputVariable = new OutputVariable;
    ^
    AllTerms.cpp:35:38: error: expected ‘;’ before ‘OutputVariable’
    AllTerms.cpp:39:52: error: expected type-specifier before ‘Maximum’
    outputVariable->fuzzyOutput()->setAccumulation(new Maximum);
    ^
    AllTerms.cpp:40:36: error: expected type-specifier before ‘Centroid’
    outputVariable->setDefuzzifier(new Centroid(200));
    ^
    AllTerms.cpp:41:33: error: ‘fl’ has not been declared
    outputVariable->setDefaultValue(fl::nan);
    ^
    AllTerms.cpp:44:29: error: expected type-specifier before ‘Sigmoid’
    outputVariable->addTerm(new Sigmoid(“A”, 0.500, -20.000));
    ^
    AllTerms.cpp:45:29: error: expected type-specifier before ‘ZShape’
    outputVariable->addTerm(new ZShape(“B”, 0.000, 1.000));
    ^
    AllTerms.cpp:46:29: error: expected type-specifier before ‘Ramp’
    outputVariable->addTerm(new Ramp(“C”, 1.000, 0.000));
    ^
    AllTerms.cpp:47:29: error: expected type-specifier before ‘Triangle’
    outputVariable->addTerm(new Triangle(“D”, 0.500, 1.000, 1.500));
    ^
    AllTerms.cpp:48:29: error: expected type-specifier before ‘Trapezoid’
    outputVariable->addTerm(new Trapezoid(“E”, 1.000, 1.250, 1.750, 2.000));
    ^
    AllTerms.cpp:49:29: error: expected type-specifier before ‘Concave’
    outputVariable->addTerm(new Concave(“F”, 0.850, 0.250));
    ^
    AllTerms.cpp:50:29: error: expected type-specifier before ‘Rectangle’
    outputVariable->addTerm(new Rectangle(“G”, 1.750, 2.250));
    ^
    AllTerms.cpp:51:25: error: ‘Discrete’ has not been declared
    outputVariable->addTerm(Discrete::create(“H”, 10, 2.000, 0.000, 2.250, 1.000, 2.500, 0.500, 2.750, 1.000, 3.000, 0.000));
    ^
    AllTerms.cpp:52:29: error: expected type-specifier before ‘Gaussian’
    outputVariable->addTerm(new Gaussian(“I”, 3.000, 0.200));
    ^
    AllTerms.cpp:53:29: error: expected type-specifier before ‘Cosine’
    outputVariable->addTerm(new Cosine(“J”, 3.250, 0.650));
    ^
    AllTerms.cpp:54:29: error: expected type-specifier before ‘GaussianProduct’
    outputVariable->addTerm(new GaussianProduct(“K”, 3.500, 0.100, 3.300, 0.300));
    ^
    AllTerms.cpp:55:29: error: expected type-specifier before ‘Spike’
    outputVariable->addTerm(new Spike(“L”, 3.640, 1.040));
    ^
    AllTerms.cpp:56:29: error: expected type-specifier before ‘Bell’
    outputVariable->addTerm(new Bell(“M”, 4.000, 0.250, 3.000));
    ^
    AllTerms.cpp:57:29: error: expected type-specifier before ‘PiShape’
    outputVariable->addTerm(new PiShape(“N”, 4.000, 4.500, 4.500, 5.000));
    ^
    AllTerms.cpp:58:29: error: expected type-specifier before ‘Concave’
    outputVariable->addTerm(new Concave(“O”, 5.650, 6.250));
    ^
    AllTerms.cpp:59:29: error: expected type-specifier before ‘SigmoidDifference’
    outputVariable->addTerm(new SigmoidDifference(“P”, 4.750, 10.000, 30.000, 5.250));
    ^
    AllTerms.cpp:60:29: error: expected type-specifier before ‘SigmoidProduct’
    outputVariable->addTerm(new SigmoidProduct(“Q”, 5.250, 20.000, -10.000, 5.750));
    ^
    AllTerms.cpp:61:29: error: expected type-specifier before ‘Ramp’
    outputVariable->addTerm(new Ramp(“R”, 5.500, 6.500));
    ^
    AllTerms.cpp:62:29: error: expected type-specifier before ‘SShape’
    outputVariable->addTerm(new SShape(“S”, 5.500, 6.500));
    ^
    AllTerms.cpp:63:29: error: expected type-specifier before ‘Sigmoid’
    outputVariable->addTerm(new Sigmoid(“T”, 6.000, 20.000));
    ^
    AllTerms.cpp:66:1: error: ‘RuleBlock’ was not declared in this scope
    RuleBlock* ruleBlock = new RuleBlock;
    ^
    AllTerms.cpp:66:12: error: ‘ruleBlock’ was not declared in this scope
    RuleBlock* ruleBlock = new RuleBlock;
    ^
    AllTerms.cpp:66:28: error: expected type-specifier before ‘RuleBlock’
    RuleBlock* ruleBlock = new RuleBlock;
    ^
    AllTerms.cpp:66:28: error: expected ‘;’ before ‘RuleBlock’
    AllTerms.cpp:69:31: error: expected type-specifier before ‘Minimum’
    ruleBlock->setConjunction(new Minimum);
    ^
    AllTerms.cpp:70:31: error: expected type-specifier before ‘Maximum’
    ruleBlock->setDisjunction(new Maximum);
    ^
    AllTerms.cpp:71:30: error: expected type-specifier before ‘Minimum’
    ruleBlock->setActivation(new Minimum);
    ^
    AllTerms.cpp:72:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is A then AllOutputTerms is T”, engine));
    ^
    AllTerms.cpp:73:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is B then AllOutputTerms is S”, engine));
    ^
    AllTerms.cpp:74:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is C then AllOutputTerms is R”, engine));
    ^
    AllTerms.cpp:75:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is D then AllOutputTerms is Q”, engine));
    ^
    AllTerms.cpp:76:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is E then AllOutputTerms is P”, engine));
    ^
    AllTerms.cpp:77:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is F then AllOutputTerms is O”, engine));
    ^
    AllTerms.cpp:78:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is G then AllOutputTerms is N”, engine));
    ^
    AllTerms.cpp:79:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is H then AllOutputTerms is M”, engine));
    ^
    AllTerms.cpp:80:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is I then AllOutputTerms is L”, engine));
    ^
    AllTerms.cpp:81:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is J then AllOutputTerms is K”, engine));
    ^
    AllTerms.cpp:82:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is K then AllOutputTerms is J”, engine));
    ^
    AllTerms.cpp:83:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is L then AllOutputTerms is I”, engine));
    ^
    AllTerms.cpp:84:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is M then AllOutputTerms is H”, engine));
    ^
    AllTerms.cpp:85:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is N then AllOutputTerms is G”, engine));
    ^
    AllTerms.cpp:86:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is O then AllOutputTerms is F”, engine));
    ^
    AllTerms.cpp:87:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is P then AllOutputTerms is E”, engine));
    ^
    AllTerms.cpp:88:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is Q then AllOutputTerms is D”, engine));
    ^
    AllTerms.cpp:89:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is R then AllOutputTerms is C”, engine));
    ^
    AllTerms.cpp:90:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is S then AllOutputTerms is B”, engine));
    ^
    AllTerms.cpp:91:20: error: ‘fl’ has not been declared
    ruleBlock->addRule(fl::Rule::parse(“if AllInputTerms is T then AllOutputTerms is A”, engine));
    ^

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.