Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse CDT - getchar/scanf(running getchar or scanf doesn't prompt input where I can type in)
Eclipse CDT - getchar/scanf [message #966450] Thu, 01 November 2012 01:45 Go to next message
Sivan S is currently offline Sivan SFriend
Messages: 1
Registered: November 2012
Junior Member
I took an intro programming course, but I'm new to doing this on my own.
I am running Eclipse Juno IDE for C/C++ Developers with MinGW.
For some reason, when I run the following code (from K&R) no input box shows up where I can type in my response after getchar().

#include <stdio.h>

main(){
int c;

while((c=getchar()) != EOF)
putchar(c);
}

I looked in the console build and found this message:

"c:/mingw/bin/../ld.exe: cannot open output file char.exe: Permission denied"

which I haven't gotten for anything else. Does anyone know where I can find the input prompt?
Re: Eclipse CDT - getchar/scanf [message #967101 is a reply to message #966450] Thu, 01 November 2012 13:42 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/1/2012 6:31 AM, Sivan S wrote:
> I took an intro programming course, but I'm new to doing this on my own.
> I am running Eclipse Juno IDE for C/C++ Developers with MinGW. For some
> reason, when I run the following code (from K&R) no input box shows up
> where I can type in my response after getchar().
>
> #include <stdio.h>
>
> main(){
> int c;
>
> while((c=getchar()) != EOF)
> putchar(c);
> }
>
> I looked in the console build and found this message:
>
> "c:/mingw/bin/../ld.exe: cannot open output file char.exe: Permission
> denied"
>
> which I haven't gotten for anything else. Does anyone know where I can
> find the input prompt?

When new to a forum, check out the sticky posts at the top so you know
you're in the right place.

http://www.eclipse.org/forums/index.php/t/161206/
Re: Eclipse CDT - getchar/scanf [message #1805009 is a reply to message #966450] Thu, 04 April 2019 14:18 Go to previous messageGo to next message
Ali Wissam is currently offline Ali WissamFriend
Messages: 6
Registered: April 2019
Junior Member
I have exactly the same problem and i can't find any fix for it :(
Re: Eclipse CDT - getchar/scanf [message #1805030 is a reply to message #1805009] Thu, 04 April 2019 16:55 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30541
Registered: July 2009
Senior Member
Then you might also want check out the sticky note link so that you too can ask on the CDT forum..
Re: Eclipse CDT - getchar/scanf [message #1805068 is a reply to message #966450] Fri, 05 April 2019 08:30 Go to previous message
Ali Wissam is currently offline Ali WissamFriend
Messages: 6
Registered: April 2019
Junior Member
ok i'll check it thank you

[Updated on: Fri, 05 April 2019 08:33]

Report message to a moderator

Previous Topic:TLS 1.2
Next Topic:[solved] how to find current context for key bindings?
Goto Forum:
  


Current Time: Tue Oct 15 03:29:01 GMT 2019

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

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

Back to the top