[fpc-pascal] fp libraries do not like cmem ?
Fred van Stappen
fiens at hotmail.com
Thu Feb 13 17:04:57 CET 2014
> Please provide a simple, self contained example that shows this
problem.
>Regards,
>Sven
Hello.
Hum, i have done a simple library, with a thread and a simple program calling this library.
Not usefully to show it because, both using cmem are working perfectly... ;-)
So the problem is somewhere else.
I resume: if i use cmem in uses section of uos library (without debug on) it compile but i get that error when a program call the library (at thread.terminate):
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe859c700 (LWP 3289)]
0x00007fffefe08944 in ?? ()
from /home/fred/uoslib/examples/lib/Linux/64bit/libuos-64.so
I have then try to compile uos library with that parameters with debug :
-MObjFPC -Scghi -O1 -gw2 -godwarfsets -gl -gv -Xg -gt -pg -vewnhi
and with cmem in uses section.
And now, fpc refuse to compile, focusing at cmem in uses section !
>> simpleplayer.lpr(7,8) Error: Duplicate identifier "cmem"
I do not understand, i never declare cmem somewhere else, why does the debugger say me that ?
(and sure, that is the problem=>solution).
Here the uses section :
uses
{$IFDEF UNIX}
cthreads,
cwstring, {$ENDIF}
cmem, // => debugger focus here, saying "Error: Duplicate identifier "cmem" ??
ctypes, uos;
Many thanks.
Fred.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140213/7c31f1b2/attachment.html>
More information about the fpc-pascal
mailing list