Unresolved External Symbols Error

34 views
Skip to first unread message

per...@clarkson.edu

unread,
Jun 23, 2020, 4:25:40 PM6/23/20
to SNOPT
Hello, 

I am a student currently trying to run an already compiled snOpt v7.7 in Visual Studios 2017, but I keep getting errors on Unresolved External Symbols. I have included the error below:

1>snoptc.obj : error LNK2019: unresolved external symbol SNCHECK referenced in function SNOPTC
1>snoptb.obj : error LNK2001: unresolved external symbol SNCHECK
1>snopta.obj : error LNK2001: unresolved external symbol SNCHECK
1>npopt.obj : error LNK2001: unresolved external symbol SNCHECK
1>snoptq.obj : error LNK2001: unresolved external symbol SNCHECK
1>snopt_wrapper.obj : error LNK2019: unresolved external symbol SNSPEC referenced in function f_snspec
1>snopt_wrapper.obj : error LNK2019: unresolved external symbol SNSPECF referenced in function f_snspecf
1>snopt_wrapper.obj : error LNK2019: unresolved external symbol SNENDF referenced in function f_snend
1>snopt_wrapper.obj : error LNK2019: unresolved external symbol SNINITF referenced in function f_sninitf
1>snopt_wrapper.obj : error LNK2019: unresolved external symbol SNINIT referenced in function f_sninit
1>sqopt_wrapper.obj : error LNK2019: unresolved external symbol SQSPEC referenced in function f_sqspec
1>sqopt_wrapper.obj : error LNK2019: unresolved external symbol SQSPECF referenced in function f_sqspecf
1>sqopt_wrapper.obj : error LNK2019: unresolved external symbol SQENDF referenced in function f_sqend
1>sqopt_wrapper.obj : error LNK2019: unresolved external symbol SQINITF referenced in function f_sqinitf
1>sqopt_wrapper.obj : error LNK2019: unresolved external symbol SQINIT referenced in function f_sqinit
1>.\..\lib\snopt.dll : fatal error LNK1120: 11 unresolved externals

Does anyone know why this is happening and how I can fix it?

Thank you for your time.

SNOPT

unread,
Jun 29, 2020, 12:00:24 AM6/29/20
to SNOPT
Hi,

Where'd you get the libraries?  They might not be built correctly.  If you got the libraries from us, let me know and I can check them again.  At the moment, I am not seeing this error in our libraries.

--Elizabeth

Brandon Perkins

unread,
Jun 29, 2020, 10:18:38 AM6/29/20
to SNOPT
Hi Elizabeth,

I believe a former student downloaded SNOPT and built the libraries himself, if I am not mistaken. 

If the problem is not caused by incorrectly built libraries, could these errors be caused by a PATH not being set properly? If not, then should the variables shown in the errors be defined as environmental variables?

Like I said, I was not the one to install or compile SNOPT, so I am not completely sure how the libraries were made.

Thank you,
Brandon

Reply all
Reply to author
Forward
0 new messages