Skip to main content



      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
Eclipse UserFriend
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] by 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
Eclipse UserFriend
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
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
Eclipse UserFriend
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
Eclipse UserFriend

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 messageGo to next message
Eclipse UserFriend
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
Re: [HELP] "Unresolved inclusion: <stdio.h>" in C project!! [message #1824146 is a reply to message #843647] Wed, 08 April 2020 10:46 Go to previous message
Eclipse UserFriend
@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 Jul 23 15:57:29 EDT 2025

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

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

Back to the top