home Forums # Technical Support Compiling with different compiler(BCC)

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1388
    AvatarShaheryar
    Participant

    Hey,
    i am trying to implement fuzzy logic controller in Leone3 processor for that i have to compile fuzzylite with bcc compiler. On trying to do so i am getting some errors, can you please tell me how can i do this?

    Manual for Bcc is available on this link:
    Comlier link :

    Error im getting is as follows

    AllTerms.cpp:1:24: fl/Headers.h: No such file or directory
    AllTerms.cpp: In function `int main(int, char**)’:
    AllTerms.cpp:4: error: `fl’ has not been declared
    AllTerms.cpp:4: error: `Engine’ undeclared (first use this function)
    AllTerms.cpp:4: error: (Each undeclared identifier is reported only once for each function it appears in.)
    AllTerms.cpp:4: error: `engine’ undeclared (first use this function)
    AllTerms.cpp:4: error: `fl’ has not been declared
    AllTerms.cpp:4: error: `Engine’ has not been declared
    AllTerms.cpp:7: error: `fl’ has not been declared
    AllTerms.cpp:7: error: `InputVariable’ undeclared (first use this function)
    AllTerms.cpp:7: error: `inputVariable’ undeclared (first use this function)
    AllTerms.cpp:7: error: `fl’ has not been declared
    AllTerms.cpp:7: error: `InputVariable’ has not been declared
    AllTerms.cpp:11: error: `fl’ has not been declared
    AllTerms.cpp:11: error: `Sigmoid’ has not been declared
    AllTerms.cpp:12: error: `fl’ has not been declared
    AllTerms.cpp:12: error: `ZShape’ has not been declared
    AllTerms.cpp:13: error: `fl’ has not been declared
    AllTerms.cpp:13: error: `Ramp’ has not been declared
    AllTerms.cpp:14: error: `fl’ has not been declared
    AllTerms.cpp:14: error: `Triangle’ has not been declared
    AllTerms.cpp:15: error: `fl’ has not been declared
    AllTerms.cpp:15: error: `Trapezoid’ has not been declared
    AllTerms.cpp:16: error: `fl’ has not been declared
    AllTerms.cpp:16: error: `Rectangle’ has not been declared
    AllTerms.cpp:17: error: `fl’ has not been declared
    AllTerms.cpp:17: error: `create’ undeclared (first use this function)
    AllTerms.cpp:18: error: `fl’ has not been declared
    AllTerms.cpp:18: error: `Gaussian’ has not been declared
    AllTerms.cpp:19: error: `fl’ has not been declared
    AllTerms.cpp:19: error: `GaussianProduct’ has not been declared
    AllTerms.cpp:20: error: `fl’ has not been declared
    AllTerms.cpp:20: error: `Bell’ has not been declared
    AllTerms.cpp:21: error: `fl’ has not been declared
    AllTerms.cpp:21: error: `PiShape’ has not been declared
    AllTerms.cpp:22: error: `fl’ has not been declared
    AllTerms.cpp:22: error: `SigmoidDifference’ has not been declared
    AllTerms.cpp:23: error: `fl’ has not been declared
    AllTerms.cpp:23: error: `SigmoidProduct’ has not been declared
    AllTerms.cpp:24: error: `fl’ has not been declared
    AllTerms.cpp:24: error: `Ramp’ has not been declared
    AllTerms.cpp:25: error: `fl’ has not been declared
    AllTerms.cpp:25: error: `SShape’ has not been declared
    AllTerms.cpp:26: error: `fl’ has not been declared
    AllTerms.cpp:26: error: `Sigmoid’ has not been declared
    AllTerms.cpp:29: error: `fl’ has not been declared
    AllTerms.cpp:29: error: `OutputVariable’ undeclared (first use this function)
    AllTerms.cpp:29: error: `outputVariable’ undeclared (first use this function)
    AllTerms.cpp:29: error: `fl’ has not been declared
    AllTerms.cpp:29: error: `OutputVariable’ has not been declared
    AllTerms.cpp:33: error: `fl’ has not been declared
    AllTerms.cpp:33: error: `Maximum’ has not been declared
    AllTerms.cpp:34: error: `fl’ has not been declared
    AllTerms.cpp:34: error: `Centroid’ has not been declared
    AllTerms.cpp:35: error: `fl’ has not been declared
    AllTerms.cpp:35: error: `nan’ undeclared (first use this function)
    AllTerms.cpp:38: error: `fl’ has not been declared
    AllTerms.cpp:38: error: `Sigmoid’ has not been declared
    AllTerms.cpp:39: error: `fl’ has not been declared
    AllTerms.cpp:39: error: `ZShape’ has not been declared
    AllTerms.cpp:40: error: `fl’ has not been declared
    AllTerms.cpp:40: error: `Ramp’ has not been declared
    AllTerms.cpp:41: error: `fl’ has not been declared
    AllTerms.cpp:41: error: `Triangle’ has not been declared
    AllTerms.cpp:42: error: `fl’ has not been declared
    AllTerms.cpp:42: error: `Trapezoid’ has not been declared
    AllTerms.cpp:43: error: `fl’ has not been declared
    AllTerms.cpp:43: error: `Rectangle’ has not been declared
    AllTerms.cpp:44: error: `fl’ has not been declared
    AllTerms.cpp:45: error: `fl’ has not been declared
    AllTerms.cpp:45: error: `Gaussian’ has not been declared
    AllTerms.cpp:46: error: `fl’ has not been declared
    AllTerms.cpp:46: error: `GaussianProduct’ has not been declared
    AllTerms.cpp:47: error: `fl’ has not been declared
    AllTerms.cpp:47: error: `Bell’ has not been declared
    AllTerms.cpp:48: error: `fl’ has not been declared
    AllTerms.cpp:48: error: `PiShape’ has not been declared
    AllTerms.cpp:49: error: `fl’ has not been declared
    AllTerms.cpp:49: error: `SigmoidDifference’ has not been declared
    AllTerms.cpp:50: error: `fl’ has not been declared
    AllTerms.cpp:50: error: `SigmoidProduct’ has not been declared
    AllTerms.cpp:51: error: `fl’ has not been declared
    AllTerms.cpp:51: error: `Ramp’ has not been declared
    AllTerms.cpp:52: error: `fl’ has not been declared
    AllTerms.cpp:52: error: `SShape’ has not been declared
    AllTerms.cpp:53: error: `fl’ has not been declared
    AllTerms.cpp:53: error: `Sigmoid’ has not been declared
    AllTerms.cpp:56: error: `fl’ has not been declared
    AllTerms.cpp:56: error: `RuleBlock’ undeclared (first use this function)
    AllTerms.cpp:56: error: `ruleBlock’ undeclared (first use this function)
    AllTerms.cpp:56: error: `fl’ has not been declared
    AllTerms.cpp:56: error: `RuleBlock’ has not been declared
    AllTerms.cpp:59: error: `fl’ has not been declared
    AllTerms.cpp:59: error: `Minimum’ has not been declared
    AllTerms.cpp:60: error: `fl’ has not been declared
    AllTerms.cpp:60: error: `Maximum’ has not been declared
    AllTerms.cpp:61: error: `fl’ has not been declared
    AllTerms.cpp:61: error: `Minimum’ has not been declared
    AllTerms.cpp:62: error: `fl’ has not been declared
    AllTerms.cpp:62: error: `parse’ undeclared (first use this function)
    AllTerms.cpp:63: error: `fl’ has not been declared
    AllTerms.cpp:64: error: `fl’ has not been declared
    AllTerms.cpp:65: error: `fl’ has not been declared
    AllTerms.cpp:66: error: `fl’ has not been declared
    AllTerms.cpp:67: error: `fl’ has not been declared
    AllTerms.cpp:68: error: `fl’ has not been declared
    AllTerms.cpp:69: error: `fl’ has not been declared
    AllTerms.cpp:70: error: `fl’ has not been declared
    AllTerms.cpp:71: error: `fl’ has not been declared
    AllTerms.cpp:72: error: `fl’ has not been declared
    AllTerms.cpp:73: error: `fl’ has not been declared
    AllTerms.cpp:74: error: `fl’ has not been declared
    AllTerms.cpp:75: error: `fl’ has not been declared
    AllTerms.cpp:76: error: `fl’ has not been declared
    AllTerms.cpp:77: error: `fl’ has not been declared
    AllTerms.cpp:83: error: `FL_LOG’ undeclared (first use this function)

    Thanks

    #1391

    Hi,

    The error you are having is that the compiler cannot find the file fl/Headers.h, as shown in first line:

    AllTerms.cpp:1:24: fl/Headers.h: No such file or directory

    To fix this, you need to make sure you properly set the INCLUDE_PATH to the fuzzylite folder containing the subfolderfl. Usually, you can achieve this from command line like this:

    g++ somefile.cpp -I/path/to/fuzzylite -L/path/to/fuzzylite/bin -lfuzzylite

    It might be easier to find out if CMake can compile fuzzylite using BCC, hence you could use the scripts to build the debug and release binaries.

    #1393
    AvatarShaheryar
    Participant

    Hey
    Now i am trying to compile it using following command

    sparc-linux-g++ AllTerms.cpp -I/home/tayyab/Desktop/fuzzylite-4.0 -L/home/tayyab/Desktop/fuzzylite-4.0/fuzzylite/bin -lfuzzylite-static

    Still i am having same error
    What should i do now?

    #1395

    Hi,

    Fix the following: -I/home/tayyab/Desktop/fuzzylite-4.0/fuzzylite

    #1396
    AvatarShaheryar
    Participant

    Hey,
    After fixing it i get this massage.

    root@ubuntu:/home/tayyab/Desktop/fuzzylite-4.0/fuzzylite# sparc-linux-g++ AllTerms.cpp -I/home/tayyab/Desktop/fuzzylite-4.0/fuzzylite -L/home/tayyab/Desktop/fuzzylite-4.0/fuzzylite/bin -lfuzzylite-static
    In file included from /home/tayyab/Desktop/fuzzylite-4.0/fuzzylite/fl/Headers.h:29,
    from AllTerms.cpp:1:
    /home/tayyab/Desktop/fuzzylite-4.0/fuzzylite/fl/Engine.h:26:26: calling fdopen: Bad file descriptor
    In file included from /home/tayyab/Desktop/fuzzylite-4.0/fuzzylite/fl/Headers.h:30,
    from AllTerms.cpp:1:
    /home/tayyab/Desktop/fuzzylite-4.0/fuzzylite/fl/Exception.h:26:26: calling fdopen: Bad file descriptor
    In file included from /home/tayyab/Desktop/fuzzylite-4.0/fuzzylite/fl/norm/Norm.h:28,
    from /home/tayyab/Desktop/fuzzylite-4.0/fuzzylite/fl/norm/SNorm.h:26,
    from /home/tayyab/Desktop/fuzzylite-4.0/fuzzylite/fl/factory/SNormFactory.h:29,
    from /home/tayyab/Desktop/fuzzylite-4.0/fuzzylite/fl/Headers.h:46,
    from AllTerms.cpp:1:
    /home/tayyab/Desktop/fuzzylite-4.0/fuzzylite/fl/Operation.h:26:26: calling fdopen: Bad file descriptor

    #1397
    #1398
    AvatarShaheryar
    Participant

    adding stdio header doesnot make any difference.

    Do you think i need to generate the binaries with BCC compiler as i ma using the same binaries as generated for g++ ?

    #1399

    I am not familiar with the compiler and configuration you are using, but you could certainly try building fuzzylite binaries using BCC. Let me know if you manage to solve your issue.

    #1400
    AvatarShaheryar
    Participant

    I want to change the compiler in cmake and then generate new binaries. How can i change the compiler from g++ to BCC.
    Can you please help me in this.

    #1401

    Hi, I am sorry, but I really have no idea how to do that. I am afraid you are going to have to search that over the internet. Please, if you find a solution, let the community know. Thanks!

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