NO

Author Topic: How can I use Pelles C in a 64-bit Windows 7  (Read 7165 times)

pidec

  • Guest
How can I use Pelles C in a 64-bit Windows 7
« 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

Offline Stefan Pendl

  • Global Moderator
  • Member
  • *****
  • Posts: 582
    • Homepage
Re: How can I use Pelles C in a 64-bit Windows 7
« Reply #1 on: August 12, 2011, 02:52:18 PM »
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

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: How can I use Pelles C in a 64-bit Windows 7
« Reply #2 on: August 12, 2011, 03:11:36 PM »
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

  • Guest
Re: How can I use Pelles C in a 64-bit Windows 7
« Reply #3 on: August 12, 2011, 04:21:45 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

  • Guest
Re: How can I use Pelles C in a 64-bit Windows 7
« Reply #4 on: August 12, 2011, 08:19:47 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>


Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: How can I use Pelles C in a 64-bit Windows 7
« Reply #5 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.
May the source be with you

CommonTater

  • Guest
Re: How can I use Pelles C in a 64-bit Windows 7
« Reply #6 on: August 12, 2011, 09:44:20 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...


« Last Edit: August 12, 2011, 09:52:39 PM by CommonTater »

CommonTater

  • Guest
Re: How can I use Pelles C in a 64-bit Windows 7
« Reply #7 on: August 12, 2011, 09:46:38 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]