I was wondering someone can see why prc-tools-2.0 is having a problem with templates.
All templates declared in #included files from OSCompat.hpp are failing. Any and ALL
of them! declaring the same template inside OSCompat.hpp doesn't fail.
How is g++ getting confused???
All I'm doing in OSCompat.hpp is this:
// SGI STL stuff
#define _NOTHREADS
#define __STL_USE_NEW_IOSTREAMS
//#include <string>
//#include <vector>
//#include <map>
//#include <algorithm>
#include <stl_config.h>
#include <stl_relops.h>
m68k-palmos-g++ -c -palmos3.5 -DCMD_LINE_BUILD -DEMULATION_LEVEL=0 -I. -I../generic
-isystem /dev/sgi_stdlib-20000321
../generic/tinytcl.cpp -o tinytcl.o
In file included from OSCompat.hpp:20,
from ../generic/tinytcl.cpp:31:
/dev/sgi_stdlib-20000321/stl_relops.h: In function `bool rel_ops::operator !=(const
_Tp &, const _Tp &)':
/dev/sgi_stdlib-20000321/stl_relops.h:37: template with C linkage
/dev/sgi_stdlib-20000321/stl_relops.h: In function `bool rel_ops::operator >(const _Tp
&, const _Tp &)':
/dev/sgi_stdlib-20000321/stl_relops.h:42: template with C linkage
/dev/sgi_stdlib-20000321/stl_relops.h: In function `bool rel_ops::operator <=(const
_Tp &, const _Tp &)':
/dev/sgi_stdlib-20000321/stl_relops.h:47: template with C linkage
/dev/sgi_stdlib-20000321/stl_relops.h: In function `bool rel_ops::operator >=(const
_Tp &, const _Tp &)':
/dev/sgi_stdlib-20000321/stl_relops.h:52: template with C linkage
make: *** [tinytcl.o] Error 1
uncommenting #include <string> and I get pages and pages of
'template with C linkage' errors. What's going on with this?
It doesn't make sense.
--
* David Gravereaux *
Tomahawk Software Group
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html