Recently I'm trying to build a new element into opensees. When I build the OpenSees, OpenSeesTK and quickMain projects, the errors will be LNK2026 and LNK2001, I will post the errors following:
Error 32 error LNK2001: unresolved external symbol "int __cdecl TclModelBuilder_addLumpedDamageEle2D(void *,struct Tcl_Interp *,int,char const * *,class Domain *,class TclModelBuilder *,int)" (?TclModelBuilder_addLumpedDamageEle2D@@YAHPAXPAUTcl_Interp@@HPAPBDPAVDomain@@PAVTclModelBuilder@@H@Z) C:\Users\Han\Desktop\opensees source code\Win32\proj\openSeesTk\element.lib(TclElementCommands.obj) OpenSeesTk
Error 3 error LNK2026: module unsafe for SAFESEH image. C:\Users\Han\Desktop\opensees source code\Win32\proj\openSeesTk\fedeas.lib(Bond1.obj) OpenSeesTk
I tried to solve the LNK2026 one with instructions online (with/SAFESEH:NO), but it didn't work.
Could you please help me with that?
Thanks!
Having problems of LNK2026 and LNK2001
Moderators: silvia, selimgunay, Moderators
-
- Posts: 4
- Joined: Tue May 13, 2014 5:12 am
Re: Having problems of LNK2026 and LNK2001
BTW I use VS2013 to build it. Thanks!
Re: Having problems of LNK2026 and LNK2001
is this your own element??
-
- Posts: 4
- Joined: Tue May 13, 2014 5:12 am
Re: Having problems of LNK2026 and LNK2001
fmk wrote:
> is this your own element??
Dear Professor fmk,
Yes, it's a self-defined element.
I have solved these 2 questions. The 2026 one came from the version of visual studio, and the 2001 one is because of wrong commands in the linker. However, new questions came out. I am using getBasicTrialDisp to get displacement. However, because my stiffness matrix change in every getTangentStiff part, the displacement cannot satisfy with the boundary condition. So I want to use iteration to get the new displacement after every change of tangent stiffness matrix until convergence. Could you please tell me how to do that?
Thanks!
> is this your own element??
Dear Professor fmk,
Yes, it's a self-defined element.
I have solved these 2 questions. The 2026 one came from the version of visual studio, and the 2001 one is because of wrong commands in the linker. However, new questions came out. I am using getBasicTrialDisp to get displacement. However, because my stiffness matrix change in every getTangentStiff part, the displacement cannot satisfy with the boundary condition. So I want to use iteration to get the new displacement after every change of tangent stiffness matrix until convergence. Could you please tell me how to do that?
Thanks!