[Openmcl-devel] I rebuilt my cdb files...now what?
Ron Garret
ron at awun.net
Tue Nov 6 17:09:54 PST 2007
On Nov 6, 2007, at 4:52 PM, Gary Byers wrote:
>
>
> On Tue, 6 Nov 2007, R. Matthew Emerson wrote:
>
>>
>> On Nov 6, 2007, at 7:04 PM, Ron Garret wrote:
>>
>>> I then restarted CCL but none of the mysql definitions worked, e.g.:
>>>
>>> ? #$MYSQL_OPT_CONNECT_TIMEOUT
>>>
>>>> Error: Constant not found: X86-DARWIN64::MYSQL_OPT_CONNECT_TIMEOUT
>>>
>>> MYSQL_OPT_CONNECT_TIMEOUT is an enum element. But nothing works.
>>> Constants defined with #DEFINE aren't there. Functions aren't found
>>> using #_ (though I can call them manually using the FFI so I know
>>> they're loaded properly).
>>>
>>> What am I missing?
>>
>> Maybe (use-interface-dir :mysql)?
>>
>>
>
> At least, but there's another thing worth mentioning.
>
> The C preprocessor allows things like:
>
> #define X Y
> #define Y 17
It never ceases to amaze me how such a small language can encompass so
many bad ideas.
> It's therefore often necessary to run the ffi parser twice on a new
> set of .ffi files.
NOW you tell us! ;-)
> Fortunately, doing:
>
> ? (ccl:create-interfaces :mysql) ; I HOPE it's exported
That did it! (And it is!)
Works now! Thanks!
This is converging rapidly. Woohoo!
rg
More information about the Openmcl-devel
mailing list