Skip to content

Instantly share code, notes, and snippets.

@mprymek
Created May 8, 2015 16:48
Show Gist options
  • Save mprymek/e9c1623753a17d946ecd to your computer and use it in GitHub Desktop.
Save mprymek/e9c1623753a17d946ecd to your computer and use it in GitHub Desktop.
$ gcc48 -I /usr/local/include -L/usr/local/lib -lboost_program_options boost_test.cpp
/usr/local/bin/ld: /tmp//ccauzjzJ.o: undefined reference to symbol '_ZSt17__throw_bad_allocv'
//usr/lib/libc++.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
$ /usr/bin/c++ -I /usr/local/include -L/usr/local/lib -lboost_program_options boost_test.cpp
$ ./a.out --help
Basic Command Line Parameter App
Options:
--help Print help messages
--add additional options
--like this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment