Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » var type could not be resolved, but programm can be compiled
var type could not be resolved, but programm can be compiled [message #872067] Tue, 15 May 2012 12:03 Go to next message
Eclipse UserFriend
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 #872169 is a reply to message #872067] Tue, 15 May 2012 15:31 Go to previous messageGo to next message
Harry Houdini is currently offline Harry HoudiniFriend
Messages: 131
Registered: February 2010
Senior Member
Look at the tool chain.
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:warning: multi-character character constant
Next Topic:HELP: Debugger often unresponsive - came from nowhere
Goto Forum:
  


Current Time: Sat Nov 29 00:23:00 GMT 2014

Powered by FUDForum. Page generated in 0.03432 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software