[SOLVED] help with use the c compiler on redhat 6.1, been there for over 2 weeks now!!!!!!!!
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
help with use the c compiler on redhat 6.1, been there for over 2 weeks now!!!!!!!!
hi guys, on windows i've used it's c compilers , but i just installed the redhat system on my cp , and i don't know how to use it's compiler, please could you help me , either with some commands ,or something else , to help me at least compile a "hello world" program.thanks
Linux and other operating systems do not require any specific file name suffix for programs. Any program you use must be in one of the directories listed in the PATH environment variable (just like in Windows), or you need to specify the exact path to it. When the program is in the current directory, current directory ./ is a suitable path. Any relative path, like ../hello if hello was in the parent directory, will work too.
At this point, your major problem is that Windows is all you have experience with. You expect computers and environments to behave in a certain way -- the Windows way --, and that is just not the case. Unless you can drop the "Windows-isms", your expectations due to your Windows experience, you will be very, very frustrated.
If you can convince yourself that just because Windows works in a specific way, there is no reason to expect other computers behave the same way, nor is there any reason to assume the Windows way is the best way, you will find Linux easy to learn and to get accustomed to. If not, well, I'd say you'd be happier sticking with Windows.
thank you very much for the corrections , i tried and retried and finally it went through thank you very much for your help , i have had a first experience , let me try now to go further , if i find more problems i will ask, thank you very much for your help and stay blessed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.