Opened 2 years ago

Last modified 4 months ago

#1346 new defect

define-external variables can't be exported

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

comment:1 Changed 2 years ago by LemonBoy

Here's a patch patch addressing this problem.

comment:2 Changed 9 months ago by sjamaan

  • Milestone changed from someday to 5.1

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

comment:3 Changed 4 months ago by sjamaan

  • Milestone changed from 5.1 to 5.2

Getting ready for 5.1, moving tickets which won't make it in to 5.2.

Note: See TracTickets for help on using tickets.