LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-26-2004, 10:39 AM   #1
Ryan450
Member
 
Registered: May 2004
Distribution: Doing the Distro Hop
Posts: 160

Rep: Reputation: 30
Linux and C


I know that linux is programmed in C primarily, and that its a great enviorment to program in... I'm just learning how to program myself, I dont want to go out and pay $500 for visual studio.net 2003, espeacially if I can get an awesome programming enviorment for free..

Which distrobution would be ideal to learn C in?

which Text Refrence would go nicely with it? I've managed to get my hands on C/C++ by example, havent had the time to look at it yet, But if I get a text that's assumes your using a windows based compiler be usable in the linux enviorment?

Is it really all that different in linux? where does it really start to change and matter? And lastly, will I be overall better to go out and get my hands on Visual Studio.Net 2003 then relying on Linux?
 
Old 11-26-2004, 10:44 AM   #2
nodger
Member
 
Registered: Oct 2003
Location: Ireland
Distribution: Slackware 9.1, Ubuntu
Posts: 192

Rep: Reputation: 30
depends on what type of stuff you want to program. If you want to write games I`d recommend windows, If you want to write servers and web apps, I`d choose Linux. Just for learning the basics though, either is fine
 
Old 11-26-2004, 02:19 PM   #3
has2k1
LQ Newbie
 
Registered: Jun 2004
Distribution: mandrake 10
Posts: 4

Rep: Reputation: 0
My suggestion, is if you really want to learn C then there is no better place to do it than in linux.
You can find excellent open source development enviroments.

For me an editor with syntax highlighting is enough, and in linux I use Kwrite or Nedit for that. But source forge does have fully fledged IDE for C and C++.
On advantage of learning C in a linux enviroment is, just by using linux you will always compile various applications, once in a while take a look at the open code for an application that you are using.

By doing that you LEARN LOTS. Not so long after you will see something you don't like with the code, and you can easily change it and compile it. Just that you have many working applications that you can play around with at source code level improves you programming ability. Think about it.
 
Old 11-26-2004, 02:44 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
The language is the same, no matter the OS you use to write your programs. But there are differences: tools you use.

All Linux distributions will be equally good, as they have the same software - gcc and g++, text editors you can use or IDEs like Anjuta and KDevelop.

Reference/book: recommend one about ANSI C (standard C). Code written in that way will compile fine on both Linux and Windows. What's a good thing. If you get a book more about C in Windows, you may still make most of the programs work withut problems, but there are small details different: <conio.h> header to 'draw' in text mode (no conio.h in Linux, you use ncurses), different commands to compile your program.
 
Old 11-26-2004, 08:05 PM   #5
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Another suggestion, if you want to be able to use GCC but don't want to have to ditch windows look into cygwin. Cygwin will give you a unix like environment and a GCC version in windows.
 
Old 11-26-2004, 11:49 PM   #6
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
If you want to learn pure C, then Linux or a Unix-like environment is very good. All the libraries are there and there is good documentation in the man pages.

Also you have a choice of GUI toolkits which you can use when you want to program in X Windows rather than the shell.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration