Giter Club home page Giter Club logo

libnpa's Issues

libnpa 0.5.0 fails to build

  • Configuring libnpa version 0.5.0

-- The CXX compiler identification is GNU 6.2.1

-- Check for working CXX compiler: /usr/bin/c++

-- Check for working CXX compiler: /usr/bin/c++ -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Detecting CXX compile features

-- Detecting CXX compile features - done

-- Boost version: 1.61.0

-- Found the following Boost libraries:

-- system

-- locale

-- filesystem

-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.8")

-- Found FLEX: /usr/bin/flex (found version "2.6.1")

-- Found BISON: /usr/bin/bison (found version "3.0.4")

-- Configuring done

-- Generating done

-- Build files have been written to: /tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0

[ 5%] [FLEX][lexer] Building scanner with flex 2.6.1

[ 11%] [BISON][parser] Building parser with bison 3.0.4

/tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/parser.y: warning: 176 shift/reduce conflicts [-Wconflicts-sr]

Scanning dependencies of target npa

[ 16%] Building CXX object CMakeFiles/npa.dir/src/inpafile.cpp.o

[ 22%] Building CXX object CMakeFiles/npa.dir/src/npafile.cpp.o

[ 27%] Building CXX object CMakeFiles/npa.dir/src/nsbmagic.cpp.o

[ 33%] Building CXX object CMakeFiles/npa.dir/src/onpafile.cpp.o

[ 38%] Building CXX object CMakeFiles/npa.dir/src/scriptfile.cpp.o

[ 44%] Building CXX object CMakeFiles/npa.dir/src/exefile.cpp.o

[ 50%] Building CXX object CMakeFiles/npa.dir/src/fscommon.cpp.o

/tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp: In function ‘char* fs::ReadFile(const string&, uint32_t&)’:

/tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp:11:5: error: reference to ‘ifstream’ is ambiguous

 ifstream File(Filename, ios::binary);

 ^~~~~~~~

In file included from /usr/include/boost/filesystem/string_file.hpp:14:0,

             from /usr/include/boost/filesystem.hpp:19,

             from /tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp:3:

/usr/include/boost/filesystem/fstream.hpp:169:32: note: candidates are: typedef class boost::filesystem::basic_ifstream boost::filesystem::ifstream

typedef basic_ifstream ifstream;

                            ^~~~~~~~

In file included from /usr/include/c++/6.2.1/bits/localefwd.h:41:0,

             from /usr/include/c++/6.2.1/string:43,

             from /tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/include/fscommon.hpp:4,

             from /tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp:1:

/usr/include/c++/6.2.1/iosfwd:162:34: note: typedef class std::basic_ifstream std::ifstream

typedef basic_ifstream ifstream;

                              ^~~~~~~~

/tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp:12:10: error: ‘File’ was not declared in this scope

 if (!File)

      ^~~~

/tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp:15:5: error: ‘File’ was not declared in this scope

 File.seekg(0, ios::end);

 ^~~~

/tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp: In function ‘void fs::WriteFile(const string&, const char*, uint32_t)’:

/tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp:43:5: error: reference to ‘ofstream’ is ambiguous

 ofstream File(Filename, ios::binary);

 ^~~~~~~~

In file included from /usr/include/boost/filesystem/string_file.hpp:14:0,

             from /usr/include/boost/filesystem.hpp:19,

             from /tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp:3:

/usr/include/boost/filesystem/fstream.hpp:170:32: note: candidates are: typedef class boost::filesystem::basic_ofstream boost::filesystem::ofstream

typedef basic_ofstream ofstream;

                            ^~~~~~~~

In file included from /usr/include/c++/6.2.1/bits/localefwd.h:41:0,

             from /usr/include/c++/6.2.1/string:43,

             from /tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/include/fscommon.hpp:4,

             from /tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp:1:

/usr/include/c++/6.2.1/iosfwd:165:34: note: typedef class std::basic_ofstream std::ofstream

typedef basic_ofstream ofstream;

                              ^~~~~~~~

/tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp:44:5: error: ‘File’ was not declared in this scope

 File.write(pData, Size);

 ^~~~

make[2]: *** [CMakeFiles/npa.dir/build.make:218: CMakeFiles/npa.dir/src/fscommon.cpp.o] Error 1

make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/npa.dir/all] Error 2

make: *** [Makefile:150: all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.