[英]Why does visual studio gives me error when I want to run the GAMS code via C#?
I want to run my GAMS code via c# by GAMS API.我想通过 GAMS API 通过 c# 运行我的 GAMS 代码。 when I start Visual studio,I recieve this error in当我启动 Visual Studio 时,我收到此错误
GAMSWorkspace ws = new GAMSWorkspace();
error: "Expected GAMS system to be 32 bit but found 64 bit instead. System directory: C:\\GAMS\\win64\\25.1"错误:“预期 GAMS 系统为 32 位,但发现 64 位。系统目录:C:\\GAMS\\win64\\25.1”
GAMS and windows are both 64 bit. GAMS 和 windows 都是 64 位的。
Can anybody help me to solve it?有人可以帮我解决吗?
According to https://forum.gamsworld.org/viewtopic.php?t=7828 Lutz says:根据https://forum.gamsworld.org/viewtopic.php?t=7828 Lutz 说:
Normally this error only occurs if you built your application as a 32bit version explicitly.通常,仅当您将应用程序明确构建为 32 位版本时才会发生此错误。 Could you please check if you still get the error if you select x64 as platform for your program in the configuration manager of Visual Studio?如果您在 Visual Studio 的配置管理器中选择 x64 作为程序的平台,请检查是否仍然出现错误?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.