Programming in DSL.


Forum: User Feedback
Topic: Programming in DSL.
started by: netfreak

Posted by netfreak on Mar. 12 2004,15:39
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.
Posted by catfish on Mar. 12 2004,16:07
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.

Posted by roberts on Mar. 12 2004,19:21
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.
Posted by TyphoonMentat on Mar. 12 2004,19:40
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.
Posted by netfreak on Mar. 13 2004,18:08
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.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.