Current Page:
NeXtMidas Training
X-Midas Interoperability
XBC
XBC Setup
|
|
- Fortran and C/C++ compilers:
- Fortran compiler and C/C++ compilers are required for use with XBC. A complete list of supported
compilers is in the NeXtMidas User's Guide.
- From time to time people ask why a Fortran and/or C/C++ compilers are required for XBC. The
answer is simple: because XBC is for using Fortran and C++ host primitives from NeXtMidas.
- By default NeXtMidas will try to use the Intel compiler, unless
XM_FORTRAN
or NM_FORTRAN is set to the compiler name (ifc ,
ifort , pfc ).
XM_FORTRAN is usually set by X-Midas.
NM_FORTRAN overrides XM_FORTRAN and is ignored by
X-Midas.
- Setup for XBC:
- Add the XBC option tree to the path.
- Build XBC using:
nM> make all xbc
- Important notes:
- Always use
MAKE ALL <OPT> when building any option tree with
X-Midas primitives. Failure to do this can cause problems for the X-Midas message
configuration.
- Always make sure that
XBC is on the path before building or
using any host primitives.
Don't Make This Mistake: |
A known issue exists that will prevent the XBC option tree from
building successfully when using 64-bit Intel 9.1/10.x/11.x Fortran
compilers for NeXtMidas versions prior to 2.9.2.
To work-around this issue:
Open $NMROOT/nxm/sys/cfg/build.props . Next, remove the
-i-static flag from ifort.comp and
ifort.link lines. Once finished, follow the instructions
under Setup for XBC to build the XBC option tree.
Once this flag is disabled, users will need to run with the LD_LIBRARY_PATH
set to include the Intel libraries.
|
|
|
|