Skip to content

Instantly share code, notes, and snippets.

@hajimehoshi
Created December 29, 2010 20:17
Show Gist options
  • Save hajimehoshi/759015 to your computer and use it in GitHub Desktop.
Save hajimehoshi/759015 to your computer and use it in GitHub Desktop.
$ gcc-mp-4.5 -o test -std=c++0x -L/opt/local/lib test.cpp
Undefined symbols:
"operator new(unsigned long)", referenced from:
std::_Function_base::_Base_manager<main::{lambda()#1}>::_M_clone(std::_Any_data&, std::_Function_base::_Base_manager<main::{lambda()#1}> const&, std::integral_constant<bool, false>) in ccBk7Dwv.o
std::_Function_base::_Base_manager<main::{lambda()#1}>::_M_init_functor(std::_Any_data&, {lambda()#1}&&, std::integral_constant<bool, false>) in ccBk7Dwv.o
"std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)", referenced from:
main::{lambda()#1}::operator()() const in ccBk7Dwv.o
"std::ios_base::Init::Init()", referenced from:
__static_initialization_and_destruction_0(int, int) in ccBk7Dwv.o
"operator delete(void*)", referenced from:
std::_Function_base::_Base_manager<main::{lambda()#1}>::_M_destroy(std::_Any_data&, std::integral_constant<bool, false>) in ccBk7Dwv.o
"___gxx_personality_v0", referenced from:
CIE in ccBk7Dwv.o
"std::__throw_bad_function_call()", referenced from:
std::function<void ()()>::operator()() const in ccBk7Dwv.o
"std::ios_base::Init::~Init()", referenced from:
__static_initialization_and_destruction_0(int, int) in ccBk7Dwv.o
"vtable for __cxxabiv1::__class_type_info", referenced from:
typeinfo for main::{lambda()#1} in ccBk7Dwv.o
"std::cout", referenced from:
main::{lambda()#1}::operator()() const in ccBk7Dwv.o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment