How can I compile C and C++ in Linux operating system? Please help.
Dear Cprogramming.com members and administrators,
Good day to everyone. I just want to ask how would I compile my C, and C++ source code in Linux (typically Ubuntu and Fedora) operating system?
Here's the scenario: Our institution is changing our O.S. from Windows to Linux, and thus, my compiler Turbo C and TCLITE (both run in DOS mode), will never work now for Linux. Some forums says it's already in the system of Linux (they said something like gcc), but our personnel said the Ubuntu/Fedora they'd installed doesn't have the gcc compiler; but forum says this is not true, because gcc is already in every Linux O.S., so I don't want to argue with our personnel. :(
That is why I am asking for everyone's kindest help if you could assist me how can I get/install/use compilers for C and C++ on Linux. And I hope I could get very basic instruction if you please (from installing, using, compiling, etc. Example: first download this, second do that, third apply this etc.). I am totally not familiar with Linux and I really appreciate everyone's help on this. I have downloaded C/C++ for Linux but they are all just IDEs (environments), no compiler was included.
Thank you again and God bless everyone.
Yours truly,
MarkSquall
If it is already there, how would I install it?
Dear robatino,
Thank you for the information you gave, but I tried to compile my sample C file, but it said that gcc is not a valid command (I'm sorry I didn't memorized the exact error message). Where could I find the package repos, is it a folder or an .exe file?Is there a way that I could install it myself? What should I do first, second, third, etc.? Can I install gcc even after Ubuntu/Fedora was installed? And can gcc compile C++ source code too?
Thank you and God bless.
Yours truly,
MarkSquall