C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 07-19-2006, 09:35 PM   #1
Registered User
 
Join Date: Jul 2006
Posts: 4
Question C Compiler and stuff

The main reason I created this thread, is because I'm wondering on which Dev compiler is the C compiler. I see the Dev-C++ Compiler, but I'm unsure if it's the one i'm looking for.

I have done some minor Python coding, but not much. I found it to be complex, and I was advised to start with C instead. From C to C++, and then from C++ to Pearl (i think). So after I read up on C on wiki, I decided to start with it.

I like the site, it reminds me of w3schools.com, except it's to C/C++ and not html/javascript/php.

So can I use the Dev-C++ Compiler for my C coding? I also use the Windows XP OS, so thats' the major reason I'm interested in their compiler, as it's specifically tailored to the Windows OS. I may download Linux or some other OS in the future, but Win is just my defaulted OS. Maybe I'll have a dual OS on my laptop.

I plan on reading all the (relavent) content on the site, but I like a hands on approach, that's why I want to download a compiler.
pal1ndr0me is offline   Reply With Quote
Old 07-19-2006, 09:38 PM   #2
Just Lurking
 
Dave_Sinkula's Avatar
 
Join Date: Oct 2002
Posts: 4,990
Dev-C++ is not a compiler, it is an IDE. It comes with a port of gcc, which has both a C compiler and a C++ compiler. You can compile both sources with it.
__________________
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
Dave_Sinkula is offline   Reply With Quote
Old 07-19-2006, 09:42 PM   #3
Registered User
 
Join Date: Jun 2004
Posts: 266
Quote:
Originally Posted by pal1ndr0me
So can I use the Dev-C++ Compiler for my C coding?
Yes you can, personally I don't like it. but be sure to set your sources as C programs, I'm not sure if Dev-C compiles sources according to its extensions someone soon shall come up with the right info. Maybe you can find it here -> http://sourceforge.net/forum/forum.php?forum_id=48211 it is Dev-Cpp board on source forge.
Maragato is offline   Reply With Quote
Old 07-19-2006, 09:46 PM   #4
The Richness...
 
Richie T's Avatar
 
Join Date: Jan 2006
Location: Ireland
Posts: 469
>>I'm not sure if Dev-C compiles sources according to its extensions someone soon shall
>>come up with the right info

Here I am! Yes, at least for the latest release. Compiles .c as C, and.cpp as C++
__________________
No No's:
fflush (stdin); gets (); void main ();


Goodies:
Example of fgets (); The FAQ, C/C++ Reference


My Gear:
OS - Windows XP
IDE - MS Visual C++ 2008 Express Edition


ASCII stupid question, get a stupid ANSI
Richie T is offline   Reply With Quote
Old 07-19-2006, 09:48 PM   #5
Registered User
 
Join Date: Jul 2006
Posts: 4
Integrated development environment? Nice. That's what I thought, but it's a 13.5mb d/l + installation, so I wanted to make sure. Thanks
pal1ndr0me is offline   Reply With Quote
Old 07-21-2006, 08:31 AM   #6
ex-DECcie
 
Join Date: Dec 2005
Posts: 125
C++ not a pre-req for Perl

Also, FWIW, you don't need to know C++ to code Perl.

I picked up Perl before I moved into the C++ world, but I had been a C programmer for quite a long while.

If you want to learn Perl, pick up the Camel book (Learning Perl). It's an excellent way to get started....
__________________
Mr. Blonde: You ever listen to K-Billy's "Super Sounds of the Seventies" weekend? It's my personal favorite.
fgw_three is offline   Reply With Quote
Old 07-21-2006, 08:43 AM   #7
Registered User
 
Join Date: Jan 2002
Location: Cardiff
Posts: 2,219
Dev-C++ isn't a very good IDE. I would recommend Visual C++ 2005 Express, it is free and a much better IDE with a larger community.
Brian is offline   Reply With Quote
Old 07-21-2006, 09:01 AM   #8
pwns nooblars
 
Join Date: Oct 2005
Location: Portland, Or
Posts: 1,094
VC++ is great if you like your code that is completely according to standards to be questioned because M$ "better" way to do it.
__________________
Enlighten Yourself

I'm back!
Wraithan is offline   Reply With Quote
Old 07-21-2006, 10:44 AM   #9
Registered User
 
Join Date: Jan 2002
Location: Cardiff
Posts: 2,219
Quote:
Originally Posted by Wraithan
VC++ is great if you like your code that is completely according to standards to be questioned because M$ "better" way to do it.
Give an example of standards-compliant code that will not compile in VC++ 2005 Express.
Brian is offline   Reply With Quote
Old 07-21-2006, 11:03 AM   #10
pwns nooblars
 
Join Date: Oct 2005
Location: Portland, Or
Posts: 1,094
I am at work so I can't give the examples... but they will compile, but VC++ 2005 gives warnings against things it feels are unsafe and thinks you should use microsoft functions instead.
__________________
Enlighten Yourself

I'm back!
Wraithan is offline   Reply With Quote
Old 07-21-2006, 11:07 AM   #11
Code Goddess
 
Prelude's Avatar
 
Join Date: Sep 2001
Posts: 9,661
>but VC++ 2005 gives warnings against things it feels are unsafe and thinks
>you should use microsoft functions instead.
There's no rule against that. Some compilers give a warning if you don't initialize a variable at declaration, but it's perfectly legal. And the warnings do make a good point about the functions not being safe. If you know what you're doing, it's annoying, but if you aren't intimately familiar with the standard library, it could be a good thing.

And of course, you can disable that particular warning set if it bothers you so much.
__________________
My best code is written with the delete key.
Prelude is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
template to let compiler generate zero KIBO C++ Programming 4 06-15-2009 03:51 AM
I can't get this new compiler to work. Loduwijk C++ Programming 7 03-29-2006 06:42 AM
Compiler questions DvdHeijden C++ Programming 6 01-17-2005 03:00 PM
lcc win32 compiler download problems GanglyLamb A Brief History of Cprogramming.com 5 08-01-2004 07:39 PM
Didn't quite know where to post this.......compiler problem... incognito C++ Programming 5 02-08-2003 07:42 PM


All times are GMT -6. The time now is 09:52 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22