SNOPT in Visual Studio : Unresolved External Symbols Error

42 views
Skip to first unread message

JongHun Jeong

unread,
Apr 22, 2024, 11:36:32 AM4/22/24
to SNOPT
Hello,

Our department previously purchased SNOPT 7.7, and I currently have access to the SNOPT source code. My boss is interested in finding a way to run SNOPT using Visual Studio. However, despite following the instructions for using Visual Studio provided in the README file that came with the SNOPT source code, we are encountering errors. How can we resolve this issue? I am currently using Visual Studio Community 2019 and Intel Fortran Compiler 2024.

===================<Error>=======================

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

Additionally, if there are any other tutorials available for using SNOPT on Windows with Visual Studio, I would appreciate it if you could share that information.

Thank you
Reply all
Reply to author
Forward
0 new messages