[Top][All Lists]

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

Re: [Tinycc-devel] How to link...? (Restated, with full code this time)

From: Lostgallifreyan
Subject: Re: [Tinycc-devel] How to link...? (Restated, with full code this time)
Date: Thu, 16 Feb 2012 19:45:56 -0000

Well, I was very kindly answered by 'nobody' (and myself a couple of times) but 
nobody didn't have anything to say so I eventually found a way myself.

In case anyone comes by wanting the answer, it's this:
tiny_impdef.exe C:/Windows/System/Winmm.dll
(tiny_impdef.exe is supplied with TCC)
Put the resulting WINMM.DEF file into the TCC's lib directory. After which this 


(Do not use '-Lwinmm.def', use LOWER case -l, and omit the .def bit or it still 

I still don't know why we can't do it with the same command we'd use for GCC, 
but it this price of inconvenience pays for the ability to fetch definitions 
from ANY dll file so we can call its functions for code compiled with TCC, it's 
a neat idea that I can live with.

reply via email to

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