« Return to Thread: Running a C program

Re: Running a C program

by NeillHog :: Rate this Message:

Reply to Author | View in Thread

Sébastien Lorquet wrote:
native compiling on the slug - this requires having added some swap on a
usb stick, then installing the following ipkgs, possibly from optware, I
don't know unslung (I'm a slugos user):
binutils binutils-symlinks cpp cpp-symlinks gcc gcc-symlinks

then you can run the gcc -o test test.c on the slug itself, and it will work
as expected (but not on a pc :) )
Thanks again
As I wrote, may device is unslung.
With ipkg install crosstool-native I installed a compiler and that allows me to compile on the NSLU2.
Neill

 « Return to Thread: Running a C program