GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 05-Feb-2004, 09:17
abolsabel abolsabel is offline
New Member
 
Join Date: Feb 2004
Posts: 3
abolsabel is on a distinguished road
Exclamation

Getting hold of IDE, editors and compilers


Dear All

This is my first post on this web site looking at previous posts it looks like i am able to get some good advice.


I am looking to start to learn C and C++ can anyone tell me of of an IDE which is possiibly free or evaulation so i can write some code, compile it and run it in the same application.

Ive tryed to use ICCWIN 32 but it does not compile, do i have to change about with the system variables?

I have tryed bloodsheed dev but still get the same problems


could it be that my coding is wrong
CPP / C++ / C Code:
/*  This is my first C Program*/

#include <stdio.h>

    main ()
    
    {
    
        printf ("Howdy, neighbour! Thia is my first C program.\n");
        return 0;
        
    }
any help i would be greatful

cheers abs
Last edited by dsmith : 05-Feb-2004 at 09:55. Reason: Added syntax highlighting
  #2  
Old 05-Feb-2004, 09:54
dsmith's Avatar
dsmith dsmith is offline
Senior Member
 
Join Date: Jan 2004
Location: Utah, USA
Posts: 1,351
dsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of light
Hi Abolsabel. Welcome to the forums!

First of all, just a little note on posting code: If you enclose your code in c and /c this forum will provide syntax highlighting for you. It is very helpful to read your code. I will edit your post and add this so you can see how it is done.

As far as your sample program, it appears to be fine. You may want to define your main as an int though. Most compilers should default to this, but others may complain. Also, keep in mind that this is a console program. So it may be running just fine, but you can't see it because it prints to the console and is done.

I hope other people will post with their IDE, compiler, editor choices. I am a little old school, so my ways may be different than others. I prefer simplicity. For that reason, I do all of my coding in linux using gcc. This is free in every sense of the word and it is simple. If you have never used linux, I have done a writeup on a distribution of linux called knoppix. You can see that writeup here . Basically, it will install the entire system from a CD without messing up your existing computer. To my way of thinking this provides a safe way to experiment with C, without screwing anything up! I use a very simple but powerful text editor called kwrite (which has indentation/highlighting, etc.) and the command line. That is it.

For a comparison, I took your small program and compiled/ran it two ways.

The first is under linux, using gcc. I only needed one file, test1.c. It was 150 bytes and the compiled program was 13K.

Then under windows XP, using Visual C++ 6.0, a full IDE I compiled and ran the same program. It added 5 additional files just for the IDE that added another 100K to the code. The compiled program was 175K, more than 10 times the size of the gcc program. The programs do the absolute same thing.

My point is, you need to ask yourself, what are you looking for in an environment. If you want to make Windows programs, I think Visual C++ is a great choice because of the wizards, IDE and gui help that it provides. However, if you want cross platform or simplicity, it is a terrible choice, because the code is bloated and you generally create code that can only be compiled using Visual C++.

Sorry, that is kind of a long response. If you want to give linux/gcc a try, drop me a note and I will help you get started. Once you start using it, it becomes quite straightforward IMHO.
Last edited by dsmith : 05-Feb-2004 at 10:56. Reason: Changed URL to local thread link
  #3  
Old 05-Feb-2004, 10:12
abolsabel abolsabel is offline
New Member
 
Join Date: Feb 2004
Posts: 3
abolsabel is on a distinguished road

knoppix


Dear DSMITH


I would be interested in the knoppix program but will it work with windows XP pro.

can you tell how ti get started on it.

How do send a private messge? I have just tryed and it said i dont have enough privaliges
  #4  
Old 05-Feb-2004, 10:34
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Hello abolsabel,

The PM's are only made available to members who are in Level 2. This usually means after you have made 5 posts and maintain your REP (reputation) around these parts

In the past, some people have simply joined / registered here just so that they can send spam via the PMs... this is to minimise that sort of abuse. It's nothing personal.
  #5  
Old 05-Feb-2004, 10:43
dsmith's Avatar
dsmith dsmith is offline
Senior Member
 
Join Date: Jan 2004
Location: Utah, USA
Posts: 1,351
dsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of light
Quote:
Originally Posted by abolsabel
Dear DSMITH
I would be interested in the knoppix program but will it work with windows XP pro.

It will work with any software because it loads an entirely new operating system (temporarily). The tricky part may be the hardware recognition. If you haven't read the info in the link I provided, please read it as there is more detail there.

Just to make sure you understand, you don't run this under Windows. It boots from a CD into an entirely diferent OS. This may not be what you want to do, but it will give you alot of experience with using a *nix operating system. I may be biased, but when I think of *nix, I think of C code.

BTW - a couple more posts and you will have PM. your rep is in good shape
  #6  
Old 05-Feb-2004, 12:31
abolsabel abolsabel is offline
New Member
 
Join Date: Feb 2004
Posts: 3
abolsabel is on a distinguished road
Lightbulb

Overall


is there any good IDE which are free
  #7  
Old 05-Feb-2004, 18:01
dsmith's Avatar
dsmith dsmith is offline
Senior Member
 
Join Date: Jan 2004
Location: Utah, USA
Posts: 1,351
dsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of light
Abolsabel,

I just downloaded and tried the bloodshed dev-cpp under XP pro. I think this is as nice a ide as you are going to find for the price (ie free). It is based upon the gcc compiler and is very intuitive. However, unlike the Visual C++ compiler, it does not pause a console program so that you can see it.

Try modifying your original program as shown below and running it under the dev-cpp compiler.
CPP / C++ / C Code:
#include <stdio.h>

    int main ()
    
    {
    
        printf ("Howdy, neighbour! Thia is my first C program.\n");
        while(!kbhit());
        return 0;
        
    }

Basically, this will wait for you to press a key before dissappearing. Note that you need to compile the project under the execute menu and then run it. If this IDE doesn't appeal to you, let us know more of what you may be looking for in an IDE.
  #8  
Old 06-Feb-2004, 08:03
Garth Farley Garth Farley is offline
Invalid Email Address
 
Join Date: May 2002
Location: Ireland
Posts: 638
Garth Farley is a jewel in the roughGarth Farley is a jewel in the roughGarth Farley is a jewel in the rough
Like dsmith, I use g++ & Kate (which is 90% kwrite) on my *nix system.

But I'm stuck with Windows 2000 on my laptop, so I've installed a g++ version for windows called www.delorie.com. The only problem with it is that it includes all the header & object files for every program, so your simple hello.c would be over a megabyte. But it's great for me as I switch between Linux & Windows a lot.

However I'm not a GUI guy, so an IDE is no use to me. But Visual C++ is the defacto to learn, but it's expensive & v. bloated. The Bloodshed IDE is the best you'll get for free, and it ain't half bad (I've a mate who uses it a lot, and he loves it). I say go for it.

GF
 
 

Recent GIDBlogToyota - 2008 November Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 06:11.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.