Compiling and running programs in Lucid Puppy 2.5.2
PuppyThis forum is for the discussion of Puppy Linux.
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.
Compiling and running programs in Lucid Puppy 2.5.2
I have downloaded devx and configured it with puppy and it works well. But i cannot compile and run c++ programs. I used the g++, but it always shows sum error even if everything is correct. I think that the libraries for c++ are old and so i am downloading latest release of gcc. Will it help me compiling and running c++ programs? If no, then how do i do it? And how do i add other programming languages in my puppy, like latest ver of python, ruby and some other languages?
I have downloaded devx and configured it with puppy and it works well. But i cannot compile and run c++ programs. I used the g++, but it always shows sum error even if everything is correct.
Spell out your words. And if everything is correct, you won't have errors.
Quote:
I think that the libraries for c++ are old and so i am downloading latest release of gcc. Will it help me compiling and running c++ programs? If no, then how do i do it? And how do i add other programming languages in my puppy, like latest ver of python, ruby and some other languages?
No idea, since you don't tell us what error(s) you're getting. Also, you say you're using "Lucid Puppy 2.5.2"?? That's VERY old, and quite likely unsupported...the latest version is 5.2.8. The best way to get everything correct, is to do a fresh install of a current version of Linux. Python, ruby, and 'other languages' will be automatically installed/updated, as will g++ and development libraries.
there might be errors in the above program but the one i tried to compile was 100% correct. When i compiled it, it gave errors. 1 related to the main(), 1 related to cout. I cannot tell what were the actual errors because i am posting this reply via cell phone. What can be the problem?
there might be errors in the above program but the one i tried to compile was 100% correct. When i compiled it, it gave errors. 1 related to the main(), 1 related to cout. I cannot tell what were the actual errors because i am posting this reply via cell phone. What can be the problem?
Well again, if the code was 100% correct, you wouldn't get errors. Errors are a good indication that there is a problem.....have you tried to compile/run any OTHER C++ programs, aside from the one you posted/wrote??
I did not use the conventions you posted earlier, i used the traditional iostream.h and void main(). I think that must be the problem. Is it the Linux convention that main should return int and the header file should be iostream and not iostream.h?
#include <iostream>
using namespace std;
int main()
{
cout<<"HEY, you, I'm alive! Oh, and Hello World!\n";
cin.get();
}
Last edited by WarTurkey; 03-30-2012 at 09:17 AM.
Reason: After hitting "Post," I figured perhaps I shouldn't have posted this, but I cannot delete it!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.