Foreign functions from RMCL 5.1 to RMCL 5.2
Sandro Pedrazzini <[email protected]> Mon, 1 Feb 2010 15:38:03 +0100
| Newsgroups | gmane.lisp.mcl.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
What is the difference in foreign functions' use from RMCL 5.1 to RMCL
5.2?
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