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?
Asked
Active
Viewed 1,464 times
7

Sash
- 4,448
- 1
- 17
- 31
1 Answers
6

Sash
- 4,448
- 1
- 17
- 31
-
1In 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