Forum > General
Error: identifier idents no member
(1/1)
cd:
--- Code: ---function TCriticalSection.TryEnter:boolean
--- End code ---
has recently been added to freepascal's SyncObjs, in revision 15026.
i'm trying to make use of it, but i get
--- Code: ---Error: identifier idents no member "TryEnter"
--- End code ---
although the function is really there and the IDE suggests it in function list for TCriticalSectionobject instance. What i did was: i updated to latest fpc from svn, made clean && all && install. Since i've done that - code insight shows TryEnter but the compiler wouldn't compile it.
What else should i do?
PS. OS linux
Leledumbo:
Try fpc -v, make sure the date is the same as the day you built it. If not, then probably it still points to your old installation. The installation defaults to /usr/local.
cd:
Leledumbo
thank you for that hint, it helped to figure out what is going on.
very strange thing. make install does really install fpc executable into /usr/local/ and fpc units to /usr/local/lib/fpc. but after install i still could not compile because some units where missing, the problem was solved only by copying /usr/local/lib/fpc/ folder to /usr/lib/fpc/. then it worked. this i cannot understand. if /usr/local/ is the installation path why should fpc look for units in /usr/lib/fpc, not in /usr/local/lib/fpc?
moreover! during the installation ppc386 is not copied anywhere, a have to copy it manually into /usr/local/bin/.
is this a bug or not? maybe it should be reported to fpc?
or maybe i did something wrong from the very beginning?
Leledumbo:
--- Quote ---if /usr/local/ is the installation path why should fpc look for units in /usr/lib/fpc, not in /usr/local/lib/fpc?
--- End quote ---
If you first install fpc using .debs or something else packaged, it's installed to /usr. If you compile from source then it would be /usr/local.
--- Quote ---moreover! during the installation ppc386 is not copied anywhere, a have to copy it manually into /usr/local/bin/.
is this a bug or not? maybe it should be reported to fpc?
--- End quote ---
No, it isn't. ppc386 in /usr/bin should be a symlink to /usr/lib/fpc/ppc386.
--- Quote ---or maybe i did something wrong from the very beginning?
--- End quote ---
Not really, it's a common beginner mistake. Though there seems no explanation about it anywhere in the wiki.
Navigation
[0] Message Index