LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Linux and C (https://www.linuxquestions.org/questions/programming-9/linux-and-c-259531/)

Ryan450 11-26-2004 10:39 AM

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?

nodger 11-26-2004 10:44 AM

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

has2k1 11-26-2004 02:19 PM

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.

Mara 11-26-2004 02:44 PM

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.

jtshaw 11-26-2004 08:05 PM

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.

vharishankar 11-26-2004 11:49 PM

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.


All times are GMT -5. The time now is 09:51 AM.