0

I am trying to use the Synopse JSON library in Inno Setup. I am getting an unknown preprocessor directive.

enter image description here

Obviously Inno Setup uses a limited form of Pascal which doesn't include things that Synopse is using. My question is, is there a way to compile the Synopse library or otherwise transform the file so that I can still call it as an external library? I don't want to go in and mess with the Synopse code-I think the code its complaining about is fairly crucial, anyways.

Minimal example which generates error (script is in same dir as a folder called lib which contains the *.pas):

#define MyAppName "Minimal"
#define MyAppVersion "2.0"


[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)

AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppVerName={#MyAppName}


[Code]
#include "lib\SynCrossPlatformJSON.pas"
Nils Guillermin
  • 1,867
  • 3
  • 21
  • 51

0 Answers0