How can I use Pelles C in a 64-bit Windows 7

Started by pidec, August 12, 2011, 02:15:11 PM

Previous topic - Next topic

pidec

I am new in programing C and I want to start with Pelles C.
I wrote following to the IDE but I couldn't run the program


#include<stdio.h>

int main()
{
   printf("Hello");
   return 0;
}


Is it a wrong in my program? or I don't know how to use Pelles C?
Please help me.
Also I appreciate you, if you introduce me a text or resorce for begining with C programing that is simple.
Thanks

Stefan Pendl

You can use the console application wizard to get a simple "Hello World" program up and running.
This is the easiest way to see what the difference is.

There have been some links posted to tutorials about C-programming, so a search of the forum should get you some hits.
---
Stefan

Proud member of the UltraDefrag Development Team

TimoVJL

With new default project:

You can save that to file to proper folder as hello.c and then press Build or Compile button
and following dialogbox New default project select Win32 console program (EXE)
Then press Build or Compile button again.
May the source be with you

CommonTater

Quote from: pidec on August 12, 2011, 02:15:11 PM
I am new in programing C and I want to start with Pelles C.
I wrote following to the IDE but I couldn't run the program


#include<stdio.h>

int main()
{
   printf("Hello");
   return 0;
}


Is it a wrong in my program? or I don't know how to use Pelles C?
Please help me.
Also I appreciate you, if you introduce me a text or resorce for begining with C programing that is simple.
Thanks


You have to start a project... Pelles C will not compile code outside of a project.

File -> New -> Project -> Win32 Console Project
-or-
File -> New -> Project -> Win64 Console Project

Give your project a name ... the wizard will create folder for you...
Now type in your code... and click the Run button on the toolbar.


pidec

Quote from: CommonTater on August 12, 2011, 04:21:45 PM
Quote from: pidec on August 12, 2011, 02:15:11 PM
I am new in programing C and I want to start with Pelles C.
I wrote following to the IDE but I couldn't run the program


#include<stdio.h>

int main()
{
   printf("Hello");
   return 0;
}


Is it a wrong in my program? or I don't know how to use Pelles C?
Please help me.
Also I appreciate you, if you introduce me a text or resorce for begining with C programing that is simple.
Thanks


You have to start a project... Pelles C will not compile code outside of a project.

File -> New -> Project -> Win32 Console Project
-or-
File -> New -> Project -> Win64 Console Project

Give your project a name ... the wizard will create folder for you...
Now type in your code... and click the Run button on the toolbar.


Dear CommonTater
Thanks a lot for your help

Since I use version 6.5, procedures you mentioned above have been changed a little bit
File>New>Project...>Console Application Wizard>A simple program-Win32/Win64>


TimoVJL

If you have for example hello.c already open without project,
you can Build or Compile that file because PellesC IDE offer to create new default project.
Just press Build or Compile and select proper project type from dialog New default project.
May the source be with you

CommonTater

#6
Quote from: timovjl on August 12, 2011, 09:31:44 PM
If you have for example hello.c already open without project,
you can Build or Compile that file because PellesC IDE offer to create new default project.
Just press Build or Compile and select proper project type from dialog New default project.

Timo... I'm on 6.50 rc4 x64 here... and if I just type in a quicky "hello world" both build and run are greyed out... disabled.

EDIT:  Ahhh now I get it... if I save the file first... Interesting, I've never done that before...



CommonTater

Quote from: pidec on August 12, 2011, 08:19:47 PM
Dear CommonTater
Thanks a lot for your help

Since I use version 6.5, procedures you mentioned above have been changed a little bit
File>New>Project...>Console Application Wizard>A simple program-Win32/Win64>

Actually if you enlarge that window a bit you'll find there are lots of other ways to start a project...
The one I was referring to is in the "empty projects" list... The wizards are fine, but you will outgrow them very rapidly.




[/quote]