Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner

Abaqus 6.13 fortran subroutine dll import is not working

Jump to solution

Hi everyone!

I have a question about importing dll library in abaqus user subroutine.

I use abaqus 6.13-1, VS2012 and intell parallel studio XE 2013 to do some analysis.

But when I tried to use user subroutine that contains dll library, error is occured like this

-----------------------------------------------------------------------------------------------------------------------

IntSub.obj : error LNK2019: unresolved external symbol setupconnection reference
d in function uel.R
IntSub.obj : error LNK2019: unresolved external symbol UpdateMessageHeader refer
enced in function uel.R
IntSub.obj : error LNK2019: unresolved external symbol Initialization referenced
 in function uel.R
IntSub.obj : error LNK2019: unresolved external symbol UpdateCommand referenced
in function uel.R
IntSub.obj : error LNK2019: unresolved external symbol UpdateSubtype referenced
in function uel.R
IntSub.obj : error LNK2019: unresolved external symbol Command referenced in fun
ction uel.R
IntSub.obj : error LNK2019: unresolved external symbol indicator referenced in f
unction uel.R
IntSub.obj : error LNK2019: unresolved external symbol SendData referenced in fu
nction uel.R
IntSub.obj : error LNK2019: unresolved external symbol RecvData referenced in fu
nction uel.R
IntSub.obj : error LNK2019: unresolved external symbol UpdateNumStep referenced
in function uel.R
IntSub.obj : error LNK2019: unresolved external symbol terminate referenced in f
unction uel.R
standardU.dll : fatal error LNK1120: 11 unresolved externals
Abaqus Error: Problem during linking - Abaqus/Standard User Subroutines.
  This error may be due to a mismatch in the Abaqus user subroutine arguments.
  These arguments sometimes change from release to release, so user subroutines
  used with a previous release of Abaqus may need to be adjusted.
Abaqus/Analysis exited with errors

--------------------------------------------------------------------------------------------------------------------------------

I already put my .lib file in simple directory (C:\lib)

and I also added path of the .lib file in abaqus _v6.env but it's not working

Please help me !!! Give me any advice !!! 

 

0 Kudos

Accepted Solutions
Highlighted
Black Belt

The image that you attached

Jump to solution

The image that you attached shows only a few variable declarations and a few interfaces. Where is the actual code of the subroutines? Which files did you compile before linking, what do they contain, and what was the linking command used?

I notice that the interface names specify BIND(C) and show external names that are all lower case or mixed case. The Intel Fortran compiler generates uppercase symbols in OBJ files for subprogram names, unless you use compiler options to make it do otherwise.

View solution in original post

0 Kudos
3 Replies
Highlighted
Black Belt
1 View

The image that you attached

Jump to solution

The image that you attached shows only a few variable declarations and a few interfaces. Where is the actual code of the subroutines? Which files did you compile before linking, what do they contain, and what was the linking command used?

I notice that the interface names specify BIND(C) and show external names that are all lower case or mixed case. The Intel Fortran compiler generates uppercase symbols in OBJ files for subprogram names, unless you use compiler options to make it do otherwise.

View solution in original post

0 Kudos
Highlighted
Beginner

Hi. mecej4 ! 

Jump to solution

Hi. mecej4 ! 

Today, I fixed this problem by making new .lib file (for x64 bits)

But I really appreciate your apply :) 

 

0 Kudos
Highlighted
Beginner

Hi hyunil,

Jump to solution

Hi hyunil,

 

I also encounter the same issue. Would you please tell me how you solved the problem?

 

How did you add path of the .lib file in abaqus _v6.env?

 

Thanks o lot

0 Kudos