home Forums # Technical Support Fuzzylite on VS 2012 does not compile

Tagged: 

This topic contains 24 replies, has 4 voices, and was last updated by  Ehtiba69 1 year, 3 months ago.

Viewing 15 posts - 1 through 15 (of 25 total)
  • Author
    Posts
  • #949

    manishak
    Participant

    Hi All,

    I want use fuzzylite in VS 2012 on Win7 OS. I followed the same step as given in below link :
    http://stackoverflow.com/questions/17339500/using-fuzzylite-in-visual-studio-2010

    but it gives error. Error – ” No object file generated”

    Using Cmake to compile source code of fuzzylite, it generates sln files properly. But after compiling the solution it gives error. Please help.

    Thanks

    #950
    Juan Rada-Vilela
    Juan Rada-Vilela
    Keymaster

    Hi Manishak,

    Thank you for your email reporting the issue.

    I have tried to “Build Solution” in Visual Studio 2010 and I was not able to compile either. The problem is that a warning is raised during compile time and warnings are treated as errors in order to have clean builds. The warning code is C4702, which happens due to unreachable code (e.g. code after a return statement) that I use for tests.

    Please, add in file fl/fuzzylite.h the following line within the #ifdef FL_WINDOWS (together with the other #pragmas):

    #pragma warning(disable:4702) //Ignore unreachable code

    I was able to compile after this.

    Please, let me know if this solves your issue.

    Cheers.

    #952

    manishak
    Participant

    Hi Juan Rada-Vilela,

    your guidance really helped me to solve the issue. but now i’mm facing another issue where-in it gives linker error :

    error LNK1104: cannot open file ‘bin\Debug\fuzzylite-dbg.lib’

    but it is able to generate .dll and .dbg.lib file in bin folder

    Solution has 5 projects
    1. All builds – compiles without error
    2. fl-bin – gives above error
    3. fl-shared – compiles without error
    4. fl-static – compiles without error
    5. INSTALL – compiles without error

    thanks,

    #953
    Juan Rada-Vilela
    Juan Rada-Vilela
    Keymaster

    Hi,

    can you please check the information in http://msdn.microsoft.com/en-us/library/ts7eyw4s.aspx regarding the LNK1104 error?

    Considering the information from the page above, I believe if fl-bin is failing it might be because it cannot find the shared library. Can you please make sure that the fuzzylite.dll is within access of the result of fl-bin? You may try to copy fuzzylite.dll into the same folder of the final executable file.

    Cheers

    #969

    manishak
    Participant

    Thanks Juan Rada-Vilela .. it is compiling without any error.. also generates the dll file.

    #1423

    ansi.vict
    Participant

    Please me me to solve the same error pleaseeeee. I have done everything while when i build it it shows Build: 2 succeeded, 3 failed, 0 up-to-date, 1 skipped

    #1426
    Juan Rada-Vilela
    Juan Rada-Vilela
    Keymaster

    Hi ansi.vict,

    unless you post the errors you are having, it is really hard for me to help you. FuzzyLite compiles just fine on my standard Windows/Linux/Mac box.

    #1427

    ansi.vict
    Participant

    these are my errors

    1>—— Build started: Project: ZERO_CHECK, Configuration: Debug x64 ——
    1>Build started 05-09-2014 17:36:19.
    1>InitializeBuildStatus:
    1> Creating “x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild” because “AlwaysCreate” was specified.
    1>FinalizeBuildStatus:
    1> Deleting file “x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild”.
    1> Touching “x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate”.
    1>
    1>Build succeeded.
    1>
    1>Time Elapsed 00:00:00.19
    2>—— Build started: Project: fl-static, Configuration: Debug x64 ——
    3>—— Build started: Project: fl-shared, Configuration: Debug x64 ——
    2>Build started 05-09-2014 17:36:20.
    2>InitializeBuildStatus:
    2> Touching “fl-static.dir\Debug\fl-static.tlog\unsuccessfulbuild”.
    2>CustomBuild:
    2> All outputs are up-to-date.
    3>Build started 05-09-2014 17:36:20.
    3>InitializeBuildStatus:
    3> Touching “fl-shared.dir\Debug\fl-shared.tlog\unsuccessfulbuild”.
    3>CustomBuild:
    3> All outputs are up-to-date.
    2>ClCompile:
    2> Console.cpp
    3>ClCompile:
    3> Console.cpp
    2>src\Console.cpp(348): error C2220: warning treated as error – no ‘object’ file generated
    2>src\Console.cpp(348): warning C4267: ‘argument’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    3>src\Console.cpp(348): error C2220: warning treated as error – no ‘object’ file generated
    3>src\Console.cpp(348): warning C4267: ‘argument’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    2> Bisector.cpp
    3> Bisector.cpp
    2> Engine.cpp
    3> Engine.cpp
    2>src\Engine.cpp(542): error C2220: warning treated as error – no ‘object’ file generated
    2>src\Engine.cpp(542): warning C4267: ‘return’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    2>src\Engine.cpp(613): warning C4267: ‘return’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    2>src\Engine.cpp(683): warning C4267: ‘return’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    3>src\Engine.cpp(542): error C2220: warning treated as error – no ‘object’ file generated
    3>src\Engine.cpp(542): warning C4267: ‘return’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    3>src\Engine.cpp(613): warning C4267: ‘return’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    3>src\Engine.cpp(683): warning C4267: ‘return’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    2> Exception.cpp
    3> Exception.cpp
    2> TNormFactory.cpp
    3> TNormFactory.cpp
    2> CppExporter.cpp
    3> CppExporter.cpp
    2>src\imex\CppExporter.cpp(77): error C2220: warning treated as error – no ‘object’ file generated
    2>src\imex\CppExporter.cpp(77): warning C4244: ‘initializing’ : conversion from ‘__int64’ to ‘int’, possible loss of data
    2>src\imex\CppExporter.cpp(99): warning C4244: ‘initializing’ : conversion from ‘__int64’ to ‘int’, possible loss of data
    2>src\imex\CppExporter.cpp(131): warning C4244: ‘initializing’ : conversion from ‘__int64’ to ‘int’, possible loss of data
    2> Exporter.cpp
    3>src\imex\CppExporter.cpp(77): error C2220: warning treated as error – no ‘object’ file generated
    3>src\imex\CppExporter.cpp(77): warning C4244: ‘initializing’ : conversion from ‘__int64’ to ‘int’, possible loss of data
    3>src\imex\CppExporter.cpp(99): warning C4244: ‘initializing’ : conversion from ‘__int64’ to ‘int’, possible loss of data
    3>src\imex\CppExporter.cpp(131): warning C4244: ‘initializing’ : conversion from ‘__int64’ to ‘int’, possible loss of data
    3> Exporter.cpp
    2> FclExporter.cpp
    3> FclExporter.cpp
    2>src\imex\FclExporter.cpp(191): error C2220: warning treated as error – no ‘object’ file generated
    2>src\imex\FclExporter.cpp(191): warning C4267: ‘argument’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    2>src\imex\FclExporter.cpp(192): warning C4267: ‘argument’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    2> FclImporter.cpp
    3>src\imex\FclExporter.cpp(191): error C2220: warning treated as error – no ‘object’ file generated
    3>src\imex\FclExporter.cpp(191): warning C4267: ‘argument’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    3>src\imex\FclExporter.cpp(192): warning C4267: ‘argument’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    2>src\imex\FclImporter.cpp(534): error C2678: binary ‘<<‘ : no operator found which takes a left-hand operand of type ‘std::basic_ostream<char,std::char_traits<char>>’ (or there is no acceptable conversion)
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(498): could be ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::basic_streambuf<char,std::char_traits<char>> *)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(478): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(const void *)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(458): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(long double)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(438): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(double)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(418): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(float)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(397): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned __int64)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(377): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(__int64)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(356): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned long)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(336): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(long)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(316): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned int)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(291): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(int)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(271): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned short)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(237): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(short)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(217): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::_Bool)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(210): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(203): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::basic_ios<char,std::char_traits<char>> &(__cdecl *)(std::basic_ios<char,std::char_traits<char>> &))’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(197): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::basic_ostream<char,std::char_traits<char>> &(__cdecl *)(std::basic_ostream<char,std::char_traits<char>> &))’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(699): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const char *)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(746): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,char)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(784): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const char *)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(831): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,char)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(957): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const signed char *)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(964): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,signed char)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(971): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const unsigned char *)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(978): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,unsigned char)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(988): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<char,std::char_traits<char>,std::ostringstream>(std::basic_ostream<char,std::char_traits<char>> &&,const _Ty &)’
    2> with
    2> [
    2> _Ty=std::ostringstream
    2> ]
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(1026): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const std::error_code &)’
    2> while trying to match the argument list ‘(std::basic_ostream<char,std::char_traits<char>>, std::ostringstream)’
    2> FisExporter.cpp
    3> FclImporter.cpp
    3>src\imex\FclImporter.cpp(534): error C2678: binary ‘<<‘ : no operator found which takes a left-hand operand of type ‘std::basic_ostream<char,std::char_traits<char>>’ (or there is no acceptable conversion)
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(498): could be ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::basic_streambuf<char,std::char_traits<char>> *)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(478): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(const void *)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(458): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(long double)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(438): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(double)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(418): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(float)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(397): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned __int64)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(377): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(__int64)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(356): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned long)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(336): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(long)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(316): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned int)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(291): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(int)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(271): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned short)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(237): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(short)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(217): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::_Bool)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(210): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(203): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::basic_ios<char,std::char_traits<char>> &(__cdecl *)(std::basic_ios<char,std::char_traits<char>> &))’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(197): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::basic_ostream<char,std::char_traits<char>> &(__cdecl *)(std::basic_ostream<char,std::char_traits<char>> &))’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(699): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const char *)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(746): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,char)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(784): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const char *)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(831): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,char)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(957): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const signed char *)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(964): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,signed char)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(971): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const unsigned char *)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(978): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,unsigned char)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(988): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<char,std::char_traits<char>,std::ostringstream>(std::basic_ostream<char,std::char_traits<char>> &&,const _Ty &)’
    3> with
    3> [
    3> _Ty=std::ostringstream
    3> ]
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(1026): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const std::error_code &)’
    3> while trying to match the argument list ‘(std::basic_ostream<char,std::char_traits<char>>, std::ostringstream)’
    3> FisExporter.cpp
    2> FisImporter.cpp
    2>src\imex\FisImporter.cpp(255): error C2220: warning treated as error – no ‘object’ file generated
    2>src\imex\FisImporter.cpp(255): warning C4267: ‘argument’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    2>src\imex\FisImporter.cpp(257): warning C4267: ‘argument’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    2>src\imex\FisImporter.cpp(265): warning C4267: ‘argument’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    2>src\imex\FisImporter.cpp(267): warning C4267: ‘argument’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    2> FldExporter.cpp
    3> FisImporter.cpp
    2>src\imex\FldExporter.cpp(171): error C2039: ‘max’ : is not a member of ‘std’
    2>src\imex\FldExporter.cpp(171): error C3861: ‘max’: identifier not found
    2>src\imex\FldExporter.cpp(188): error C2039: ‘max’ : is not a member of ‘std’
    2>src\imex\FldExporter.cpp(188): error C3861: ‘max’: identifier not found
    2> FllExporter.cpp
    3>src\imex\FisImporter.cpp(255): error C2220: warning treated as error – no ‘object’ file generated
    3>src\imex\FisImporter.cpp(255): warning C4267: ‘argument’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    3>src\imex\FisImporter.cpp(257): warning C4267: ‘argument’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    3>src\imex\FisImporter.cpp(265): warning C4267: ‘argument’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    3>src\imex\FisImporter.cpp(267): warning C4267: ‘argument’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    3> FldExporter.cpp
    2> FllImporter.cpp
    3>src\imex\FldExporter.cpp(171): error C2039: ‘max’ : is not a member of ‘std’
    3>src\imex\FldExporter.cpp(171): error C3861: ‘max’: identifier not found
    3>src\imex\FldExporter.cpp(188): error C2039: ‘max’ : is not a member of ‘std’
    3>src\imex\FldExporter.cpp(188): error C3861: ‘max’: identifier not found
    3> FllExporter.cpp
    2>src\imex\FllImporter.cpp(292): error C2220: warning treated as error – no ‘object’ file generated
    2>src\imex\FllImporter.cpp(292): warning C4267: ‘initializing’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    2> Importer.cpp
    3> FllImporter.cpp
    2> JavaExporter.cpp
    3>src\imex\FllImporter.cpp(292): error C2220: warning treated as error – no ‘object’ file generated
    3>src\imex\FllImporter.cpp(292): warning C4267: ‘initializing’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    2>src\imex\JavaExporter.cpp(70): error C2220: warning treated as error – no ‘object’ file generated
    2>src\imex\JavaExporter.cpp(70): warning C4244: ‘initializing’ : conversion from ‘__int64’ to ‘int’, possible loss of data
    2>src\imex\JavaExporter.cpp(94): warning C4244: ‘initializing’ : conversion from ‘__int64’ to ‘int’, possible loss of data
    2>src\imex\JavaExporter.cpp(127): warning C4244: ‘initializing’ : conversion from ‘__int64’ to ‘int’, possible loss of data
    2> main.cpp
    3> Importer.cpp
    3> JavaExporter.cpp
    2> AlgebraicSum.cpp
    3>src\imex\JavaExporter.cpp(70): error C2220: warning treated as error – no ‘object’ file generated
    3>src\imex\JavaExporter.cpp(70): warning C4244: ‘initializing’ : conversion from ‘__int64’ to ‘int’, possible loss of data
    3>src\imex\JavaExporter.cpp(94): warning C4244: ‘initializing’ : conversion from ‘__int64’ to ‘int’, possible loss of data
    3>src\imex\JavaExporter.cpp(127): warning C4244: ‘initializing’ : conversion from ‘__int64’ to ‘int’, possible loss of data
    2> NilpotentMaximum.cpp
    3> main.cpp
    2>src\norm\s\NilpotentMaximum.cpp(35): error C2039: ‘max’ : is not a member of ‘std’
    2>src\norm\s\NilpotentMaximum.cpp(35): error C3861: ‘max’: identifier not found
    2> NormalizedSum.cpp
    2> Generating Code…
    2> Compiling…
    2> Operation.cpp
    3> AlgebraicSum.cpp
    2>src\Operation.cpp(297): error C2220: warning treated as error – no ‘object’ file generated
    2>src\Operation.cpp(297): warning C4267: ‘initializing’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    3> NilpotentMaximum.cpp
    2> Antecedent.cpp
    3>src\norm\s\NilpotentMaximum.cpp(35): error C2039: ‘max’ : is not a member of ‘std’
    3>src\norm\s\NilpotentMaximum.cpp(35): error C3861: ‘max’: identifier not found
    3> NormalizedSum.cpp
    2> RuleBlock.cpp
    3> Generating Code…
    2>src\rule\RuleBlock.cpp(194): error C2220: warning treated as error – no ‘object’ file generated
    2>src\rule\RuleBlock.cpp(194): warning C4267: ‘return’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    2> Rule.cpp
    3> Compiling…
    3> Operation.cpp
    2>src\rule\Rule.cpp(126): error C2220: warning treated as error – no ‘object’ file generated
    2>src\rule\Rule.cpp(126): warning C4267: ‘return’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    3>src\Operation.cpp(297): error C2220: warning treated as error – no ‘object’ file generated
    3>src\Operation.cpp(297): warning C4267: ‘initializing’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    2> Accumulated.cpp
    3> Antecedent.cpp
    2>src\term\Accumulated.cpp(204): error C2220: warning treated as error – no ‘object’ file generated
    2>src\term\Accumulated.cpp(204): warning C4267: ‘return’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    2> Activated.cpp
    3> RuleBlock.cpp
    2> Discrete.cpp
    3>src\rule\RuleBlock.cpp(194): error C2220: warning treated as error – no ‘object’ file generated
    3>src\rule\RuleBlock.cpp(194): warning C4267: ‘return’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    2>src\term\Discrete.cpp(64): error C2220: warning treated as error – no ‘object’ file generated
    2>src\term\Discrete.cpp(64): warning C4267: ‘=’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    2>src\term\Discrete.cpp(68): warning C4267: ‘=’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    2>src\term\Discrete.cpp(72): warning C4267: ‘=’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    3> Rule.cpp
    2> Function.cpp
    3>src\rule\Rule.cpp(126): error C2220: warning treated as error – no ‘object’ file generated
    3>src\rule\Rule.cpp(126): warning C4267: ‘return’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    3> Accumulated.cpp
    2> Variable.cpp
    3>src\term\Accumulated.cpp(204): error C2220: warning treated as error – no ‘object’ file generated
    3>src\term\Accumulated.cpp(204): warning C4267: ‘return’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    3> Activated.cpp
    2>src\variable\Variable.cpp(228): error C2220: warning treated as error – no ‘object’ file generated
    2>src\variable\Variable.cpp(228): warning C4267: ‘return’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    2> Generating Code…
    3> Discrete.cpp
    3>src\term\Discrete.cpp(64): error C2220: warning treated as error – no ‘object’ file generated
    3>src\term\Discrete.cpp(64): warning C4267: ‘=’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    3>src\term\Discrete.cpp(68): warning C4267: ‘=’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    3>src\term\Discrete.cpp(72): warning C4267: ‘=’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    3> Function.cpp
    2>
    2>Build FAILED.
    2>
    2>Time Elapsed 00:00:30.76
    4>—— Build started: Project: fl-bin, Configuration: Debug x64 ——
    4>Build started 05-09-2014 17:36:51.
    4>InitializeBuildStatus:
    4> Touching “fl-bin.dir\Debug\fl-bin.tlog\unsuccessfulbuild”.
    4>CustomBuild:
    4> All outputs are up-to-date.
    4>ClCompile:
    4> All outputs are up-to-date.
    4> main.cpp
    3> Variable.cpp
    3>src\variable\Variable.cpp(228): error C2220: warning treated as error – no ‘object’ file generated
    3>src\variable\Variable.cpp(228): warning C4267: ‘return’ : conversion from ‘size_t’ to ‘int’, possible loss of data
    3> Generating Code…
    4>LINK : fatal error LNK1104: cannot open file ‘bin\Debug\fuzzylite-staticd.lib’
    4>
    4>Build FAILED.
    4>
    4>Time Elapsed 00:00:02.11
    3>
    3>Build FAILED.
    3>
    3>Time Elapsed 00:00:33.84
    5>—— Build started: Project: ALL_BUILD, Configuration: Debug x64 ——
    5>Build started 05-09-2014 17:36:54.
    5>InitializeBuildStatus:
    5> Creating “x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild” because “AlwaysCreate” was specified.
    5>CustomBuild:
    5> Build all projects
    5>FinalizeBuildStatus:
    5> Deleting file “x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild”.
    5> Touching “x64\Debug\ALL_BUILD\ALL_BUILD.tlog\ALL_BUILD.lastbuildstate”.
    5>
    5>Build succeeded.
    5>
    5>Time Elapsed 00:00:00.31
    6>—— Skipped Build: Project: INSTALL, Configuration: Debug x64 ——
    6>Project not selected to build for this solution configuration
    ========== Build: 2 succeeded, 3 failed, 0 up-to-date, 1 skipped ==========

    #1428

    ansi.vict
    Participant

    Juan After running with Cmake. what should i do please tel me the process.

    #1430
    Juan Rada-Vilela
    Juan Rada-Vilela
    Keymaster

    Hi,

    thank you very much for posting your error message. At the moment, I am not able to build fuzzylite in 64bit as I do not have a computer able to run something greater than Windows XP.
    A quick (and dirty) workaround would be to disable the warnings being treated as errors by modifying the build script and removing the /Wx /W4 from the CMakeLists.txt in line (somewhere around) #80:

    if(WIN32)
    set(CMAKE_CXX_FLAGS “/WX /W4 /EHsc”)

    Could you please try and let me know?

    #1431

    ansi.vict
    Participant

    Sorry juan I’m still getting the error. I have done the changes but it still showing error. Please tell me the procedure after CMake execution

    1>—— Build started: Project: ZERO_CHECK, Configuration: Debug x64 ——
    1>Build started 05-09-2014 18:05:18.
    1>InitializeBuildStatus:
    1> Creating “x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild” because “AlwaysCreate” was specified.
    1>CustomBuild:
    1> Checking Build System
    1> CMake is re-running because E:/software/fuzzylite-5.0-win32/fuzzylite-5.0/sources/fuzzylite-5.0/fuzzylite/CMakeFiles/generate.stamp is out-of-date.
    1> the file ‘E:/software/fuzzylite-5.0-win32/fuzzylite-5.0/sources/fuzzylite-5.0/fuzzylite/CMakeLists.txt’
    1> is newer than ‘E:/software/fuzzylite-5.0-win32/fuzzylite-5.0/sources/fuzzylite-5.0/fuzzylite/CMakeFiles/generate.stamp.depend’
    1> result=’-1′
    1> Windows
    1>
    1> =====================================
    1> fuzzylite v.5.0b1408
    1>
    1> FL_USE_FLOAT=OFF
    1> FL_BACKTRACE=OFF
    1> FL_CPP11=OFF
    1> Build=
    1> =====================================
    1>
    1> — Configuring done
    1> — Generating done
    1> — Build files have been written to: E:/software/fuzzylite-5.0-win32/fuzzylite-5.0/sources/fuzzylite-5.0/fuzzylite
    1>FinalizeBuildStatus:
    1> Deleting file “x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild”.
    1> Touching “x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate”.
    1>
    1>Build succeeded.
    1>
    1>Time Elapsed 00:00:01.04
    2>—— Build started: Project: fl-static, Configuration: Debug x64 ——
    3>—— Build started: Project: fl-shared, Configuration: Debug x64 ——
    2>Build started 05-09-2014 18:05:19.
    3>Build started 05-09-2014 18:05:19.
    2>InitializeBuildStatus:
    2> Touching “fl-static.dir\Debug\fl-static.tlog\unsuccessfulbuild”.
    2>CustomBuild:
    2> All outputs are up-to-date.
    3>InitializeBuildStatus:
    3> Touching “fl-shared.dir\Debug\fl-shared.tlog\unsuccessfulbuild”.
    3>CustomBuild:
    3> All outputs are up-to-date.
    3>ClCompile:
    3> Console.cpp
    2>ClCompile:
    2> Console.cpp
    2> Bisector.cpp
    3> Bisector.cpp
    2> Centroid.cpp
    3> Centroid.cpp
    2> IntegralDefuzzifier.cpp
    3> IntegralDefuzzifier.cpp
    2> LargestOfMaximum.cpp
    3> LargestOfMaximum.cpp
    2> MeanOfMaximum.cpp
    3> MeanOfMaximum.cpp
    2> SmallestOfMaximum.cpp
    3> SmallestOfMaximum.cpp
    2> WeightedAverage.cpp
    3> WeightedAverage.cpp
    2> WeightedDefuzzifier.cpp
    3> WeightedDefuzzifier.cpp
    2> WeightedSum.cpp
    3> WeightedSum.cpp
    2> Engine.cpp
    3> Engine.cpp
    2> Exception.cpp
    3> Exception.cpp
    2> CloningFactory.cpp
    3> CloningFactory.cpp
    2> ConstructionFactory.cpp
    3> ConstructionFactory.cpp
    2> DefuzzifierFactory.cpp
    3> DefuzzifierFactory.cpp
    2> FactoryManager.cpp
    3> FactoryManager.cpp
    2> FunctionFactory.cpp
    3> FunctionFactory.cpp
    2> HedgeFactory.cpp
    3> HedgeFactory.cpp
    2> SNormFactory.cpp
    3> SNormFactory.cpp
    2> TermFactory.cpp
    3> TermFactory.cpp
    2> Generating Code…
    3> Generating Code…
    2> Compiling…
    2> TNormFactory.cpp
    2> fuzzylite.cpp
    3> Compiling…
    3> TNormFactory.cpp
    2> Any.cpp
    3> fuzzylite.cpp
    2> Extremely.cpp
    3> Any.cpp
    2> Not.cpp
    3> Extremely.cpp
    2> Seldom.cpp
    3> Not.cpp
    2> Somewhat.cpp
    3> Seldom.cpp
    2> Very.cpp
    3> Somewhat.cpp
    2> CppExporter.cpp
    3> Very.cpp
    3> CppExporter.cpp
    2> Exporter.cpp
    2> FclExporter.cpp
    3> Exporter.cpp
    3> FclExporter.cpp
    2> FclImporter.cpp
    2>src\imex\FclImporter.cpp(534): error C2678: binary ‘<<‘ : no operator found which takes a left-hand operand of type ‘std::basic_ostream<char,std::char_traits<char>>’ (or there is no acceptable conversion)
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(498): could be ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::basic_streambuf<char,std::char_traits<char>> *)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(478): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(const void *)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(458): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(long double)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(438): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(double)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(418): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(float)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(397): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned __int64)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(377): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(__int64)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(356): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned long)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(336): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(long)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(316): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned int)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(291): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(int)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(271): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned short)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(237): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(short)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(217): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::_Bool)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(210): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(203): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::basic_ios<char,std::char_traits<char>> &(__cdecl *)(std::basic_ios<char,std::char_traits<char>> &))’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(197): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::basic_ostream<char,std::char_traits<char>> &(__cdecl *)(std::basic_ostream<char,std::char_traits<char>> &))’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(699): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const char *)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(746): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,char)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(784): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const char *)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(831): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,char)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(957): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const signed char *)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(964): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,signed char)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(971): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const unsigned char *)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(978): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,unsigned char)’
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(988): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<char,std::char_traits<char>,std::ostringstream>(std::basic_ostream<char,std::char_traits<char>> &&,const _Ty &)’
    2> with
    2> [
    2> _Ty=std::ostringstream
    2> ]
    2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(1026): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const std::error_code &)’
    2> while trying to match the argument list ‘(std::basic_ostream<char,std::char_traits<char>>, std::ostringstream)’
    2> FisExporter.cpp
    3> FclImporter.cpp
    3>src\imex\FclImporter.cpp(534): error C2678: binary ‘<<‘ : no operator found which takes a left-hand operand of type ‘std::basic_ostream<char,std::char_traits<char>>’ (or there is no acceptable conversion)
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(498): could be ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::basic_streambuf<char,std::char_traits<char>> *)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(478): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(const void *)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(458): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(long double)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(438): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(double)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(418): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(float)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(397): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned __int64)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(377): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(__int64)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(356): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned long)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(336): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(long)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(316): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned int)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(291): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(int)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(271): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned short)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(237): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(short)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(217): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::_Bool)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(210): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(203): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::basic_ios<char,std::char_traits<char>> &(__cdecl *)(std::basic_ios<char,std::char_traits<char>> &))’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(197): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(std::basic_ostream<char,std::char_traits<char>> &(__cdecl *)(std::basic_ostream<char,std::char_traits<char>> &))’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(699): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const char *)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(746): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,char)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(784): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const char *)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(831): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,char)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(957): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const signed char *)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(964): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,signed char)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(971): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const unsigned char *)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(978): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,unsigned char)’
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(988): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<char,std::char_traits<char>,std::ostringstream>(std::basic_ostream<char,std::char_traits<char>> &&,const _Ty &)’
    3> with
    3> [
    3> _Ty=std::ostringstream
    3> ]
    3> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream(1026): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const std::error_code &)’
    3> while trying to match the argument list ‘(std::basic_ostream<char,std::char_traits<char>>, std::ostringstream)’
    2> FisImporter.cpp
    3> FisExporter.cpp
    2> FldExporter.cpp
    3> FisImporter.cpp
    2>src\imex\FldExporter.cpp(171): error C2039: ‘max’ : is not a member of ‘std’
    2>src\imex\FldExporter.cpp(171): error C3861: ‘max’: identifier not found
    2>src\imex\FldExporter.cpp(188): error C2039: ‘max’ : is not a member of ‘std’
    2>src\imex\FldExporter.cpp(188): error C3861: ‘max’: identifier not found
    2> FllExporter.cpp
    2> FllImporter.cpp
    3> FldExporter.cpp
    3>src\imex\FldExporter.cpp(171): error C2039: ‘max’ : is not a member of ‘std’
    3>src\imex\FldExporter.cpp(171): error C3861: ‘max’: identifier not found
    3>src\imex\FldExporter.cpp(188): error C2039: ‘max’ : is not a member of ‘std’
    3>src\imex\FldExporter.cpp(188): error C3861: ‘max’: identifier not found
    3> FllExporter.cpp
    2> Importer.cpp
    2> JavaExporter.cpp
    3> FllImporter.cpp
    2> main.cpp
    3> Importer.cpp
    3> JavaExporter.cpp
    2> Generating Code…
    2> Compiling…
    2> AlgebraicSum.cpp
    3> main.cpp
    2> BoundedSum.cpp
    2> DrasticSum.cpp
    3> Generating Code…
    2> EinsteinSum.cpp
    2> HamacherSum.cpp
    2> Maximum.cpp
    3> Compiling…
    3> AlgebraicSum.cpp
    2> NilpotentMaximum.cpp
    3> BoundedSum.cpp
    2>src\norm\s\NilpotentMaximum.cpp(35): error C2039: ‘max’ : is not a member of ‘std’
    2>src\norm\s\NilpotentMaximum.cpp(35): error C3861: ‘max’: identifier not found
    2> NormalizedSum.cpp
    3> DrasticSum.cpp
    2> AlgebraicProduct.cpp
    3> EinsteinSum.cpp
    2> BoundedDifference.cpp
    3> HamacherSum.cpp
    2> DrasticProduct.cpp
    3> Maximum.cpp
    2> EinsteinProduct.cpp
    3> NilpotentMaximum.cpp
    2> HamacherProduct.cpp
    3>src\norm\s\NilpotentMaximum.cpp(35): error C2039: ‘max’ : is not a member of ‘std’
    3>src\norm\s\NilpotentMaximum.cpp(35): error C3861: ‘max’: identifier not found
    3> NormalizedSum.cpp
    2> Minimum.cpp
    3> AlgebraicProduct.cpp
    2> NilpotentMinimum.cpp
    3> BoundedDifference.cpp
    2> Operation.cpp
    3> DrasticProduct.cpp
    2> Antecedent.cpp
    3> EinsteinProduct.cpp
    3> HamacherProduct.cpp
    2> Consequent.cpp
    3> Minimum.cpp
    2> Expression.cpp
    3> NilpotentMinimum.cpp
    2> RuleBlock.cpp
    3> Operation.cpp
    2> Generating Code…
    3> Antecedent.cpp
    2> Compiling…
    2> Rule.cpp
    3> Consequent.cpp
    2> Accumulated.cpp
    3> Expression.cpp
    2> Activated.cpp
    3> RuleBlock.cpp
    2> Bell.cpp
    3> Generating Code…
    2> Concave.cpp
    2> Constant.cpp
    3> Compiling…
    3> Rule.cpp
    2> Cosine.cpp
    3> Accumulated.cpp
    2> Discrete.cpp
    3> Activated.cpp
    2> Function.cpp
    3> Bell.cpp
    3> Concave.cpp
    2> Gaussian.cpp
    3> Constant.cpp
    2> GaussianProduct.cpp
    3> Cosine.cpp
    2> Linear.cpp
    3> Discrete.cpp
    2> PiShape.cpp
    3> Function.cpp
    2> Ramp.cpp
    2> Rectangle.cpp
    3> Gaussian.cpp
    2> Sigmoid.cpp
    3> GaussianProduct.cpp
    2> SigmoidDifference.cpp
    3> Linear.cpp
    2> SigmoidProduct.cpp
    3> PiShape.cpp
    2> Spike.cpp
    3> Ramp.cpp
    2> SShape.cpp
    3> Rectangle.cpp
    2> Generating Code…
    3> Sigmoid.cpp
    2> Compiling…
    2> Term.cpp
    3> SigmoidDifference.cpp
    2> Trapezoid.cpp
    3> SigmoidProduct.cpp
    2> Triangle.cpp
    3> Spike.cpp
    2> ZShape.cpp
    3> SShape.cpp
    2> InputVariable.cpp
    3> Generating Code…
    2> OutputVariable.cpp
    3> Compiling…
    3> Term.cpp
    2> Variable.cpp
    3> Trapezoid.cpp
    2> Generating Code…
    3> Triangle.cpp
    3> ZShape.cpp
    3> InputVariable.cpp
    3> OutputVariable.cpp
    3> Variable.cpp
    2>
    2>Build FAILED.
    2>
    2>Time Elapsed 00:01:28.52
    4>—— Build started: Project: fl-bin, Configuration: Debug x64 ——
    4>Build started 05-09-2014 18:06:48.
    4>InitializeBuildStatus:
    4> Touching “fl-bin.dir\Debug\fl-bin.tlog\unsuccessfulbuild”.
    4>CustomBuild:
    4> All outputs are up-to-date.
    4>ClCompile:
    4> All outputs are up-to-date.
    4> main.cpp
    3> Generating Code…
    4>LINK : fatal error LNK1104: cannot open file ‘bin\Debug\fuzzylite-staticd.lib’
    4>
    4>Build FAILED.
    4>
    4>Time Elapsed 00:00:02.03
    3>
    3>Build FAILED.
    3>
    3>Time Elapsed 00:01:32.47
    5>—— Build started: Project: ALL_BUILD, Configuration: Debug x64 ——
    5>Build started 05-09-2014 18:06:52.
    5>InitializeBuildStatus:
    5> Creating “x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild” because “AlwaysCreate” was specified.
    5>CustomBuild:
    5> Build all projects
    5>FinalizeBuildStatus:
    5> Deleting file “x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild”.
    5> Touching “x64\Debug\ALL_BUILD\ALL_BUILD.tlog\ALL_BUILD.lastbuildstate”.
    5>
    5>Build succeeded.
    5>
    5>Time Elapsed 00:00:00.22
    6>—— Skipped Build: Project: INSTALL, Configuration: Debug x64 ——
    6>Project not selected to build for this solution configuration
    ========== Build: 2 succeeded, 3 failed, 0 up-to-date, 1 skipped ==========

    #1432
    Juan Rada-Vilela
    Juan Rada-Vilela
    Keymaster

    Hi,

    Can you please add #include <algorithm> to NilpotentMaximum.cpp and FldExporter.cpp where the other headers are included?

    #1433

    ansi.vict
    Participant

    Sorry juan Can you explain me the full process from the first. please I’m getting more error. I did the changes what you have told me, but still I’m getting errors. Tell me the process from the first. I have downloaded fuzzylite 5.0 and i have CMAKE 3.0 . I want to use it in Visual studio 2012

    #1434
    Juan Rada-Vilela
    Juan Rada-Vilela
    Keymaster

    Hi ansi.vict,

    I am sorry that you are having trouble building fuzzylite in Windows using Visual Studio. In my virtual box of Windows XP, fuzzylite builds just fine. I do not have a computer with a greater version of Windows, so at the moment it is not possible for me to build in such an environment.

    Could you please create a new directory, extract again the sources from the downloaded file (without any modifications), and just run the build script included (i.e. build.bat)? This will build fuzzylite from console instead of Visual Studio. You can later configure your own VS project to include and link fuzzylite libraries.

    #1437

    ansi.vict
    Participant

    Hai juan I am able to run the .bat file. it has been executed successfully. What Should I do after that? where I can find the fuzzylite.lib ?? Should i use CMake ???

Viewing 15 posts - 1 through 15 (of 25 total)

You must be logged in to reply to this topic.