Author Topic: Basic Dev On Zaurus With Gcc  (Read 5478 times)

snk4ever

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Basic Dev On Zaurus With Gcc
« 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.

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Basic Dev On Zaurus With Gcc
« Reply #1 on: February 10, 2006, 11:57:38 am »
SLC-860 cacko / senao wifi

chiark

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://www.chiark.com
Basic Dev On Zaurus With Gcc
« Reply #2 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?

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Basic Dev On Zaurus With Gcc
« Reply #3 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.
SLC-860 cacko / senao wifi

chiark

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://www.chiark.com
Basic Dev On Zaurus With Gcc
« Reply #4 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

snk4ever

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Basic Dev On Zaurus With Gcc
« Reply #5 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 ?

scheck.r

  • Sr. Member
  • ****
  • Posts: 320
    • View Profile
    • http://
Basic Dev On Zaurus With Gcc
« Reply #6 on: February 13, 2006, 05:21:28 pm »
SL-C1000 from PriceJapan(cheap and very fast shipping) with EA-70 power adapter, iRiver USB Host cable, PDAIR case, pentopia stylus, ultra clear screen-protector from shop.brando.com.hk only $3 for shipping worldwide
4GB Hitachi Microdrive, 1GB Kingston Elite Pro CF, 4GB Transcend 150x SD, Symbol Spectrum 4137 CF WiFi(low power)
PdaXrom pdaxii13 5.4.9 updated with Kkazakov13's feed. I owned a SL-6000L before

Armagon

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • http://
Basic Dev On Zaurus With Gcc
« Reply #7 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]

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
Sharp Zaurus SL-C1000 -- 2 GB SD Card -- Zippy Slim Mini Keyboard -- Loving pdaXii13!

apink

  • Full Member
  • ***
  • Posts: 109
    • View Profile
Basic Dev On Zaurus With Gcc
« Reply #8 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?
--current use--
linux chroot on top of lineage  on cell phone

--past handhelds--
pandora
ben nanonote
zaurus sl-c1000

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Basic Dev On Zaurus With Gcc
« Reply #9 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.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

apink

  • Full Member
  • ***
  • Posts: 109
    • View Profile
Basic Dev On Zaurus With Gcc
« Reply #10 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.
--current use--
linux chroot on top of lineage  on cell phone

--past handhelds--
pandora
ben nanonote
zaurus sl-c1000