how to add new lib and dynamic library

hello everyone:     i want to add new lib direction and dynamic library.but i am failed. i try to add them in Macro.tianhe_intel. i add method ,like this:below the bont words are my new add. this add method is error. i don't know how to add,could someone help me? thank you very much. 122 CFLAGS        := $(CPPDEFS)    123 FIXEDFLAGS    := -132    124 FREEFLAGS     := -FR    125 FFLAGS        := $(CPPDEFS) -g -fp-model precise -convert big_endian -assume byterecl -ftz -traceback -shared-intel -mcmodel=large -cpp  -lstdc++  -L${DAG_HOME}/lib -L/opt/intel/com        poser_xe_2013.0.079/tbb/lib/intel64/libtbb.so.2 -ltbb -ldag_task_scheduler  137 INCLDIR := -I.    138 ifneq ($(strip $(INC_NETCDF)),)    139 INCLDIR += -I$(INC_NETCDF)    140 endif    141 ifneq ($(strip $(MOD_NETCDF)),)    142 INCLDIR += -I$(MOD_NETCDF)    143 endif    144 ifneq ($(strip $(INC_MPI)),)    145 INCLDIR += -I$(INC_MPI)    146 endif    147 ifneq ($(strip $(INC_PNETCDF)),)    148 INCLDIR += -I$(INC_PNETCDF)    149 endif    150 INCLDIR += -I${DAG_HOME}/include
error informations:  vi ../../CAS_ESM/FD14IAP5/run/ccsm.bldlog.160527-14432472 /vol6/home/zhangh1/wangm2/CAS_ESM/FD14IAP5/lib/libatm.a(nlitti.o): In function `nlitti':      73 /vol6/home/zhangh1/wangm2/models/atm/cam/src/dynamics/iap/nlitti.F90:55: undefined reference to `acemesh_runtime_init'
 

jedwards

CSEG and Liaisons
Staff member
The -L flag is the path to the directory.  It should be-L/opt/intel/composer_xe_2013.0.079/tbb/lib/intel64/ -ltbb[/b]For a shared library you also add the path to LD_LIBRARY_PATH in the environment.
 
Back
Top