Nick Rees wrote:
3.13 and c++:
>
> We don't use c++ much at all here so the latest releases are testing
> us...
> I would dearly like someone to clarify all this because now it is
> impossible to compile base without a c++ compiler of some sort or
> other.
It is possible to build the 3.13 system without a C++ compiler if you
comment out the C++ codes in base/src/libCom/Makefile.Unix and you
comment out the "cas" and "gdd" lines in CONFIG_BASE. This is the
default in beta4 as I recall. You will of course be unable to use the
ca server library and the data descriptor library.
> We don't have the c++ compiler from Sun and so are forced to use
> g++, and we are finding it has a problem with variable argument lists.
>
Which version of g++ are you using? To find out type "g++ -v".
I frequently compile all of EPICS including Jim's gdd library
with gcc/g++ 2.7.2 here at LANL. I suspect that gcc/g++ 2.6.x would
also work but have not used this version for 9 months or so.
I have been using the GNU compilers on sunos4.
I just finished trying out the GNU build on solaris and it is unable to
compile the log server - something to do with the structures
for SIGHUP. I wil look into it and get back to you.
>
> I did ask once which c++ compilers were to be supported but got no
> reply - I also know Jeff said at one point that he managed to compile
> base with gcc and g++, but I don't know whether it still does.
> How does all this
> effect our support for other hosts (Linux, HP etc?).
>
We are attempting to write portable code. We have not tested all of the
compilers but certainly will be interested in reintegrating any
changes required to get the code to compile on other systems.
Any system that uses GNU compilers such as Linux should not
present problems. HPUX needs to be investigated.
> How
> about the situation that I have - is using Solaris c (because nominally
> we only support the vendor supplied C compilers) with GNU g++
> supported, or is there a library problem sometimes?
It is possible to call sunPro compiled C code from gcc compiled code.
I suspect that it would also be possible to call sunPro compiled C code
from g++. I have not tried this combination (I will later this afternoon).
It is impossible to call sunPro C++ code from g++ compiled C++
code because of C++ symbol name mangling.
Jeff
--
______________________________________________________________________
Jeffrey O. Hill Internet [email protected]
LANL MS H820 Voice 505 665 1831
Los Alamos, NM 87545 USA FAX 505 665 5107
- References:
- Using g++ with 3.13 beta2 Nick Rees
- Navigate by Date:
- Prev:
Hardware Configuration Marty Kraimer
- Next:
Re: Using g++ with 3.13 beta2 Kazuro FURUKAWA
- Index:
1994
1995
<1996>
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Using g++ with 3.13 beta2 Nick Rees
- Next:
Re: Using g++ with 3.13 beta2 Kazuro FURUKAWA
- Index:
1994
1995
<1996>
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|