tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] [win32] implib support? custom entry point/subsystem?


From: grischka
Subject: Re: [Tinycc-devel] [win32] implib support? custom entry point/subsystem?
Date: Thu, 28 Nov 2013 13:03:53 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Roy Tam wrote:
Hello list,

I'm having difficulties wwhen using tinycc to compile programs which
uses Windows COM/OLE interfaces (for example shlobj.h, ole2.h) even
tough I patch up lcc-win32 winapi headers to make it work with tcc,

Better use winapi headers from mingw-64.

there is a problem that I can't get objects to be linked as there is
some objects that has to be linked though implib (for example,
CLSID_ShellLink in libshell32.a)

Either define in your source, like:
// uuid(00021401-0000-0000-C000-000000000046)
const IID CLSID_ShellLink = { 0x00021401, 0, 0, {0xC0,0,0,0,0,0,0,0x46}};

... or create your own (lib)uuid.a using tcc and ar from mingw.

(tiny_libmaker would probably have problems with command-line
length because it cannot add files incrementally)

--- grischka

And what about custom entry point/subsystem? (i.e. the famous
-Wl,-e<EntryPoint> and -Wl,--subsystem,console/windows switches)

Ciao,
Roy




reply via email to

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