[RESOLVED] Compiler conditionals for ymofen msgpack-delphi lazarus / 11-Options ---------------------------------------------------------------------- cpicanco · 2016-08-19 23:20 Hi, I am trying (with no sucess) to compile a delphi MsgPack porting into lazarus-free-pascal (www.msgpack.org). At first, I tried to auto import the delphi project to a lazarus project. Then hit "F9".  Then, I tried to tackle some of the compiler conditionals until I found I know nothing about how define conditionals through the IDE. Anyone had any luck with this one? Any alternatives? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Compile Project, Target: prjPackAndUnPack: Exit code 256, Errors: 4SimpleMsgPack.pas(93,7) Error: Incompatible types: got "AnsiString" expected "Int64"SimpleMsgPack.pas(93,7) Error: Compile time expression: Wanted Boolean but got at IF or ELSEIFSimpleMsgPack.pas(97,7) Error: Incompatible types: got "AnsiString" expected "Int64"SimpleMsgPack.pas(97,7) Error: Compile time expression: Wanted Boolean but got at IF or ELSEIF ---------------------------------------------------------------------- derek.john.evans · 2016-08-20 02:10 Maybe post where you got the source code next time  Ok, so, you want to compile SimpleMsgPack.pas Adding this to the top is required: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {$mode delphi}{$MACRO ON}{$define RTLVersion :=  25}{$define CompilerVersion := 18}   Note, the 25&18 are just any number to get it compiling. FreePascal doesn't like the Byte to Boolean conversions, so add this type: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i type  PBOOLEAN = ^ByteBool;   SimpleMsgPack should compile, but, I have no idea if it will work. ---------------------------------------------------------------------- cpicanco · 2016-08-20 15:43 First of all, I am very sorry about missing the source link, here it is: https://github.com/ymofen/msgpack-delphi Thank you Geepster, I will test this out. Right now I am trying another simpler porting that at least have compiled: https://github.com/arthurprs/msgpack-delphi Best, Rafael ---------------------------------------------------------------------- cpicanco · 2016-08-26 15:58 Hi all, Please, take a look here: https://github.com/ymofen/msgpack- delphi/issues/2