<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I thought of a trick to get around this.<br>
<br>
Using XCode, I can build a static library to get me access to the
functions that I need.<br>
<br>
But that is not really the point, I would like my freepascal
environment to be correct<br>
and to be able to use the functions contained in interface files
like cfset.pas.<br>
<br>
Any comment<br>
<br>
Cheers,<br>
<br>
md<br>
<br>
<div class="moz-cite-prefix">On 5/4/2013 10:20 PM, <a class="moz-txt-link-abbreviated" href="mailto:md@rpzdesign.com">md@rpzdesign.com</a>
wrote:<br>
</div>
<blockquote cite="mid:5185DE07.4020207@rpzdesign.com" type="cite">Anybody
have any success with the included units for
<br>
CoreFoundation on Mac OSX.
<br>
<br>
<br>
<br>
I was trying to use CFSetGetCount( ) function call, it is clearly
defined in CFSet.pas
<br>
and yet the linker error is:
<br>
<br>
Identifier Not Found "CFSetGetCount"
<br>
<br>
But magically, the constants from CFBase.pas compile OK, so it
must
<br>
be the compiler directives at the top of CFSET.pas that are
preventing
<br>
that code from getting included and visible by the compiler.
<br>
<br>
#################################
<br>
program testcfset;
<br>
<br>
uses
<br>
CFBase, CFSet ;
<br>
var
<br>
fcnt : single ;
<br>
ret : integer ;
<br>
begin
<br>
fcnt := kCFCoreFoundationVersionNumber10_2 ;
<br>
ret := CFSetGetCount(nil) ;
<br>
end.
<br>
<br>
{ Compiler messages Below:
<br>
testcfset.lpr(6,2) Note: Local variable "fcnt" is assigned but
never used
<br>
testcfset.lpr(7,2) Note: Local variable "ret" is assigned but
never used
<br>
ld: symbol(s) not found for architecture i386
<br>
Undefined symbols for architecture i386:
<br>
"_CFSetGetCount", referenced from:
<br>
_PASCALMAIN in testcfset.o
<br>
ld: symbol(s) not found for architecture i386
<br>
An error occurred while linking
<br>
testcfset.lpr(10,2) Error: Error while linking
<br>
testcfset.lpr(10,2) Fatal: There were 1 errors compiling module,
stopping
<br>
}
<br>
##################################
<br>
<br>
On another project before I built the test project,
<br>
I saw these errors:
<br>
<br>
ld : symbol(s) not found for architecture i386.
<br>
<br>
Undefined symbols for architecture i386:
<br>
"_CFSetGetCount" referenced from : (my code mangled name)
<br>
<br>
Anybody have a clue how to force the compiler to see and use
CFSet.ppu
<br>
from inside /usr/local/lib/fpc/2.6.2/
<br>
<br>
My machine in Mac Mini 2010 with OSX Lion and XCode 4.6.2 Apr 15
with command line tools of same date.
<br>
<br>
I am working under Lazarus 1.08. All the PPU files are where they
should be.
<br>
<br>
Somebody from the Mac Guru crowd have any comments
<br>
<br>
Thanks,
<br>
<br>
md
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
fpc-pascal maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a></pre>
</blockquote>
<br>
</body>
</html>