OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Basic Dev On Zaurus With Gcc
snk4ever
post Feb 10 2006, 08:38 AM
Post #1





Group: Members
Posts: 52
Joined: 12-November 05
From: France
Member No.: 8,522



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.
Go to the top of the page
 
+Quote Post
pgas
post Feb 10 2006, 08:57 AM
Post #2





Group: Members
Posts: 1,097
Joined: 17-December 03
From: Athens, Greece
Member No.: 1,210



for pdaxrom see:
http://mail.pdaxrom.org/contrib/docs/OnBoardDevelopment.html
Go to the top of the page
 
+Quote Post
chiark
post Feb 13 2006, 01:13 AM
Post #3





Group: Members
Posts: 191
Joined: 28-August 05
From: Leeds, England
Member No.: 7,969



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?
Go to the top of the page
 
+Quote Post
pgas
post Feb 13 2006, 01:20 AM
Post #4





Group: Members
Posts: 1,097
Joined: 17-December 03
From: Athens, Greece
Member No.: 1,210



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.
Go to the top of the page
 
+Quote Post
chiark
post Feb 13 2006, 03:24 AM
Post #5





Group: Members
Posts: 191
Joined: 28-August 05
From: Leeds, England
Member No.: 7,969



Thanks for that smile.gif . Less space sounds like a good enough reason, I'll have a try with it biggrin.gif
Go to the top of the page
 
+Quote Post
snk4ever
post Feb 13 2006, 01:21 PM
Post #6





Group: Members
Posts: 52
Joined: 12-November 05
From: France
Member No.: 8,522



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 ?
Go to the top of the page
 
+Quote Post
scheck.r
post Feb 13 2006, 02:21 PM
Post #7





Group: Members
Posts: 320
Joined: 5-December 04
From: Paris, France
Member No.: 5,776



pcre 5.0:
Cxxxx feed or Cxxx feed or
6000 feed or
5x00 feed
Go to the top of the page
 
+Quote Post
Armagon
post Feb 14 2006, 01:29 PM
Post #8





Group: Members
Posts: 106
Joined: 19-October 05
From: Cardston, AB, Canada
Member No.: 8,348



QUOTE(snk4ever @ Feb 13 2006, 01:21 PM)
And is the gcc img from release 12 still OK with 1.1.0beta1 ?
*


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 http://www.pdaxrom.org/index.php?showid=33&menuid=11 ) links to a native SDK for 1.1.0beta1 that is zgcc 3.4.5.

Armagon
Go to the top of the page
 
+Quote Post
apink
post Mar 19 2006, 08:02 PM
Post #9





Group: Members
Posts: 106
Joined: 2-August 05
Member No.: 7,764



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?
Go to the top of the page
 
+Quote Post
Meanie
post Mar 19 2006, 08:45 PM
Post #10





Group: Members
Posts: 2,803
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(apink @ Mar 20 2006, 02:02 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?
*


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.
Go to the top of the page
 
+Quote Post
apink
post Mar 20 2006, 07:14 AM
Post #11





Group: Members
Posts: 106
Joined: 2-August 05
Member No.: 7,764



QUOTE(Meanie @ Mar 19 2006, 08:45 PM)
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.
*


Thanks.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 3rd April 2020 - 09:32 AM