Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I installed netbeans on ubuntu9.10 and also installed the C/C++ plugin. But when i run the code for "HELLO WORD" an error is shown. I also tried to declare conio.h but output comes as header file not found.
I guess i gota install the header libraries.
Please help me in this.
--ok i dint know that conio.h is for windows platform.
I used iostream.h and compilation is ok but when i run it, terminal opens and its written :
"Press [ENTER] to close the terminal"
--But theres no "Hello word"
Kindly also tell me how can I export my compilation as an executable file on linux and for windows(.exe).
Last edited by Zac Matthew Joseph; 03-19-2010 at 01:26 AM.
--ok i dint know that conio.h is for windows platform.
I used iostream.h and compilation is ok but when i run it, terminal opens and its written :
"Press [ENTER] to close the terminal"
--But theres no "Hello word"
Could you show the code?
Quote:
Kindly also tell me how can I export my compilation as an executable file on linux and for windows(.exe).
You need to compile the executable on Windows to get Windows executable and same for Linux.
i know basic c programming on windows and conio.h is important header for scanf function.
But on linux i cannot use that cause its not ment for linux.
But i need to use scanf function on linux using stdio.h header but everytime i get an error. There are some other functions like sscanf and others and im confused. I cannot get any help from google.
Its the fundamental function of C so linux people must be aware of this!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.