Opened 20 months ago

Last modified 20 months ago

#1346 new defect

define-external variables can't be exported

Reported by: sjamaan Owned by:
Priority: major Milestone: someday
Component: compiler Version: 4.12.0
Keywords: ffi Cc:
Estimated difficulty: medium


This program fails to compile:

(module test (x)
  (import foreign scheme chicken)
  (define-external x int 123))

If you don't wrap it in a module, x doesn't exist if you load the shared object you get from csc -s.

Change History (1)

comment:1 Changed 20 months ago by LemonBoy

Here's a patch patch addressing this problem.

Note: See TracTickets for help on using tickets.