trying to upgrade my 6.3x based code (mixed C/C++) on MVC (Visual C++ 2017) to 6.4x CLIPS sources but I encounter bunch of compilation issues on C++ sources. Namely:
There isn't a setting that will resolve name conflicts among the header files. Since you have the CLIPS source code, the easiest resolution is to just rename any conflicting definitions there. Alternatively, you would need to place the code requiring atlbase.h and winuser.h in a separate file that does not include the clips headers.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Gary,
trying to upgrade my 6.3x based code (mixed C/C++) on MVC (Visual C++ 2017) to 6.4x CLIPS sources but I encounter bunch of compilation issues on C++ sources. Namely:
on any C++ source icluding ATL (atlbase.h)
and
Tried WIN_MVC precompiler setting and without it but with no luck. Could You advice any other setting that could cause this issue?
Thanks Vranoch
There isn't a setting that will resolve name conflicts among the header files. Since you have the CLIPS source code, the easiest resolution is to just rename any conflicting definitions there. Alternatively, you would need to place the code requiring atlbase.h and winuser.h in a separate file that does not include the clips headers.
finally ...
... the purpose sanctifies the means ;-)