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


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

Reply via email to