View Single Post
StefanL's Avatar
Posts: 298 | Thanked: 341 times | Joined on Aug 2010 @ This world :)
#7
Originally Posted by nicholes View Post
Here i have done a few things on my N900 from

http://ossguy.com/?p=475

to run .cpp files

and when i try to run this using g++ it shows error

here is my programme

# include <stdio.h>
# include <conio.h>
int main (void)
{
printf ("hlloe wolrd");
getch();

}
Your problem is using a non-standard header file and function (google getch()), this was invented for DOS and only supported by certain compilers. Try using one of the standard input functions and get rid of conio.h if you want to compile it on the N900.
__________________
My phone evolution: Nokia 7610 (RIP), N82 (RIP), BB9000 (RIP), N900, BB9760 (RIP), N8, BB9900, N9 64GB
Working : Python Gorillas (Maemo5) Faircrack0.50 Update (Maemo5)
Not so much : WPScrack (Maemo5)
 

The Following User Says Thank You to StefanL For This Useful Post: