Tags: afortran, call, calling, commandmcc, dll, following, frotran, generated, library, matlab, program, programming, r14, shared
calling a matlab generated dll from frotran
On Programmer » Matlab
1,100 words with 0 Comments; publish: Tue, 06 May 2008 23:41:00 GMT; (20046.88, « »)
I try to call a Matlab (R14 SP 3) generated shared library from a
fortran program.
The shared library is generated by the following Matlab command:
mcc -W lib:extForce -T link:lib krachten.m.
My fortran call is:
ok = mclInitializeApplication(NULL(),0)
if (.not.ok) then
print*, 'Could not initialize the application'
endif
! Call the library intialization routine and make sure that the
! library was initialized properly.
ok = extForceInitialize()
! Call the library termination routine
call extForceTerminate();
call mclTerminateApplication()
The error messages I get are
main.obj : error LNK2001: unresolved external symbol
_MCLINITIALIZEAPPLICATION.matlab.itags.org.8
main.obj : error LNK2001: unresolved external symbol
_EXTFORCEINITIALIZE.matlab.itags.org.0
main.obj : error LNK2001: unresolved external symbol
_EXTFORCETERMINATE.matlab.itags.org.0
main.obj : error LNK2001: unresolved external symbol
_MCLTERMINATEAPPLICATION.matlab.itags.org.0
I am using CVF 6.6B.
Can you please help me to solve this problem?
Regards,
Frank Tap
http://matlab.itags.org/q_matlab_6276.html
All Comments
Leave a comment...
- 0 Comments