Hi frankie !
Example 'scripthost2' placed into a new project Pelles-C (I only have version 5 and 6, but then the example was written in 2013).
As a result, we obtained obj-files, but the exe-file is NOT created.
Here are the compilation log:
Building main.obj.
Building TraceWin.obj.
Building ChooseEngine.obj.
Building IActiveScriptSite.obj.
C:\Program Files\PellesC\PROJECTS\scripthost2\IActiveScriptSite.c(36): warning #2168: Operands of '=' have incompatible types 'long int __stdcall function(IActiveScriptSite *, LPCGUID const , void * *)' and 'long int __stdcall function(MyRealIActiveScriptSite *, LPCGUID const , void * *)'.
C:\Program Files\PellesC\PROJECTS\scripthost2\IActiveScriptSite.c(37): warning #2168: Operands of '=' have incompatible types 'unsigned long int __stdcall function(IActiveScriptSite *)' and 'unsigned long int __stdcall function(MyRealIActiveScriptSite *)'.
C:\Program Files\PellesC\PROJECTS\scripthost2\IActiveScriptSite.c(38): warning #2168: Operands of '=' have incompatible types 'unsigned long int __stdcall function(IActiveScriptSite *)' and 'unsigned long int __stdcall function(MyRealIActiveScriptSite *)'.
C:\Program Files\PellesC\PROJECTS\scripthost2\IActiveScriptSite.c(39): warning #2168: Operands of '=' have incompatible types 'long int __stdcall function(IActiveScriptSite *, unsigned long int *)' and 'long int __stdcall function(MyRealIActiveScriptSite *, unsigned long int *)'.
C:\Program Files\PellesC\PROJECTS\scripthost2\IActiveScriptSite.c(40): warning #2168: Operands of '=' have incompatible types 'long int __stdcall function(IActiveScriptSite *, const wchar_t *, unsigned long int, LPUNKNOWN *, LPTYPEINFO *)' and 'long int __stdcall function(MyRealIActiveScriptSite *, const wchar_t *, unsigned long int, LPUNKNOWN *, LPTYPEINFO *)'.
C:\Program Files\PellesC\PROJECTS\scripthost2\IActiveScriptSite.c(41): warning #2168: Operands of '=' have incompatible types 'long int __stdcall function(IActiveScriptSite *, wchar_t * *)' and 'long int __stdcall function(MyRealIActiveScriptSite *, wchar_t * *)'.
C:\Program Files\PellesC\PROJECTS\scripthost2\IActiveScriptSite.c(42): warning #2168: Operands of '=' have incompatible types 'long int __stdcall function(IActiveScriptSite *, const VARIANTARG *, const EXCEPINFO *)' and 'long int __stdcall function(MyRealIActiveScriptSite *, const VARIANTARG *, const EXCEPINFO *)'.
C:\Program Files\PellesC\PROJECTS\scripthost2\IActiveScriptSite.c(43): warning #2168: Operands of '=' have incompatible types 'long int __stdcall function(IActiveScriptSite *, SCRIPTSTATE)' and 'long int __stdcall function(MyRealIActiveScriptSite *, SCRIPTSTATE)'.
C:\Program Files\PellesC\PROJECTS\scripthost2\IActiveScriptSite.c(44): warning #2168: Operands of '=' have incompatible types 'long int __stdcall function(IActiveScriptSite *, IActiveScriptError *)' and 'long int __stdcall function(MyRealIActiveScriptSite *, IActiveScriptError *)'.
C:\Program Files\PellesC\PROJECTS\scripthost2\IActiveScriptSite.c(45): warning #2168: Operands of '=' have incompatible types 'long int __stdcall function(IActiveScriptSite *)' and 'long int __stdcall function(MyRealIActiveScriptSite *)'.
C:\Program Files\PellesC\PROJECTS\scripthost2\IActiveScriptSite.c(46): warning #2168: Operands of '=' have incompatible types 'long int __stdcall function(IActiveScriptSite *)' and 'long int __stdcall function(MyRealIActiveScriptSite *)'.
Building scripthost2.exe.
POLINK: error: Unresolved external symbol '__imp__CoCreateInstance@20'.
POLINK: error: Unresolved external symbol '__imp__CLSIDFromString@8'.
POLINK: error: Unresolved external symbol '__imp__CoInitialize@4'.
POLINK: error: Unresolved external symbol '__imp__CoUninitialize@0'.
POLINK: error: Unresolved external symbol '__imp__VariantInit@4'.
POLINK: error: Unresolved external symbol '__imp__VariantChangeType@16'.
POLINK: error: Unresolved external symbol '__imp__VariantClear@4'.
POLINK: error: Unresolved external symbol '_CATID_ActiveScriptParse'.
POLINK: error: Unresolved external symbol '__imp__ProgIDFromCLSID@8'.
POLINK: error: Unresolved external symbol '__imp__CoTaskMemFree@4'.
POLINK: error: Unresolved external symbol '__imp__SysFreeString@4'.
POLINK: fatal error: 11 unresolved external(s).
*** Error code: 1 ***
Done.