On 07/20, Philipp Kampmann via Tech-talk wrote:
> A corresponding "compiler/clang" path does not exist in my build. I
> would like to compile epics headers with both, g++ and clang. Does
> someone know if it works and how I can build EPICS with both compilers
> supported?
I'm not sure I understand what you're asking. Are you trying to compile
one library with GCC and a program that links against it with Clang,
or vice versa? Basically, you can't mix compilers in this situation
when the library is written in C++. You need to compile all of your
software where C++ libraries are involved with one compiler. With C,
you could do this, but with C++ you can't because the implementations of
the standard library are typically not ABI compatible, and since parts
of the EPICS Base libraries are C++, you can't mix compilers with EPICS
Base (e.g., in general it would be unsound to compile EPICS Base with
GCC and then compile a program with Clang that links with one of those
GCC-compiled C++ EPICS Base libraries).
Lewis
- References:
- EPICS compilation for gcc and clang Philipp Kampmann via Tech-talk
- Navigate by Date:
- Prev:
EPICS compilation for gcc and clang Philipp Kampmann via Tech-talk
- Next:
Re: EPICS compilation for gcc and clang Johnson, Andrew N. via Tech-talk
- 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:
EPICS compilation for gcc and clang Philipp Kampmann via Tech-talk
- Next:
Re: EPICS compilation for gcc and clang Johnson, Andrew N. via Tech-talk
- 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
|