CDT complains about wrong / missing includes [message #158046] |
Tue, 15 November 2005 14:41  |
Eclipse User |
|
|
|
Originally posted by: sarek.nurfuerspam.de
Hi,
I just installed cdt and for testing wanted to make a project from a
small c++ program, that I already had and started it with make from
console before.
When starting from console my program compiles without any problems. But
when I import this program from the file system, CDT immediately marks
different point in the source files as incorrect.
The problems tab shows:
> Severity Description Resource In Folder Location Creation Time Id
> 1 C/C++ Indexer Problem: Preprocessor Inclusion not found: iostream in file: /home/sarek/workspaces/uni/MedBV/aufgaben.cpp on line: 3. aufgaben.cpp MedBV line 3 15. November 2005 19:04:58 321
> 1 C/C++ Indexer Problem: Preprocessor Inclusion not found: string.h in file: /home/sarek/workspaces/uni/MedBV/aufgaben.cpp on line: 4. aufgaben.cpp MedBV line 4 15. November 2005 19:04:58 323
> 1 C/C++ Indexer Problem: Preprocessor Inclusion not found: math.h in file: /home/sarek/workspaces/uni/MedBV/fenster_darstellen.h on line: 22. fenster_darstellen.h MedBV line 22 15. November 2005 19:05:05 329
> 1 C/C++ Indexer Problem: Preprocessor Inclusion not found: stdio.h in file: /home/sarek/workspaces/uni/MedBV/fenster_text.h on line: 6. fenster_text.h MedBV line 6 15. November 2005 19:05:05 328
> 1 C/C++ Indexer Problem: Preprocessor Inclusion not found: stdio.h in file: /home/sarek/workspaces/uni/MedBV/file_verwalten.h on line: 4. file_verwalten.h MedBV line 4 15. November 2005 19:05:05 327
Can anyone tell me what / and (or) where I have to change anything in
the settings? I assume it is a settings problem that is, because
compiling from console via just issuing "make" works perfectly.
In the project settings the C/C++ Indexer is set to: Full C/C++ indexer
(declarations and cross references)
Any help would be apreciated.
TIA
Christian
--
To reply to this posting directly use the following address and
remove the 'NO-SPAM' part: Riedel.Christian.NO-SPAM@gmx.net
|
|
|
Re: CDT complains about wrong / missing includes [message #158094 is a reply to message #158046] |
Wed, 16 November 2005 06:16  |
Eclipse User |
|
|
|
Originally posted by: sarek.nurfuerspam.de
Hi,
I just noticed something ...
Am 15.11.2005 20:41, Christian Riedel schrieb:
> When starting from console my program compiles without any problems. But
> when I import this program from the file system, CDT immediately marks
> different point in the source files as incorrect.
>
> The problems tab shows:
>
>
>>Severity Description Resource In Folder Location Creation Time Id
>>1 C/C++ Indexer Problem: Preprocessor Inclusion not found: iostream in file: /home/sarek/workspaces/uni/MedBV/aufgaben.cpp on line: 3. aufgaben.cpp MedBV line 3 15. November 2005 19:04:58 321
>>1 C/C++ Indexer Problem: Preprocessor Inclusion not found: string.h in file: /home/sarek/workspaces/uni/MedBV/aufgaben.cpp on line: 4. aufgaben.cpp MedBV line 4 15. November 2005 19:04:58 323
>>1 C/C++ Indexer Problem: Preprocessor Inclusion not found: math.h in file: /home/sarek/workspaces/uni/MedBV/fenster_darstellen.h on line: 22. fenster_darstellen.h MedBV line 22 15. November 2005 19:05:05 329
>>1 C/C++ Indexer Problem: Preprocessor Inclusion not found: stdio.h in file: /home/sarek/workspaces/uni/MedBV/fenster_text.h on line: 6. fenster_text.h MedBV line 6 15. November 2005 19:05:05 328
>>1 C/C++ Indexer Problem: Preprocessor Inclusion not found: stdio.h in file: /home/sarek/workspaces/uni/MedBV/file_verwalten.h on line: 4. file_verwalten.h MedBV line 4 15. November 2005 19:05:05 327
The strange thing is, that eclipse seems to find the qt3 libs in
/usr/share/qt3/lib so why not the "standard" libs like math.h etc?
I have not changed anything after installing, so why should one work and
the other not?
Christian
--
To reply to this posting directly use the following address and
remove the 'NO-SPAM' part: Riedel.Christian.NO-SPAM@gmx.net
|
|
|
Powered by
FUDForum. Page generated in 0.02833 seconds