Ben Combee escreveu:

At 06:59 PM 12/19/2004, you wrote:

Hi there,

Is possible to use the <string> header in a 68K Palm application?

Using which toolset? CodeWarrior, PRC-Tools, or Palm OS Developer Suite?

With PODS 1.1. What I want is to port STLPORT to PODS 1.1 for a 68k project. but I just want to use a little of the headers like <string> and <vector> and I am getting a lot of errors (see below).



I am trying to use <string> header inside a 68K Palm application but it looks like that do not has this header (it has other headers like <stringmgr.h>) but is not accepting the <string> header. I am getting the error:

src/Framework/Object.h:6: string: No such file or directory


That makes it sound like you don't have an include path setup for the folder that has the standard C++ headers.

I tried to include the STLPORT folder that I installed but I got a lot of errors related with pthread.h. if I use the PalmOSCygwin g++ to compile it works, but I get a lot of errors when I use the PalmOSCygwin m68k-palmos-g++.


At PODS 1.1 documentation it stat that stlport libs is now supported, I can find a "PalmOSTools/StlPort" inside "Palm OS Developer Suite" folder but I don't know how to use it. I tried too to perform a STLPORT instalation inside PalmOSCygwin it works for cygwin, but I get the same errors for PODS when compiling:

$ m68k-palmos-g++ -c -I"/usr/stlport" -I "/usr/include" src/Framework/Object.c
pp -I"src/Device/" -I"src/Main/" -I"src/Framework/" -I"src/Game/" -I"src/Game/G
raphicBoard/" -I"src/Game/Board" -Isrc/ -Isrc/Framework/ -Isrc/Game/ -Isrc/
Game/Board/ -Isrc/Game/GraphicBoard/ -Isrc/Main/ -palmos5r4 -D__PALMOS__=0x
05000000 -O0 -g -Wall -DPALMOS_DEVICE -o Debug/Object.o
In file included from /usr/stlport/stl/_config.h:71,
from /usr/stlport/stl/_prolog.h:10,
from /usr/stlport/string:24,
from src/Framework/Object.h:6,
from src/Framework/Object.cpp:1:
/usr/stlport/stl/_site_config.h:19: warning: `_STLP_NO_OWN_IOSTREAMS' redefined
/usr/stlport/stl_user_config.h:45: warning: this is the location of the previous
definition
In file included from /usr/stlport/pthread.h:26,
from /usr/stlport/stl/_threads.h:140,
from /usr/stlport/stl/_alloc.h:64,
from /usr/stlport/memory:32,
from /usr/stlport/stl/_string.h:23,
from /usr/stlport/string:45,
from src/Framework/Object.h:6,
from src/Framework/Object.cpp:1:
/usr/stlport/../include/pthread.h:75: `pthread_attr_t' was not declared in this
scope
/usr/stlport/../include/pthread.h:75: parse error before `)'
/usr/stlport/../include/pthread.h:76: parse error before `*'
/usr/stlport/../include/pthread.h:77: parse error before `*'
/usr/stlport/../include/pthread.h:78: parse error before `*'
/usr/stlport/../include/pthread.h:79: parse error before `*'
/usr/stlport/../include/pthread.h:80: parse error before `*'
/usr/stlport/../include/pthread.h:81: `pthread_attr_t' was not declared in this
scope
/usr/stlport/../include/pthread.h:81: parse error before `)'
/usr/stlport/../include/pthread.h:82: `pthread_attr_t' was not declared in this
scope
/usr/stlport/../include/pthread.h:82: parse error before `,'
/usr/stlport/../include/pthread.h:83: `pthread_attr_t' was not declared in this
scope
/usr/stlport/../include/pthread.h:83: parse error before `,'
/usr/stlport/../include/pthread.h:84: `pthread_attr_t' was not declared in this



I found the following forum topic (link below) that a stlport user suceeded in port STLPORT to Codewarrior for Palm, may I try to use it? Or if it work with CW, do not means that will works with PODS?:


http://www.stlport.com/dcforum/DCForumID7/2007.html


thanks

Erico
Visit our PalmOS forums at: http://forums.micromagiclabs.com




-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Forum Archives: http://news.palmos.com/read/all_forums/





--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to