-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Hello,
I would like to get help about the following issue in below.
When I compile SNOPT C++ library in Visual Studio 2012, I got the following errors:
1>------ Build started: Project: Solver, Configuration: Debug Win32 ------
1>snoptProblem.obj : error LNK2019: unresolved external symbol _f_sninit referenced in function "protected: __thiscall snoptProblem::snoptProblem(char const *,char const *)" (??0snoptProblem@@iae@PBD0@Z)
1>snoptProblem.obj : error LNK2019: unresolved external symbol _f_snspec referenced in function "public: int __thiscall snoptProblem::setSpecsFile(char const *)" (?setSpecsFile@snoptProblem@@QAEHPBD@Z)
1>snoptProblem.obj : error LNK2019: unresolved external symbol _f_sngetc referenced in function "public: int __thiscall snoptProblem::getParameter(char const *,char *)" (?getParameter@snoptProblem@@QAEHPBDPAD@Z)
1>snoptProblem.obj : error LNK2019: unresolved external symbol _f_sngeti referenced in function "public: int __thiscall snoptProblem::getIntParameter(char const *,int &)" (?getIntParameter@snoptProblem@@QAEHPBDAAH@Z)
1>snoptProblem.obj : error LNK2019: unresolved external symbol _f_sngetr referenced in function "public: int __thiscall snoptProblem::getRealParameter(char const *,double &)" (?getRealParameter@snoptProblem@@QAEHPBDAAN@Z)
1>snoptProblem.obj : error LNK2019: unresolved external symbol _f_snset referenced in function "public: int __thiscall snoptProblem::setParameter(char const *)" (?setParameter@snoptProblem@@QAEHPBD@Z)
1>snoptProblem.obj : error LNK2019: unresolved external symbol _f_snseti referenced in function "public: int __thiscall snoptProblem::setIntParameter(char const *,int)" (?setIntParameter@snoptProblem@@QAEHPBDH@Z)
1>snoptProblem.obj : error LNK2019: unresolved external symbol _f_snsetr referenced in function "public: int __thiscall snoptProblem::setRealParameter(char const *,double)" (?setRealParameter@snoptProblem@@QAEHPBDN@Z)
1>snoptProblem.obj : error LNK2019: unresolved external symbol _f_snsetprint referenced in function "public: void __thiscall snoptProblem::setPrintFile(char const *)" (?setPrintFile@snoptProblem@@QAEXPBD@Z)
1>snoptProblem.obj : error LNK2019: unresolved external symbol _f_snend referenced in function "protected: __thiscall snoptProblem::~snoptProblem(void)" (??1snoptProblem@@iae@XZ)
1>snoptProblem.obj : error LNK2019: unresolved external symbol _f_snkera referenced in function "public: virtual int __thiscall snoptProblemA::solve(int)" (?solve@snoptProblemA@@UAEHH@Z)
1>snoptProblem.obj : error LNK2019: unresolved external symbol _f_snjac referenced in function "public: int __thiscall snoptProblemA::computeJac(int &,int &)" (?computeJac@snoptProblemA@@QAEHAAH0@Z)
1>snoptProblem.obj : error LNK2019: unresolved external symbol _f_snmema referenced in function "public: virtual void __thiscall snoptProblemA::setWorkspace(void)" (?setWorkspace@snoptProblemA@@UAEXXZ)
1>snoptProblem.obj : error LNK2019: unresolved external symbol _f_snkerb referenced in function "public: virtual int __thiscall snoptProblemB::solve(int)" (?solve@snoptProblemB@@UAEHH@Z)
1>snoptProblem.obj : error LNK2019: unresolved external symbol _f_snkerc referenced in function "public: virtual int __thiscall snoptProblemC::solve(int)" (?solve@snoptProblemC@@UAEHH@Z)
1>snoptProblem.obj : error LNK2019: unresolved external symbol _f_snmem referenced in function "public: virtual void __thiscall snoptProblemC::setWorkspace(void)" (?setWorkspace@snoptProblemC@@UAEXXZ)
1>C:\Users\erkan-pc\Desktop\prg\Solver\Debug\Solver.exe : fatal error LNK1120: 16 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Probably, I do not use the appropriate library.
I obained snopt7.lib (Win64) and snopt7.lic from optimizers@ccom.ucsd.edu.
And in the link http://ccom.ucsd.edu/~optimizers/downloads/software/trial/fortran/?id=20db6144cb7a, I could not get SNOPT C++ windows 32/64 libraries as the following message occurs:
- The requested URL /~optimizers/static/software/c-cpp/win32/libsnopt7_cpp.zip was not found on this server.