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

#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!!!