Hello,

On Thu, 24 Oct 2019, Herman ten Brugge via Tinycc-devel wrote:

> I wanted to test how windows generated some code. I never use windows so I
> wanted to use wine.
> 
> I copied the Makefile from 'https://sourceforge.net/projects/wintcc/' and
> adjusted it a little bit.
> 
> Now I can use the windows version on linux with wine.

There's an IMO easier way without external makefiles:

% make cross-x86_64-win32
% make install
% x86_64-win32-tcc hello.c
% wine hello.exe

(without the install step you obviously need to add the library and 
include paths explicitely:
% ./x86_64-win32-tcc -B. -Iwin32/include -Lwin32/lib -L. hello.c
)


Ciao,
Michael.

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to