It is mentioned, the code couldn't compile. So that were compile-time errors. What were the error messages? If it is hard to provide us a small test demo as mentioned, at least you should show us the error messages.
Actually fixing the code isn't too difficult, but it will take plenty of time. All you need to do is step-by-step recompile the code using higher version of Lazarus progressively.
Here is the list of all versions:
https://wiki.freepascal.org/Category:Release_NotesUntil you found the version that won't able to compile the code. For example, if you have no problem compiling until
Lazarus version 0.9.30. Follow the link above and click the release note of Lazarus 0.9.30. There you will have information about "
Changes affecting compatibility". That probably is the information you need.
But you also need to pay attention about the
version of the FPC. You can read them in the link above, which have link started with "
User Changes ..."
Alternatively. You can try by skipping some versions but if it fail, then you go down 1 version each time until you find the lowest un-compilable version.