Login  Register

Want to run C code in Pharo using UFFI

Posted by shawon58 on Jun 18, 2020; 6:30am
URL: https://forum.world.st/Want-to-run-C-code-in-Pharo-using-UFFI-tp5118686.html

Hello There
i am new to Pharo, so as i learn UFFI can handle c code, but i want to know
that, how to run below attached code using UFFI.

#include<stdlib.h>
#include<stdio.h>

int main( void ) {

  int result ;
  result=system("D:/DEV_FreeCAD/build/bin/box.step");
  printf("%d",result);
  return 0;
}


So if anyone have idea please share with me. It will be a great help to me.

Thanks for your kind help




--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html