1

I want to run my GAMS code via c# by GAMS API. when I start Visual studio,I recieve this error in

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 and windows are both 64 bit.

Can anybody help me to solve it?

n.e
  • 25
  • 8

1 Answers1

1

According to https://forum.gamsworld.org/viewtopic.php?t=7828 Lutz says:

Normally this error only occurs if you built your application as a 32bit version explicitly. 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?

Vogel T.
  • 91
  • 5