Search code examples
eclipseeclipse-cdtgetoptgetopt-long

getopt_long could not be resolved in Eclipse CDT


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?


Solution

  • See https://bugs.eclipse.org/bugs/show_bug.cgi?id=356425