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


(Suipengfei) #1

Hi,

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 .

3Q~~


(Dmitri Gribenko) #2

On Linux, please use 'Glibc' instead.

Dmitri

ยทยทยท

On Wed, Jan 27, 2016 at 11:22 PM, Suipengfei via swift-users <swift-users@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 .

--
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@gmail.com>*/