var type could not be resolved, but programm can be compiled [message #872067] |
Tue, 15 May 2012 12:03 |
Eclipse User |
|
|
|
Hi,
I ve installed Eclipse Indigo and CDT 8.0.2 on my new Ubuntu LTS 12. Now
I m testing if I still can compile all my old c-programs with the latest
gcc version. Although I can compile my c-programs without any
errors/warnings, Eclipse displays many errors such as "type could not be
resolved"
For example:
#include <time.h>
void process_caller() {
int connected=0, other_line=-1 ;
time_t start_time ; <- error: time_t could not be resolved
Another example:
#include <omslib.h>
void oms_service(int mode) {
if (mode==SETUP ) <- error: SETUP could not be resolved
....
But "SETUP" is defined in omslib.h
--- omslib.h file ---
/* Main loop entry */
#define SETUP 0
Any idea which setings are wrong in Eclipse. I didnt change anything in
Eclipse yet.
Thomas B
|
|
|
|
Re: var type could not be resolved, but programm can be compiled [message #872635 is a reply to message #872169] |
Wed, 16 May 2012 13:52 |
Eclipse User |
|
|
|
Am 15.05.2012 17:32, schrieb Harry Houdini:
> Look at the tool chain.
Hi,
here are my current settings.
Configuration: Debug [Active]
Current Tool chain is Linux GCC.
Current Builder is Gnu Make Builder
Used tools are GCC Archive, GCC C++ Builder, GCC C Compiler, GCC C
Linker, GCC C++ Linker, GCC Assembler.
Is Anything wrong?
Thomas B
|
|
|
Powered by
FUDForum. Page generated in 0.04083 seconds