-
Notifications
You must be signed in to change notification settings - Fork 35
D10.2.3 compile error #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Have you run Make? If not you need to do
before compiling from the IDE. Note though that the above won't run unless you have the correct tools installed and configured, Build.html explains what you need. Whether the second error is related I don't know - it may go away when the first problem is fixed, but somehow I doubt it! Not sure why that's happening yet.
|
Re the error in This is only a guess, but I'm wondering if D10.2.3 (or some earlier version) changed the syntax to prevent calling constructors from instances. It was allowed in XE, but maybe not later. A change to function TActiveText.Clone: IInterface;
begin
Result := TActiveText.Create;
(Result as IAssignable).Assign(Self);
end; Might do the trick. And similarly anywhere else this happens. The only time it could be problematic is if the class where the constructor is called is a sub-class. Then a different solution would be needed. |
With all due respect, I do not understand why I cannot compile? |
🤔 Just wondering if there's some misunderstanding between us here? You said:
Now, the old program (providing you mean CodeSnip), wouldn't compile either without running If you do then you're right, there's no need for this. Just download one of the pre-compiled versions from the releases tab and either follow the links to SourceForge or use the But, if you do want to develop / modify the code, then it is what it is! There's no way round the need for the makefile. I've tried to get Delphi to run the make from the IDE, but to no success. I think it can be done, but it's just easier for me to shell out and run it from the command line. And I'm not sure the code will compile on anything but Delphi XE - its a long story why I stuck to XE for CodeSnip!! |
error :[dcc32 Error] ActiveText.UMain.pas(556): E2382 Cannot call constructors using instance variables
No knowledge of more errors since the compiler stop.
Downloaded codesnip-develop
The text was updated successfully, but these errors were encountered: