Re: Foreign functions from RMCL 5.1 to RMCL 5.2
Terje Norderhaug <[email protected]> Mon, 1 Feb 2010 10:22:54 -0800
| Newsgroups | gmane.lisp.mcl.general |
|---|---|
| Message-ID | <[email protected]> |
On Feb 1, 2010, at 6:38 AM, Sandro Pedrazzini wrote:
> What is the difference in foreign functions' use from RMCL 5.1 to RMCL
> 5.2?
MCL 5.2 upgraded to by default use Mach-O instead of CFM. Try setting
*dont-use-cfm* to NIL before defining the entry point for old school
CFM shared libs.
-- Terje
> I have a Carbon shared library that I specify and use in RMCL 5.1 as
> follows:
>
> (ccl::add-to-shared-library-search-path "CarbonRegex")
>
> (define-entry-point ("match_pattern" ("CarbonRegex"))
> ((pat :string)
> (str :string))
> :long)
>
> (defun c-match-pattern (pattern string) ;;(print-db pattern)(print-db
> string)
> (with-cstrs ((pat pattern)
> (str string))
> (match_pattern pat str)))
>
> ;; tests
>
> (c-match-pattern ".*[ae]uer" "sauer")
> => 5
>
> Everything is fine.
>
>
>
> Trying the same thing on 5.2 I get following error, after calling the
> "c-match-pattern" function:
>
>> Error: Couldn't find address for "match_pattern"
>> While executing: CCL::MACHO-ADDRESS
>> Type Command-. to abort.
> See the Restarts… menu item for further choices.
>
>
> Am I missing something?
>
>
> Best regards
> Sandro
>
>
>
>
>
>
>
>
> _______________________________________________
> info-mcl mailing list
> [email protected]
> http://clozure.com/mailman/listinfo/info-mcl
-- Terje Norderhaug
[email protected]
_______________________________________________
info-mcl mailing list
[email protected]
http://clozure.com/mailman/listinfo/info-mcl