Hi Lorenzo.
While searching for the stl headers I realized that Sun C++ comes with two
versions of the standard library: libCstd and STLport.
When switching to STLport your "setexample.cpp" works:
adebld1z:/tmp> CC -library=stlport4 setexample.cpp -o setexample.bin
adebld1z:/tmp> ./setexample.bin
strings contains: this is a test
myset contains: a is test this
Adding the "-library=stlport4" to CXXFLAGS when building source-highlight
helped to escape the error I initially reported, but now I get another one:
gmake[4]: Entering directory
`/home/spalm0/work/source-highlight-3.1.3/lib/srchilite'
source='sourcehighlight.cpp' object='sourcehighlight.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../../build-aux/depcomp \
/bin/bash ../../libtool --tag=CXX --mode=compile CC -DHAVE_CONFIG_H -I.
-I../.. -I../../src -I../../gl -I../../gl -library=stlport4 -I/swmtools/include
-I/swmtools/include/boost -c -o sourcehighlight.lo sourcehighlight.cpp
libtool: compile: CC -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../gl
-I../../gl -I/swmtools/include -library=stlport4 -I/swmtools/include
-I/swmtools/include/boost -c sourcehighlight.cpp -KPIC -DPIC -o
.libs/sourcehighlight.o
"fileutil.h", line 55: Error: "," expected instead of "*".
"fileutil.h", line 60: Error: Multiple declaration for FILE.
"fileutil.h", line 60: Error: "," expected instead of "*".
3 Error(s) detected.
Bye,
Stefan
----- Ursprüngliche Mail -----
Von: "Lorenzo Bettini"<address@hidden>
An: "discussion list for source-highlight"<address@hidden>
Gesendet: Freitag, 23. April 2010 10:17:00
Betreff: Re: [Help-source-highlight] source-highlight on solaris?
On 04/21/2010 10:49 AM, Stefan Palm wrote:
Stefan
please try with this other example which should mimic the same types of
the code which generates the compiler error, and let me know
Hi Lorenzo,
that sample won't work:
adebld1z:/tmp> CC setexample.cpp -o setexample.bin
"setexample.cpp", line 30: Error: Could not find a match for
std::set<std::string>::insert(std::list<std::string>::const_iterator,
std::list<std::string>::const_iterator) needed in main().
1 Error(s) detected.
HTH,
Stefan
OK
now we found a smaller example generating the same error :)
it looks like your compiler's stl implementation is not that standard...
could you please send me the header file "set" which is part of your stl
header files?
thanks
Lorenzo