OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: snk4ever on February 10, 2006, 11:38:58 am

Title: Basic Dev On Zaurus With Gcc
Post by: snk4ever on February 10, 2006, 11:38:58 am
Hello !

I'm a student and I search what package I need to install to have all the standard libraries like stdlib, string, math, signal and others...

I code little programes using this and would like to be able to code on the go.
Title: Basic Dev On Zaurus With Gcc
Post by: pgas on February 10, 2006, 11:57:38 am
for pdaxrom see:
http://mail.pdaxrom.org/contrib/docs/OnBoardDevelopment.html (http://mail.pdaxrom.org/contrib/docs/OnBoardDevelopment.html)
Title: Basic Dev On Zaurus With Gcc
Post by: chiark on February 13, 2006, 04:13:33 am
I installed binutils, lib headers, gcc and make from the feed and it seems to work - is this not a good idea for some reason?
Title: Basic Dev On Zaurus With Gcc
Post by: pgas on February 13, 2006, 04:20:45 am
Quote
I installed binutils, lib headers, gcc and make from the feed and it seems to work - is this not a good idea for some reason?

no, it's just easier and takes less space to use the zgcc image.
Title: Basic Dev On Zaurus With Gcc
Post by: chiark on February 13, 2006, 06:24:01 am
Thanks for that   .  Less space sounds like a good enough reason, I'll have a try with it
Title: Basic Dev On Zaurus With Gcc
Post by: snk4ever on February 13, 2006, 04:21:48 pm
thanks, the only problem is I don't know where to find the pcre ?
It doesn't look like it is in the feed...
And is the gcc img from release 12 still OK with 1.1.0beta1 ?
Title: Basic Dev On Zaurus With Gcc
Post by: scheck.r on February 13, 2006, 05:21:28 pm
pcre 5.0:
Cxxxx feed (http://mail.pdaxrom.org/1.1.0beta1/Zaurus-C1000-C3100/feed/) or Cxxx feed (http://mail.pdaxrom.org/1.1.0beta1/Zaurus-7x0-860/feed/) or
6000 feed (http://mail.pdaxrom.org/1.1.0beta1/Zaurus-SL6000/feed/) or
5x00 feed (http://mail.pdaxrom.org/1.1.0beta1/Zaurus-5000D-5500/feed/)
Title: Basic Dev On Zaurus With Gcc
Post by: Armagon on February 14, 2006, 04:29:18 pm
Quote
And is the gcc img from release 12 still OK with 1.1.0beta1 ?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=114688\")

I was just about to second your question, when I think I found the answer.

The pdaXrom "Tools for developers" page ( in the upper left or pdaxrom.org, click on Downloads | Dev Tools, or just go to [a href=\"http://www.pdaxrom.org/index.php?showid=33&menuid=11]http://www.pdaxrom.org/index.php?showid=33&menuid=11[/url] ) links to a native SDK for 1.1.0beta1 that is zgcc 3.4.5.

Armagon
Title: Basic Dev On Zaurus With Gcc
Post by: apink on March 19, 2006, 11:02:49 pm
Another novice programmer here:

I am trying to natively compile some programs that include <iostream>.  I have tried <iostream.h>, "iostream.h", and "iostream" with no luck.  I am attempting to use the cout command.  I have zgcc-3.4.4 on rc12.

Can someone point a newbie in the right direction?  Where do I get the iostream library?  How do I find out what libraries are included with zgcc?  Is cout part of another library?
Title: Basic Dev On Zaurus With Gcc
Post by: Meanie on March 19, 2006, 11:45:49 pm
Quote
Another novice programmer here:

I am trying to natively compile some programs that include <iostream>.  I have tried <iostream.h>, "iostream.h", and "iostream" with no luck.  I am attempting to use the cout command.  I have zgcc-3.4.4 on rc12.

Can someone point a newbie in the right direction?  Where do I get the iostream library?  How do I find out what libraries are included with zgcc?  Is cout part of another library?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=119314\"][{POST_SNAPBACK}][/a][/div]

are you trying to compile c++ code with a c compiler? gcc is a c compiler. to compile c++ code, you need to use g++
also, <iostream.h> is an older c++ interface. <iostream> is the newer one and you should try using it instead of iostream.h unless you are trying to compile older programs. you should also not mix the two.
a note on the <iostream> vs "iostream". If the header file is in the default include directory, then you use <iostream>. you would use "iostream" if it was a custom header file which is located locally with the source code, ie the same directories as your .cpp files.
Title: Basic Dev On Zaurus With Gcc
Post by: apink on March 20, 2006, 10:14:04 am
Quote
are you trying to compile c++ code with a c compiler? gcc is a c compiler. to compile c++ code, you need to use g++
also, <iostream.h> is an older c++ interface. <iostream> is the newer one and you should try using it instead of iostream.h unless you are trying to compile older programs. you should also not mix the two.
a note on the <iostream> vs "iostream". If the header file is in the default include directory, then you use <iostream>. you would use "iostream" if it was a custom header file which is located locally with the source code, ie the same directories as your .cpp files.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=119317\"][{POST_SNAPBACK}][/a][/div]

Thanks.