<div dir="ltr">Hi,<div><br></div><div style>I am trying to use ECL as scripting language for a large Windows program (Rhino3D).</div><div><br></div><div style>When including the precompiled headers required by Rhino plugins with</div>
<div style><br></div><div style><div> (ffi:clines "#include \"StdAfx.h\")</div><div><br></div><div style>and building the library with (asdf:make-build system :type :shared-library ...)</div><div><br></div>
<div style>I get the following error:</div><div style><br></div><div style> fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h><br></div><div style><br></div><div style>
Moving the include statement to the very top of the generated c file (before the #include <ecl/ecl-cmp.h> sttement), however, and compiling manually works.</div><div style><br></div><div style>I tried to make use of the "prologue-code" option and solve the problem by prepending the include statement to the generated code as follows:</div>
<div style><br></div><div style> (asdf:make-build system :type :shared-library :prologue-code "#include \"StdAfx.h\"" ...)</div><div style><br></div><div style>But the prologue-option string was not inserted anywhere into the generated code.</div>
<div style><br></div><div style>Any idea about how to solve the problem?</div><div style><br></div><div style>Thanks for your help,</div><div style><br></div><div style>Dietrich</div><div style><br></div></div></div>