On Sun, Feb 14, 2010 at 3:54 PM, bluetxxth <[email protected]> wrote:
> Hi there,
>
>
>
> I have used eclipse to program in java, however I have recently installed
> the eclipse cdt in order to program in c. When I install all the components
> I think I need that is
>
>
>
> windows vista x64 ultimate
> eclipse-SDK-3.5.1-win32
> mingw-w32-bin_i686-mingw_20100123_sezero
> MSYS-1.0.11
>
>
>
> I make a simple hello world program in which I use a simple printf and the
> program compiles no problem. However if I add a scanf then I get a weird
> output and I think that it has to do with something malfunctioning in
> eclipse.
>
>
>
> # include <stdio.h>
>
> # include <stdlib.h>
>
>
>
> int main (void){
>
>
>
> char name [10];
>
>
>
> printf("enter name: ");
>
> scanf("%s", name);
>
>
>
> printf("the name is %s",name);
>
>
>
> return 0;
>
> }
>
>
>
> when trying to build this I get the following message:
>
>
>
>
>
> **** Build of configuration Debug for project print ****
>
>
>
> **** Internal Builder is used for build               ****
>
> Nothing to build for print
>
>
>
>
>
> In addition to this the result of the above in the eclipse console  is as
> follows...:
>
>
>
> Enter your name: the name is
>
>
>
>
>
> ...which is totally wrong!
>
>
>
> Is there anyone who can help me set it up correctly???

Still having issues?

------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to