Having problems of LNK2026 and LNK2001

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
hansxiaowisc
Posts: 4
Joined: Tue May 13, 2014 5:12 am

Having problems of LNK2026 and LNK2001

Post by hansxiaowisc »

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!
hansxiaowisc
Posts: 4
Joined: Tue May 13, 2014 5:12 am

Re: Having problems of LNK2026 and LNK2001

Post by hansxiaowisc »

BTW I use VS2013 to build it. Thanks!
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: Having problems of LNK2026 and LNK2001

Post by fmk »

is this your own element??
hansxiaowisc
Posts: 4
Joined: Tue May 13, 2014 5:12 am

Re: Having problems of LNK2026 and LNK2001

Post by hansxiaowisc »

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!
Post Reply