home Forums # Technical Support Fuzzylite + CPP (Windows) + Hopefully Visual Studio

Viewing 4 posts - 11 through 14 (of 14 total)
  • Author
    Posts
  • #1501

    Hi Azzabi,

    can you please make sure that you are compiling fuzzylite without C++11 support? That is, you need not to have defined FL_CPP11. Based on the number of line in fuzzylite.h upon which the error occurs, it seems you have activated C++11 and your compiler does not support it. Let me know if it helps.

    Cheers.

    #1504
    Unknown
    Member

    It didn’t help. My aim is to integrate Fuzzylite into my game, let me explain you what i did so far :
    – I modified the build.bat script (to change the compilator to Visual Studio 12 2012 instead of Nmake) and run it
    – I opened the visual studio solution to create the static lib, no errors
    – I used the static lib into a small test project – it works great
    – But when I use the same lib in the game project, i have these errors :

    Error	1	error C2027: use of undefined type 'T'	c:\users\project\fl\operation.h	41	1	Project
    Error	2	error C2226: syntax error : unexpected type 'T'	c:\users\project\fl\operation.h	41	1	Project
    Error	3	error C2334: unexpected token(s) preceding ':'; skipping apparent function body	c:\users\project\fl\operation.h	41	1	Project
    Error	4	error C2143: syntax error : missing ')' before ';'	c:\users\project\fl\operation.h	139	1	Project
    Error	5	error C2988: unrecognizable template declaration/definition	c:\users\project\fl\operation.h	139	1	Project
    Error	6	error C2059: syntax error : ')'	c:\users\project\fl\operation.h	139	1	Project
    Error	7	error C2238: unexpected token(s) preceding ';'	c:\users\project\fl\operation.h	139	1	Project
    Error	8	error C2143: syntax error : missing ';' before 'namespace'	c:\users\project\fl\term\term.h	37	1	Project

    I already tried different options in the build script.
    When i set the flag -DFL_CPP11 to ON, I can’t create the lib and i got this error:
    C:\Users\fuzzylite-5.x\fuzzylite-5.x\fuzzylite\fl/Operation.h(125): fatal error C1001: An internal error has occurred in the compiler.

    Thank you for your help!!!

    #1510

    Hi,

    I have no idea why such an error occurs. It seems as if the compiler was not set accordingly or the libraries in your game are prohibiting the use of generics somehow. What other libraries are involved in your game? If you find a solution, could you post it here?

    #1511
    Unknown
    Member

    Hi,
    It works well, i just put #include “fl/Headers.h” at the beginning of my file project.

    thanks for your help Juan !

Viewing 4 posts - 11 through 14 (of 14 total)
  • You must be logged in to reply to this topic.