This is a mixed language C++ solution with several underlying fortran projects. Builds on windows with VS2015 (toolset 140) and intel fortran and builds on mac and linux with GCC6 via makefiles. Really want to build static executables for redistribution on mac, so I bought intel C++ and fortran for mac. I've got all the supporting objects to build and all the .a files built with ar (with the same makefiles, just using ifort and icpc). But I can't get the executable to link: looks like all of the fortran intrinsics are not found (here is the first of many):
Undefined symbols for architecture x86_64:"_for_adjustl", referenced from: _model_input_output_interface_mp_mio_store_instruction_set_ in libmio.a(mio.o)
What additional options do I need to invoke compile-and-link the executable? I'm sure its something simple, but I'm stumped.
Here are some makefile details:
ILIBDIR :='/opt/intel/lib/'
CFLAGS := '-pthread -std=c++11 -O2'
FFLAGS := '-O2 -c -fpp -free'
LFLAGS := '-static -L$(ILIBDIR)'
make FC=${FC} CC=${CC} CXX=${CXX} CFLAGS=${CFLAGS} FFLAGS=${FFLAGS} INCLUDES=$(INCLUDES) LFLAGS=$(LFLAGS) LIBS=$(LIBS) ILIBDIR=$(ILIBDIR) LIBLDIR=$(LIBLDIR) LIBS=$(LIBS) -C programs/pest++ -f makefile_linux pestpp
Thanks in advance