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

Tagged: 

Viewing 10 posts - 1 through 10 (of 25 total)
  • Author
    Posts
  • #949
    Avatarmanishak
    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

    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
    Avatarmanishak
    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

    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
    Avatarmanishak
    Participant

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

    #1423
    Avataransi.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

    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
    Avataransi.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
    Avataransi.vict
    Participant

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

    #1430

    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?

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