Skip to content

Instantly share code, notes, and snippets.

@alex-pat
Created July 28, 2016 08:15
Show Gist options
  • Save alex-pat/fdb8c1583014d979864ea27a69700c28 to your computer and use it in GitHub Desktop.
Save alex-pat/fdb8c1583014d979864ea27a69700c28 to your computer and use it in GitHub Desktop.
arbolibrum build error
make
Scanning dependencies of target arbolibrum
[ 11%] Building CXX object src/lib/CMakeFiles/arbolibrum.dir/src/note.cpp.o
[ 22%] Building CXX object src/lib/CMakeFiles/arbolibrum.dir/src/compression.cpp.o
[ 33%] Building CXX object src/lib/CMakeFiles/arbolibrum.dir/src/decompression.cpp.o
[ 44%] Building CXX object src/lib/CMakeFiles/arbolibrum.dir/src/encryption.cpp.o
In file included from /home/postskript/ArboLibrum/src/lib/src/encryption.cpp:13:0:
/home/postskript/ArboLibrum/src/lib/src/../include/encryption.h:18:18: warning: extra tokens at end of #include directive
#include "math.h";
^
[ 55%] Building CXX object src/lib/CMakeFiles/arbolibrum.dir/src/readorg.cpp.o
In file included from /home/postskript/ArboLibrum/src/lib/src/../include/readorg.h:21:0,
from /home/postskript/ArboLibrum/src/lib/src/readorg.cpp:13:
/home/postskript/ArboLibrum/src/lib/src/../include/encryption.h:18:18: warning: extra tokens at end of #include directive
#include "math.h";
^
/home/postskript/ArboLibrum/src/lib/src/readorg.cpp: In static member function ‘static Note* ReadOrg::read(std::__cxx11::string, std::__cxx11::string, NoteTypes)’:
/home/postskript/ArboLibrum/src/lib/src/readorg.cpp:56:44: error: invalid initialization of non-const reference of type ‘std::__cxx11::string& {aka std::__cxx11::basic_string<char>&}’ from an rvalue of type ‘std::__cxx11::basic_string<char>’
Note *note = new Note(trim(elems[0].substr(delim.length())), type);
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
In file included from /home/postskript/ArboLibrum/src/lib/src/readorg.cpp:13:0:
/home/postskript/ArboLibrum/src/lib/src/../include/readorg.h:42:17: note: initializing argument 1 of ‘static std::__cxx11::string ReadOrg::trim(std::__cxx11::string&)’
static string trim(string &str);
^~~~
make[2]: *** [src/lib/CMakeFiles/arbolibrum.dir/build.make:159: src/lib/CMakeFiles/arbolibrum.dir/src/readorg.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:123: src/lib/CMakeFiles/arbolibrum.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment