Chat on IRC |
Progamming in REdhat...
Posted by diegoeskryptic [send private reply] at September 20, 2002, 02:02:52 PM
I am using REDHAT 7.3 and I was just wondering where do I go to start writing programs or where do I go to look at the source codes. Actually I would be happy if you could tell me where I can find the source code for any thing in REDHAT... I hear that you can use C++ and python... I'm pretty good in both languages...
Posted by gian [send private reply] at September 20, 2002, 02:11:58 PM
Diego, there should be hundreds of compilers and interpreters to run on that platform. Pick one, and learn the language.
Posted by Neumann [send private reply] at September 20, 2002, 02:13:57 PM
Here is your small initiation to Linux programming:
In the console, type 'pico' or 'nano'. Both are cheap text editors. In the editor type: #include <stdio.h> int main() { printf("hello, world\n"); return 1; } leave pico or nano saving your file as "test.c" (you should be able to figure out how) in the console type: gcc test.c -o test and then type: ./test you should see "hello, world". If you can't do THAT, then uninstall Linux and go back to Windows...
Posted by Psion [send private reply] at September 20, 2002, 02:30:25 PM
Why does your program return an error code?
Posted by Neumann [send private reply] at September 20, 2002, 02:31:56 PM
Perhaps it's because if your computer tells you "hello, world", it's obviously because something is not going right...
Or perhaps it's just because I decided so...
Posted by diegoeskryptic [send private reply] at September 20, 2002, 06:33:56 PM
WEll... i thought u could program using C++ or python... i never programed in REDhat b4... i just want to know where to start
Posted by Neumann [send private reply] at September 20, 2002, 06:57:28 PM
I showed you where to start... a text editor and a command line compiler...
If you want to program in C++, use 'g++' instead of 'gcc'.
Posted by diegoeskryptic [send private reply] at September 20, 2002, 09:15:07 PM
I'm assuming that I have to download A compiler... well if that is so.. i dont have the internet for REDHAT... due to my windows MODEM... If I do need to download a compiler... where could a modem that is compatible with both LINUX AND WINDOWS?... thank you....
Posted by Neumann [send private reply] at September 20, 2002, 09:24:01 PM
I bet 5$ that you already have Python, G++, GCC and many other compiler/interpreter installed...
Posted by mop [send private reply] at September 20, 2002, 09:34:09 PM
Yes, you will not have to download anything, its all there for you right now.
Posted by buzgub [send private reply] at September 20, 2002, 10:00:28 PM
If you haven't got GCC/G++/python and friends installed, you should look on your red hat cds for packages with names like gcc*.rpm
Posted by unknown_lamer [send private reply] at September 20, 2002, 10:23:41 PM
gcc is a generic frontend that can compile any language that gcc has a 'middle end' for using extensions. It will call the C++ stuff for .C, .cxx, .cpp, and .cc IIRC.
Posted by Neumann [send private reply] at September 20, 2002, 10:59:33 PM
I'm not exactly sure about that but I think 'gcc' doesn't automatically include iostream libs when you use it to compile C++. It's easier to simply use 'g++' for beginners :o
Posted by buzgub [send private reply] at September 20, 2002, 11:00:50 PM
I'm fairly sure that it's the c++ libs in general that it won't link in.
Posted by ItinitI [send private reply] at September 21, 2002, 09:13:55 AM
gcc is the GNU Compiler Collection, it's not realy an IDE, so you have to use a text editor or something to type your code in, then save the file. To compile it type "gcc filename.c" [Using the apropriate file name and extension] then hit enter, in the command shell, it should compile, or give you an error.
Posted by diegoeskryptic [send private reply] at September 21, 2002, 05:30:23 PM
ok... so i just look for GCC?.. ahh... now where do I get a modem that is compatible with both LINUX and WINDOWS>>. does any one know?
Posted by ItinitI [send private reply] at September 21, 2002, 07:31:24 PM
I believe that most external serial port modems are compatiable with just about any descent operating system. Some USB modems are winmodems though. If you find a good one let me know.
Register as a new user | |||||||||||||||||||