home Forums # Technical Support Geting Fatal errors from nmake at 18% build

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1829
    Unknown
    Member

    Im triying to build Fuzzylite 5.0 with the instructions provided in the c++ section (using the build.bat method)

    I have set my enviroment user path to C:\CMake\bin
    I’m using Visual studio 2013 console window on dev mode
    I can test run cmake and nmake so.. they work

    But I always get stuck at 18% triying to build FClImporter.cpp with the error
    No operator found which takes the left hand operand and a bunch of lines containing std::basic_ostream (which makes sense to me since << is used in passing outputs

    It ends up with a NMAKE FATAL error, for cl.exe and nmake.exe

    Maybe I’m overlooking something?

    #1830

    Hi,

    Could you please post some of the error messages?

    If you obtained the ZIP file from the Github repositories, please make sure you downloaded from the master branch. Preferably, you should have downloaded the source code from http://www.fuzzylite.com/downloads .

    #1831
    Unknown
    Member

    FclExporter.cpp
    [ 18%] Building CXX object CMakeFiles/fl-static.dir/src/imex/FclImporter.cpp.obj

    FclImporter.cpp
    G:\fll\fuzzylite-5.0\fuzzylite\src\imex\FclImporter.cpp(536) : error C2678: bina
    ry ‘<<‘ : 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)
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(4
    98): could be ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostre
    am<char,std::char_traits<char>>::operator <<(std::basic_streambuf<char,std::char
    _traits<char>> *)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(4
    78): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostre
    am<char,std::char_traits<char>>::operator <<(const void *)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(4
    58): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostre
    am<char,std::char_traits<char>>::operator <<(long double)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(4
    38): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostre
    am<char,std::char_traits<char>>::operator <<(double)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(4
    18): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostre
    am<char,std::char_traits<char>>::operator <<(float)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(3
    97): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostre
    am<char,std::char_traits<char>>::operator <<(unsigned __int64)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(3
    77): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostre
    am<char,std::char_traits<char>>::operator <<(__int64)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(3
    56): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostre
    am<char,std::char_traits<char>>::operator <<(unsigned long)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(3
    36): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostre
    am<char,std::char_traits<char>>::operator <<(long)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(3
    16): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostre
    am<char,std::char_traits<char>>::operator <<(unsigned int)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(2
    91): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostre
    am<char,std::char_traits<char>>::operator <<(int)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(2
    71): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostre
    am<char,std::char_traits<char>>::operator <<(unsigned short)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(2
    37): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostre
    am<char,std::char_traits<char>>::operator <<(short)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(2
    17): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostre
    am<char,std::char_traits<char>>::operator <<(std::_Bool)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(2
    10): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostre
    am<char,std::char_traits<char>>::operator <<(std::ios_base &(__cdecl *)(std::ios
    _base &))’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(2
    03): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostre
    am<char,std::char_traits<char>>::operator <<(std::basic_ios<char,std::char_trait
    s<char>> &(__cdecl *)(std::basic_ios<char,std::char_traits<char>> &))’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(1
    97): or ‘std::basic_ostream<char,std::char_traits<char>> &std::basic_ostre
    am<char,std::char_traits<char>>::operator <<(std::basic_ostream<char,std::char_t
    raits<char>> &(__cdecl *)(std::basic_ostream<char,std::char_traits<char>> &))’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(6
    99): 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 *)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(7
    46): 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)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(7
    84): 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 *)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(8
    31): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<
    <std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,char)

    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(9
    57): 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 *)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(9
    64): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<
    <std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,signe
    d char)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(9
    71): 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 *)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(9
    78): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<
    <std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,unsig
    ned char)’
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(9
    88): or ‘std::basic_ostream<char,std::char_traits<char>> &std::operator <<
    <char,std::char_traits<char>,std::ostringstream>(std::basic_ostream<char,std::ch
    ar_traits<char>> &&,const _Ty &)’
    with
    [
    _Ty=std::ostringstream
    ]
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(1
    026): 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 &)’
    while trying to match the argument list ‘(std::basic_ostream<char,std::c
    har_traits<char>>, std::ostringstream)’
    NMAKE : fatal error U1077: ‘C:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe’ : return code
    ‘0x2’
    Stop.
    NMAKE : fatal error U1077: ‘”C:\Program Files (x86)\Microsoft Visual Studio 12.0
    \VC\BIN\nmake.exe”‘ : return code ‘0x2’
    Stop.
    NMAKE : fatal error U1077: ‘”C:\Program Files (x86)\Microsoft Visual Studio 12.0
    \VC\BIN\nmake.exe”‘ : return code ‘0x2’
    Stop.

    FINISHED: release
    ****************************************

    FINISHED: all
    ****************************************

    Yes, I’m using the one included in the download section
    Holy… for the quick response

    #1832
    Unknown
    Member

    Got it to compile over Visual studio 12 2013 community edition by using Cmake-gui
    configurated as default and then tweaking a bit the sources

    what did I tweak?

    in imex\FLimporter/cpp there was a call for output range so I added range.str()
    I also had errors saying that min and max were not members of std:: So I just included algorithm

    #include <algorithm> (As far as I know… the min and max for std are defined there)

    And Voilรก it works

    #1833

    Hi Kronox,

    thank you for posting your solution. The range.str() had been added to the repository, but not to the version in the downloads. My bad.

    You mentioned you had to add #include <algorithm> because of std::[min|max], but neither of these methods is used in FclImporter. Where did you add the #include directive?

    Thanks.

    #1834
    Unknown
    Member

    There were two files. Let me recreate the problem from scratch and I’ll report back

    #1835
    Unknown
    Member

    Okay. They were fuzzylite\src\imex\FldExporter.cpp and fuzzylite\src\norm\s\NilpotentMaximum.cpp
    Hope it helps

    Btw where do I find the header file for the library so I can include it on my project? (I already set up the lib and dll on visual studio)

    Edit** Found it in the fl directory lol. I blame night coding

    #1836

    Thank you for your information.

    You can find the fuzzylite header file in fuzzylite/fl/Headers.h, and using #include "fl/Headers.h".

    #1837
    Unknown
    Member

    Haha No, thanks to you my friend. QtFuzzylite and fuzzylite as a whole are great. Quick and easy to understand.
    Way better than other more expensive commercial tools. I’m glad a bought the license. I’m having loads of fun toying with weird (but functionals) fuzzy controllers hehe

    #1838

    :). Thank you for your kind words and for your support. I am glad you are finding it useful.

    Cheers.

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