Opened 22 months ago

Last modified 5 weeks ago

#1346 new defect

define-external variables can't be exported

Reported by: sjamaan Owned by:
Priority: major Milestone: 5.1
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 (2)

comment:1 Changed 22 months ago by LemonBoy

Here's a patch patch addressing this problem.

comment:2 Changed 5 weeks ago by sjamaan

  • Milestone changed from someday to 5.1

Let's try to fix this in 5.1. It's still relevant.

Note: See TracTickets for help on using tickets.