Hi Russel --

Apologies for the delayed response -- we had some mixed signals internally as to who was going to handle the response to this thread.

My quick/lazy answer was going to be that 'chpl --library --dynamic' should cause all 'extern proc' declarations to get bundled into a '.so' file. But then rather than being lazy, I gave it a quick try, and it didn't seem to work cleanly as I'd expected. Dropping the --dynamic flag, I do seem to get a '.a' file.

Offhand, I'm not certain whether this is a personal problem (mine), a case of bitrot, or something that never worked as I thought it did. We'll look into it further.

-Brad


On Wed, 11 Oct 2017, Russel Winder wrote:

Forgive that I may just have failed to do enough research:

Is there a way of compiling to a shared object with C linkage entry points?

I am guessing the entry points are procs with export annotations, but what
command line to generate a shared object.

--
Russel.
==========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Chapel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-users

Reply via email to