Skip to content

Instantly share code, notes, and snippets.

@robbiet480
Created May 6, 2011 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robbiet480/959674 to your computer and use it in GitHub Desktop.
Save robbiet480/959674 to your computer and use it in GitHub Desktop.
g++ -c -march=native -O2 -fomit-frame-pointer -fno-ident -fvisibility-inlines-hidden -fvisibility=hidden -Wall -std=c++0x -iquote -Wl,O1 -Wl,--as-needed -I/usr/include/mysql -I/usr/include/mysql++ -I/usr/include/boost -o db.o db.cpp
In file included from /usr/include/boost/thread/thread.hpp:22:0,
from ocelot.h:5,
from db.cpp:1:
/usr/include/boost/thread/detail/thread.hpp: In function ‘boost::thread&& boost::move(boost::thread&&)’:
/usr/include/boost/thread/detail/thread.hpp:349:16: error: invalid initialization of reference of type ‘boost::thread&&’ from expression of type ‘boost::thread’
In file included from /usr/include/boost/thread/detail/thread_heap_alloc.hpp:17:0,
from /usr/include/boost/thread/detail/thread.hpp:13,
from /usr/include/boost/thread/thread.hpp:22,
from ocelot.h:5,
from db.cpp:1:
/usr/include/boost/thread/pthread/thread_heap_alloc.hpp: In function ‘T* boost::detail::heap_new(A1&&) [with T = boost::detail::thread_data<void (*)()>, A1 = void (*&)()]’:
/usr/include/boost/thread/detail/thread.hpp:130:95: instantiated from here
/usr/include/boost/thread/pthread/thread_heap_alloc.hpp:24:47: error: cannot bind ‘void (*)()’ lvalue to ‘void (*&&)()’
/usr/include/boost/thread/detail/thread.hpp:43:13: error: initializing argument 1 of ‘boost::detail::thread_data<F>::thread_data(F&&) [with F = void (*)()]’
make: *** [db.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment