[swift-users] For help , I want to call C libary or C functions in swift under Linux circumstance.

Dmitri Gribenko gribozavr at gmail.com
Thu Jan 28 01:36:13 CST 2016


On Wed, Jan 27, 2016 at 11:22 PM, Suipengfei via swift-users
<swift-users at swift.org> wrote:
> I want to call C libary or C functions in swift   under Linux circumstance.
> But I find some materials on the web , they say it need a Darvin . But in
> Linux how can I get a Darvin .

On Linux, please use 'Glibc' instead.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/


More information about the swift-users mailing list