Using the in a C++ program, Eclipse CDT marks getopt_long as "could not be resolved". The code compiles and runs fine using g++ program.cpp. Has this something to do with the Eclipse build set up?
getopt_long
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=356425