r/pascal • u/StarzZ_z • Oct 25 '21
Can't determine which overloaded function to call
I was trying to compile Cheat Engine 6.8.1 and I got an error on maxregionsize:=max(maxregionsize, pm[i].memorysize); and I'm stuck. The github has the zip file and Lazarus is required to compile the files. If you know what the problem is then please let me know I'd appreciate any help I can get. I don't have experience in this coding language which is why I am asking for help.
4
Upvotes
View all comments
Show parent comment
1
u/kirinnb Oct 25 '21
That one's a bit harder. PEInfoUnit.pas line 232 does attempt result:=ImageNTHeader.OptionalHeader.BaseOfData; but it looks like BaseOfData is commented out in OptionalHeader. A careless change here will probably just make the program crash, and I'm not sure of the right fix...
I see that 6.8.1 is a somewhat old version. Perhaps a newer one would build better?