when i try this i get

  tcc-0.9.23-550> tcc/tcc -Iinclude examples/fib.c
  tcc: undefined symbol 'printf'
  tcc: undefined symbol 'atoi'
  tcc: undefined symbol '_start'
  tcc-0.9.23-551>

my problem is that i have cygwin installed and would rather not install mingw so i'd love it if i could configure tcc to use the cygwin libraries. any ideas?

ice wrote:
Actually, the binary package *does* provide include files. You just
need to reference them:

C:\Program Files\tcc-0.9.23>tcc\tcc -Iinclude .\examples\fib.c

(note' that's a capital 'i' in front of "include", in case your email
client is rendering it weirdly)

On 6/29/06, Daniel Glöckner <[EMAIL PROTECTED]> wrote:
On Fri, Jun 30, 2006 at 01:40:11AM +0800, rty wrote:
> .\examples\fib.c:1: include file 'stdio.h' not found
>
> my question: how to include stdio.h ?
> I use windows98

TCC does not provide stdio.h, as it was originally targetted at unix-like
systems where C header files are usually provided by the vendor.

You could try the free Borland 5.5 compiler (see
http://personal.sirma.bg/Jogy/bcc55.html ) or the open source MinGW
port of GCC (http://www.mingw.org ). Use Cygwin (http://www.cygwin.com )
if the C libraries that MinGW uses are not close enough to ISO/ANSI/POSIX
standards for your purpose.

Other free Windows compilers are:
- Open Watcom http;//www.openwatcom.org
- LCC-Win32 http://www.cs.virginia.edu/~lcc-win32/
- Microsoft Visual C++, somewhere on Microsoft's site

  Daniel


_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel









_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to