tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] using tcc as a cross compiler for Windows


From: Luigi Rizzo
Subject: Re: [Tinycc-devel] using tcc as a cross compiler for Windows
Date: Tue, 16 Feb 2010 22:32:42 +0100
User-agent: Mutt/1.4.2.3i

On Tue, Feb 16, 2010 at 05:16:59PM +0100, grischka wrote:
> Luigi Rizzo wrote:
...
> >     > ./tcc -Iwin32 -Iwin32/include ~/c-src/card.c -L . -L ../win-bin/
> >
> >this works fine
> 
> Surely works.  But is horribly redundant ;)
> 
> Basically with CONFIG_TCCDIR set correctly (and with i386-win32-tcc
> installed) all you need (and ever should need) is:
> 
> $ cd win32/examples
> $ i386-win32-tcc hello_win.c

hmmm. i still don't understand how the i386-win32-tcc finds the missing
symbols (or, knows that they are in msvcrt.dll and kernel32.dll) ?
At least, without them in my case i was getting unresolved symbols.

cheers
luigi

> This produces hello_win.exe that can be run on windows or under wine.
> 
> --- grischka
> 
> 
> 
> _______________________________________________
> Tinycc-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/tinycc-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]