Forum > Linux

compiling pascal script update package error

(1/1)

opendelphi:
since i was looking for a solution to support rawbytestring on Pascal Script , actually i have found that there are many developers looking for the same urgent request . a developer send pull request , providing a fix , an update to support it with many others . https://github.com/remobjects/pascalscript/issues/145

so the updated package is on https://github.com/pult/pascalscript , but when try to compile it or install it
there are some errors specially :

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---uPSRuntime.pas(5223,26) Error: Identifier not found "wstrlen"

any hint !

rvk:
Not sure, but I think wstrlen(pwidechar) is the same as strlen(pwidechar).
They are both referenced in the source to FPC_PWIDECHAR_LENGTH.
So you could change the wstrlen to strlen.

Otherwise adding this to the top of unit uPSRuntime seems to make it compilable in Win32.


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---function wstrlen(p: PWideChar): SizeInt; external name 'FPC_PWIDECHAR_LENGTH';

Navigation

[0] Message Index

Go to full version