|
From: Henri H. <he...@or...> - 2006-02-06 03:14:58
|
Hi Mike,
This is a problem I've seen with StdString.h when compiling with gcc4. You
have several options.
* Compile with the following gcc switch: -fpermissive (will produce tons of
warnings)
* Use gcc3
* Use cvs head instead 0.3 where StdString.h has been upgraded (or else wait
for oreka 0.4 that I should release probably this week).
Cheers
Henri
-----Original Message-----
From: ore...@li...
[mailto:ore...@li...] On Behalf Of Mike Auty
Sent: 05 February 2006 12:23
To: ore...@li...
Subject: [Oreka-devel] Compilation problems under linux...
Hi,
I'm trying to create a gentoo ebuild so that I can test out oreka
easily, however I'm having a few build problems. I've managed to get
autoconf and automake etc to create a configure script which runs and
seems all successful. The problem however arrives once I start to
compile orkbasecxx using make. I get the folloing error back, and I'm
not sure what to do to fix it. Any ideas, comments or suggestions for
things I can try would be greatly appreciated. If there's any further
information I can provide to help diagnose the problem, just ask and
I'll be happy to provide it. Thanks,
Mike 5:)
make all-recursive
make[1]: Entering directory `/home/mike/tmp/oreka-0.3/orkbasecxx'
Making all in messages
make[2]: Entering directory `/home/mike/tmp/oreka-0.3/orkbasecxx/messages'
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I. -I.. -I.. -D_REENTRANT -g -O2 -MT AsyncMessage.lo -MD -MP -MF
".deps/AsyncMessage.Tpo" -c -o AsyncMessage.lo AsyncMessage.cpp; \
then mv -f ".deps/AsyncMessage.Tpo" ".deps/AsyncMessage.Plo"; else rm -f
".deps/AsyncMessage.Tpo"; exit 1; fi
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -D_REENTRANT -g -O2 -MT
AsyncMessage.lo -MD -MP -MF .deps/AsyncMessage.Tpo -c AsyncMessage.cpp
-fPIC -DPIC -o .libs/AsyncMessage.o
In file included from ../OrkBase.h:26,
from Message.h:22,
from AsyncMessage.h:18,
from AsyncMessage.cpp:14:
../StdString.h: In member function `CStdStr<CT>& CStdStr<CT>::ToUpper()':
../StdString.h:1959: error: there are no arguments to `empty' that
depend on a template parameter, so a declaration of `empty' must be
available
../StdString.h:1959: error: (if you use `-fpermissive', G++ will accept
your code, but allowing the use of an undeclared name is deprecated)
../StdString.h: In member function `CStdStr<CT>& CStdStr<CT>::ToLower()':
../StdString.h:1978: error: there are no arguments to `empty' that
depend on a template parameter, so a declaration of `empty' must be
available
../StdString.h: In member function `CT* CStdStr<CT>::GetBuf(int)':
../StdString.h:2001: error: there are no arguments to `size' that depend
on a template parameter, so a declaration of `size' must be available
../StdString.h: In member function `CStdStr<CT> CStdStr<CT>::Mid(int)
const':
../StdString.h:2908: error: there are no arguments to `size' that depend
on a template parameter, so a declaration of `size' must be available
../StdString.h: In member function `CStdStr<CT> CStdStr<CT>::Mid(int,
int) const':
../StdString.h:2921: error: there are no arguments to `size' that depend
on a template parameter, so a declaration of `size' must be available
../StdString.h:2922: error: there are no arguments to `size' that depend
on a template parameter, so a declaration of `size' must be available
../StdString.h:2924: error: there are no arguments to `size' that depend
on a template parameter, so a declaration of `size' must be available
../StdString.h:2928: error: there are no arguments to `size' that depend
on a template parameter, so a declaration of `size' must be available
make[2]: *** [AsyncMessage.lo] Error 1
make[2]: Leaving directory `/home/mike/tmp/oreka-0.3/orkbasecxx/messages'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mike/tmp/oreka-0.3/orkbasecxx'
make: *** [all] Error 2
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Oreka-devel mailing list
Ore...@li...
https://lists.sourceforge.net/lists/listinfo/oreka-devel
|