Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » [SOLVED] "Unresolved inclusion: <stdio.h>" in C project!!
[SOLVED] "Unresolved inclusion: <stdio.h>" in C project!! [message #816489] Thu, 08 March 2012 18:07 Go to next message
Carlos Qarl is currently offline Carlos Qarl
Messages: 12
Registered: March 2012
Junior Member
I don't understand because the two first lines (included by default in classic Hello World) are underline (in yellow).
This is My simply code for test:
#include <stdio.h> // Warning: Unresolved inclusion: <stdio.h>
#include <stdlib.h> // Warning: Unresolved inclusion: <stdlib.h>

int main()
{
	int a=0, b=0, res=0;

	res = a+b;

	printf("%d", res);

	return 0;
}


The program runs fine, but I don't have these warnings.

Note: I'm using Ubuntu and Eclipse Indigo.

Thank you and Regards!!

[Updated on: Mon, 12 March 2012 09:14]

Report message to a moderator

Re: [HELP] "Unresolved inclusion: <stdio.h>" in C project!! [message #816727 is a reply to message #816489] Fri, 09 March 2012 02:34 Go to previous messageGo to next message
Axel Mueller is currently offline Axel Mueller
Messages: 1949
Registered: July 2009
Senior Member
I guess the internal scanner discovery fails to find the include paths for your toolchain (gcc I guess). Do you use a different localization then English? Eclipse Indigo expects the gcc output to be in English.
I posted a solution http://www.eclipse.org/forums/index.php/m/795499/?srch=gcc+scanner+english#msg_795499


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: [HELP] "Unresolved inclusion: <stdio.h>" in C project!! [message #819077 is a reply to message #816727] Mon, 12 March 2012 09:13 Go to previous messageGo to next message
Carlos Qarl is currently offline Carlos Qarl
Messages: 12
Registered: March 2012
Junior Member
Perfect!!

Thank you very much!! Wink
Re: [HELP] "Unresolved inclusion: <stdio.h>" in C project!! [message #843299 is a reply to message #819077] Thu, 12 April 2012 19:50 Go to previous messageGo to next message
Mor Shuk is currently offline Mor Shuk
Messages: 1
Registered: April 2012
Junior Member

is there any chance you could give me a more detailed intruction on how to do this?! cause im trying and jut cant get it done...(working eclipse on ubuntu 11.10)
Re: [HELP] "Unresolved inclusion: <stdio.h>" in C project!! [message #843647 is a reply to message #843299] Fri, 13 April 2012 04:31 Go to previous message
Axel Mueller is currently offline Axel Mueller
Messages: 1949
Registered: July 2009
Senior Member
Mor Shuk wrote on Fri, 13 April 2012 01:50

is there any chance you could give me a more detailed intruction on how to do this?! cause im trying and jut cant get it done...(working eclipse on ubuntu 11.10)

- Open Project Properties->C/C++ Build->Environment
- click Select.. and choose LANG
- use empty value for LANG
- repeat above step for LANGUAGE
- repeat above step for LC_ALL but use the value en_GB.UTF-8

Rebuild project and index


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:<terminated, exit value: -1>gdb
Next Topic:Changing Make(generated from Eclipse) to get a .text file as option
Goto Forum:
  


Current Time: Thu Aug 21 14:20:53 EDT 2014

Powered by FUDForum. Page generated in 0.02336 seconds