User Feedback :: Programming in DSL.



Hi everyone. Just yesterday i was playing with DSL, one of the first things i tried was the compiler. After writing  a very simple code in C, and saving the file,  i tried compiling it but the output gave and error message. I tried another simple code in C++ but i couldn't save the file, or compile it. I'm basically new to linux. Any advice is appreciated.
The "tcc" compiler is C only. Use "#include <tcclib.h>" to get the "standard" include definitions. Link with "-lstdC++-3-libc6.2-2-10.0" (this is from memory so I'm sure the filename is wrong - look in /usr/lib/ for the right filename). Or just use the "-run" option with tcc to build and run without creating an executable.

There are several other helpful posts regarding compiling also.

Starting with 0.6.x the link to create the executable is very simple. It is just -lc So it looks like this: tcc -o filename -lc filename.c You will need the include as Catfish pointed out.
Roberts, how did you manage to set up tcc like that? On my system (not DSL, unfortunately) I can't get tcc to work properly.
Thanks for the advice everyone. I' never heard of "tcc" before. The reason why i thought it was C++ was because the output message showed g++. Oh well
Thanks again.

Next Page...
original here.