Skip to main content


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 23:07 Go to next message
Carlos Qarl is currently offline Carlos QarlFriend
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 13: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 07:34 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
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 13:13 Go to previous messageGo to next message
Carlos Qarl is currently offline Carlos QarlFriend
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 23:50 Go to previous messageGo to next message
Mor Shuk is currently offline Mor ShukFriend
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 08:31 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
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
Re: [HELP] "Unresolved inclusion: <stdio.h>" in C project!! [message #1824146 is a reply to message #843647] Wed, 08 April 2020 14:46 Go to previous message
Alex Oswald is currently offline Alex OswaldFriend
Messages: 1
Registered: April 2020
Junior Member
@axel

I tried following your instructions but I don't find those under 'select'
Previous Topic:CDT-Arduino Problem with extra make targets
Next Topic:(Arduino Standard Library) EDIT: Symbols/Functions Unresolved
Goto Forum:
  


Current Time: Wed Apr 24 18:20:31 GMT 2024

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

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

Back to the top