Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: The tcc needs headers and libraries, Problem....< Next Oldest | Next Newest >
sidereal Offline





Group: Members
Posts: 3
Joined: July 2004
Posted: July 27 2004,11:14 QUOTE

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.
Back to top
Profile PM AOL 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: July 27 2004,13:47 QUOTE

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.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
sidereal Offline





Group: Members
Posts: 3
Joined: July 2004
Posted: July 28 2004,00:39 QUOTE

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.
Back to top
Profile PM AOL 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: July 28 2004,05:43 QUOTE

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;
}
Back to top
Profile PM WEB 
3 replies since July 27 2004,11:14 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: The tcc needs headers and libraries

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code