Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29277 Discussions

Loading and calling the dylib dynamically

Brian_A_
Novice
723 Views
I have a prgram that we have implemented a new licensing scheme. This licensing scheme comes from Nalperion Software and they use dll's for their licensing integration. I have add the needed information into out program for Windows and Linux and have it running, but on Mac we have a problem. After compiling and then try running we get an error.
[bash]dyld: Library not loaded: libFileMgmt_611_20100602 
Referenced from: PATH TO PROGRAM 
REason: image not found 
Trace/BPT trap[/bash]
[bash]Nalperion is telling me that we need to dynamicly load the dylib file.  Here is how we have incorporated the dylib file[/bash]
[bash]into our coding. (the file is lib/libFileMgmt.dylib)[/bash]
[bash]
#  Explicit Targets

relap5$(NM).x:  envrl/envrl$(NM).a matpro/matpro$(NM).a \
        relap/relap5.$O relap/relap$(NM).a scdap/scdap$(NM).a \
        tpfh2o$(NM) tpfd2o$(NM)
	$(f90) $(FFLAGS) $(FPSTOP) $(FL) relap/relap5.$O \
	relap/relap$(NM).a scdap/scdap$(NM).a \
	matpro/matpro$(NM).a scdap/scdap$(NM).a envrl/envrl$(NM).a \
	lib/libFileMgmt.dylib -o bin\relap5$(NM).x[/bash]
How do we dynamicly load the dylib file? Nalperion is saying that we use dlopen(), dlsym(), dlclose()
0 Kudos
0 Replies
Reply