Hi,
I have another problem but this is kinda different than the previous one.
My code is running on a node of a cluster system. It is not possible to share DISLIN libraries with nodes. Thus I need
to compile it with static libraries instead of shared.
In my source code folder
SRC/
DISLIN/ dislin installed here
Version_007/ main source code here
So to compile I use the following make file (trimmed out unrelavant parts :
fcc = ifort
### fcc = /opt/intel/Compiler/11.1/072/bin/intel64/ifort
SUFFX= -c
FLAGS= -O3 -finline-limit=100 -inline-forceinline -unroll=30 -openmp
FLAGDEBUG= -debug
#-check all -traceback
suffix=-c $(FLAGS)
#-O3 -debug -g ## -vec-report2 ##-parallel -par-report2
version= _007
mkllibs=-L~/opt/intel/composer_xe_2011_sp1.8.273/mkl/lib/intel64/ \
-liomp5 -lpthread ##-lmkl_intel_thread -lmkl_intel_lp64
Charpak=-L./ charpak_lib.a dislin-10.2.a
DISLININC=-I../DISLIN/ifc/
objects = mathlibs.o structures_module.o smtables_module.o \
main.o global_variables.o parameters_module.o \
elementmap_module.o energy_module.o opt_parent_module.o \
opt_simplexb_module.o cost_functions_module.o mask_module.o\
analysis_module.o user_interface_module.o opt_montecarlo_module.o graphics.o
#para_type.o types.o enforcefunctions.o inout.o \
initializers.o analysis.o opt.o main.o
#enforce.o analysis.o inout.o main.o \
md.o opt.o tests.o initializers.o
EXE=oops
EXE_debug=oops_debug
EXEFLAG= $(FLAGS) -o
#debug: FLAGS +=-g -debug
#debug: $(EXE)
DATE =`date `
all:$(EXE)
$(EXE):$(objects)
$(fcc) $(EXEFLAG) $@ $(objects) $(mkllibs) $(Charpak) $(DISLININC)
cp oops ../../Test
graphics.o :parameters_module.o graphics_module$(version).f90
$(fcc) $(suffix) $(DISLININC) graphics_module$(version).f90 -o graphics.o
and I use
------
use dislin
-------
statement at graphics module.
Receive the following type of errors
qw_unx.c:(.text+0x134ed): undefined reference to `XAllocColorCells'
dislin-10.2.a(qqwini.o): In function `qqwini':
qqw_unx.c:(.text+0x135fe): undefined reference to `XOpenDisplay'
qqw_unx.c:(.text+0x13612): undefined reference to `XVendorRelease'
qqw_unx.c:(.text+0x13631): undefined reference to `XDefaultScreenOfDisplay'
qqw_unx.c:(.text+0x1363d): undefined reference to `XDefaultScreen'
I think I am not linking libraries properly.
Any idea what I am doing wrong?
dundar