Thread
:
c++ getting started guide for maemo4
View Single Post
BruceL
2008-08-25 , 05:22
Posts: 305 | Thanked: 154 times | Joined on Aug 2006 @ Colorado
#
8
I believe that the debs you need are in the extras repository. if not, just search for them.
Install gcc and gcc-3.4
then Install g++ and g++-3.4
That is technically all you need but you will have to use a lousy text editor.
If you have a bluetooth keyboard geany is great. Just search for a thread on these forums. It's in the first post.
If you are ok with the command line you can install the joe editor. There are a variety of editors and any of them will work, but those that highlight C++ syntax and show line numbers are helpful.
I also suggest installing gdb. It's a standard linux debugger. But don't overwhelm yourself.
Here is what you do:
Type your program in using a text editor and save it with the ending .cpp (or .h for the header file)
Next, run xterm and "cd" to the folder where you saved your files. So, if you saved them in MyDocs/MyPrograms type cd /home/user/MyDocs/MyProrgams
Now type
g++ MyProgName.cpp
If all goes well you will have a program called MyProgName.a (I think .a is the default)
The very first time you will need to type chmod +x MyProgName.a
That sets execution permissions.
To run the program type
./MyProgName.a
There are a lot of command line option to gdb. I suggest following some kind of "dummies guide" your first time.
Good luck!
__________________
Give me immortality or give me death!
Quote & Reply
|
The Following 2 Users Say Thank You to BruceL For This Useful Post:
qwerty12
,
retrow
BruceL
View Public Profile
Send a private message to BruceL
Find all posts by BruceL