help-source-highlight
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-source-highlight] source-highlight on solaris?


From: Lorenzo Bettini
Subject: Re: [Help-source-highlight] source-highlight on solaris?
Date: Mon, 26 Apr 2010 11:52:15 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Lightning/1.0b1 Thunderbird/3.0.4

Hi Stefan

please try with the attached header and C++ files, these should solve the problem (FILE is defined in cstdio and I forgot to include that file; probably gcc includes it by default).

Please let me know

cheers
        Lorenzo

On 04/23/2010 02:42 PM, Stefan Palm wrote:
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



--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134     (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net

Attachment: fileutil.cc
Description: Text Data

Attachment: fileutil.h
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]