-
-
Notifications
You must be signed in to change notification settings - Fork 320
Closed
Description
I tried to compile P4DLaz into Lazarus, but I found next issues in code. One is minor,
next there is overloading issue.
In Components/Sources/Core/PythonEngin.pas
first issue:
{$ENDIF}
{$IFDEF LINUX}
PYTHON_KNOWN_VERSIONS: array[1..10] of TPythonVersionProp =
(
(DllName: 'libpython2.5.so'; RegVersion: '2.5'; APIVersion: 1013; CanUseLatest: True),
(DllName: 'libpython2.6.so'; RegVersion: '2.6'; APIVersion: 1013; CanUseLatest: True),
(DllName: 'libpython2.7.so'; RegVersion: '2.7'; APIVersion: 1013; CanUseLatest: True),
(DllName: 'libpython3.2.so'; RegVersion: '3.2'; APIVersion: 1013; CanUseLatest: True),
(DllName: 'libpython3.3.so'; RegVersion: '3.3'; APIVersion: 1013; CanUseLatest: True),
(DllName: 'libpython3.4.so'; RegVersion: '3.4'; APIVersion: 1013; CanUseLatest: True),
(DllName: 'libpython3.5.so'; RegVersion: '3.5'; APIVersion: 1013; CanUseLatest: True),
(DllName: 'libpython3.6.so'; RegVersion: '3.6'; APIVersion: 1013; CanUseLatest: True)
(DllName: 'libpython3.7.so'; RegVersion: '3.7'; APIVersion: 1013; CanUseLatest: True)
(DllName: 'libpython3.8.so'; RegVersion: '3.8'; APIVersion: 1013; CanUseLatest: True)
);
{$ENDIF}
for libpython3.6, libpython3.7 is missing ',' character at end of line
next issue:
function CleanString(const s : AnsiString; AppendLF : Boolean = True) : AnsiString; overload;
function CleanString(const s : string; AppendLF : Boolean = True) : string; overload;
Lazarus compiler has trouble with compilation:
PythonEngine.pas(3178,10) Error: Function is already declared Public/Forward "CleanString(const AnsiString;Boolean="TRUE"):AnsiString;"
Metadata
Metadata
Assignees
Labels
No labels