The tcc needs headers and librariesForum: DSL Ideas and Suggestions Topic: The tcc needs headers and libraries started by: sidereal Posted by sidereal on July 27 2004,11:14
I tried running the tcc in version 0.7.2, and I got error after error about header files. I checked, and I believe the problem is that when one compiles the tcc, and runs it on that system, it works because its using the headers and libraries on that system. The tcc does not come with headers and libraries. So when one moves it to other system, it won't work, unless they add in headers and libraries. I've heard of this happening for other compilers. Of course, it's not a question I'm saying it because I hope it can be fixed. Unless I did something wrong, but it also looks like there isn't any path set to the include and lib directories, and the include directory doesn't have the proper headers.
Posted by mikshaw on July 27 2004,13:47
Someone correct me if I'm wrong, but it sounds like you're saying you compiled an application for another system, and then expected it to run without trouble on DSL. This works for some programs....ones which have no dependancies beyond what it included in DSL, or ones which have been statically compiled along with all necessary dependencies, but most programs will need more work than just copying binaries to DSL.
Posted by sidereal on July 28 2004,00:39
No, the tcc comes on dsl. I tried to use what was all ready there. I'm saying that the person who added the tcc to dsl, the developer who added it the distribution, did what my post says.And the headers that I'm talking about are all of the ANSI C 89 standard. ie. stdio.h, stdlib.h, math.h, string.h.......... I mean everything! Hello World! doesn't work. #include <stdio.h> /*<- there's the error*/ int main(void) { printf("Hello World!\n"); return 0; } The profile file nor the .bashrc file have the variables include or library set, and the directory /usr/include doesn't have said headers. This is a problem with the actual dsl distribution, possibly is far back as the first version. Posted by roberts on July 28 2004,05:43
Might I suggest that you look at the documentation provided on the CD.Getting Started->Other Documentation->On CD Documentation->tinycc #include <tcclib.h> /*<- use this */ int main(void) { printf("Hello World!\n"); return 0; } |