7

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?

Sash
  • 4,448
  • 1
  • 17
  • 31

1 Answers1

6

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

Sash
  • 4,448
  • 1
  • 17
  • 31
  • 1
    In case link dies: "I too have a similar problem on Ubuntu with gcc 4.5.2. Adding getopt.h to the indexer solved the problem for me." – Sash Jun 23 '12 at 20:04