LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Problem running C++ program in Linux Shell (https://www.linuxquestions.org/questions/programming-9/problem-running-c-program-in-linux-shell-495519/)

Alkibiades 10-27-2006 02:22 PM

Quote:

Originally Posted by Alkibiades
I left out the functions and the variable declarations; methinks they're not very interesting now.

Perhaps a good idea to read previous posts?

Alkibiades

xhi 10-27-2006 02:26 PM

Quote:

Originally Posted by Alkibiades
Perhaps a good idea to read previous posts?

Alkibiades

yeh thats true

just the same as it is normally a good idea to include the complete code when asking for help. snipping out parts you dont find intersting is not a good idea when you dont know what is going on in the code to begin with.

worzel68 10-28-2006 06:51 AM

Hi Alkibiades,

In my experience, compiling under g++ on linux is often much more strict than windows code development programs such as Visual C++. Sometimes code will compile without problems on windows, but will complain about lots of things under g++.
Some of this is due to the settings for the compiler, but I am sorry that it doesn't really help you, as you still have to find all the problems & fix them. Just something to be aware of.

I agree with others - you should provide all the code.


All times are GMT -5. The time now is 01:53 AM.