Skip to content
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

QT5 LNet installation error: Forward declaration not solved #7

Open
alanphys opened this issue Feb 5, 2020 · 2 comments
Open

QT5 LNet installation error: Forward declaration not solved #7

alanphys opened this issue Feb 5, 2020 · 2 comments

Comments

@alanphys
Copy link

alanphys commented Feb 5, 2020

Problem
Trying to install lnet in Lazarus from the online package manager and from git gives

lclnet.pas(45,15) Error: Forward declaration not solved "HandleIgnoreError(TLHandle);"
lclnet.pas(46,15) Error: Forward declaration not solved "HandleIgnoreWrite(TLHandle);"
lclnet.pas(47,15) Error: Forward declaration not solved "HandleIgnoreRead(TLHandle);"
lclnet.pas(48,15) Error: Forward declaration not solved "InternalUnplugHandle(TLHandle);"
lclnet.pas(50,15) Error: Forward declaration not solved "HandleEvents(Int64;LongWord);"
lclnet.pas(58,14) Error: Forward declaration not solved "AddHandle(TLHandle):Boolean;"

System
Fedora 30
KDE 5/QT 5.12.4
Lazarus 2.0.6
LNet 0.66

Cause
QT5 not defined in lclnet.pas

Workaround
Add
{$ifdef LCLQT5} {$i lclgtkeventer.inc} // identical code ;) {$endif}
before end statement in lclnet.pas

Regards
Alan

@almindor
Copy link
Owner

almindor commented Feb 5, 2020 via email

@alanphys
Copy link
Author

alanphys commented Feb 6, 2020

Yes, the new version defines LCLQT5. I'm not seeing an lclqteventer.inc. I just copied your existing LCLQT declaration which uses the lclgtkeventer.inc.

So far everything seems to be running OK, but I am only using the TLHTTPServer component.
Regards
Alan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants