home › Forums › # Technical Support › Fuzzylite + CPP (Windows) + Hopefully Visual Studio
Tagged: fuzzylite visual studio
- This topic has 13 replies, 3 voices, and was last updated 9 years ago by
Unknown.
-
AuthorPosts
-
November 10, 2014 at 09:10 #1501
Juan Rada-Vilela (admin)
KeymasterHi 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.
November 11, 2014 at 09:20 #1504Unknown
MemberIt 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!!!
November 13, 2014 at 21:47 #1510Juan Rada-Vilela (admin)
KeymasterHi,
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?
November 14, 2014 at 04:28 #1511Unknown
MemberHi,
It works well, i just put #include “fl/Headers.h” at the beginning of my file project.thanks for your help Juan !
-
AuthorPosts
- You must be logged in to reply to this topic.