getopt_long could not be resolved in Eclipse CDT
Asked Answered
M

1

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?

Misadventure answered 22/1, 2012 at 14:57 Comment(0)
M
6

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

Misadventure answered 30/1, 2012 at 22:37 Comment(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."Misadventure

© 2022 - 2024 — McMap. All rights reserved.