lostgallifreyan wrote:
Extra point: Actual TCC error is given literally as "tcc: cannot find -lLua.dll"
Actually there is the "hello_dll" example that you should try first to see how linking with a DLL works. === To clarify: TCC (like most other compiler on windows except GCC) cannot link DLL's directly. With TinyCC you need a .def file created with the tiny_impdef tool or (if your're using current GIT/CVS version of TCC) created automatically together with the dll by tcc.exe. You then link with foo.def 1) either using "tcc -lfoo ..." (that is if foo.def is in tcc/lib or in a location that you specify using the -L<libdir> option) 2) or using "tcc foo.def ...", that is the plain full name of the .def file. In short: It works the same with ".def" as with libraries ".a". And yes, it should work to compile lua with TCC, also when built as DLL. === As to GDI and other windows specific questions as others have already pointed out, it is best to refer to what MS has to say about directly. Tip: There is the entire Win32-API in a single .hlp file available on the LCC-WIN32 site: http://www.cs.virginia.edu/~lcc-win32/ ftp://ftp.cs.virginia.edu/pub/lcc-win32/win32hlp.exe (It was also available on the borland site, once). It is for Win95 actually, but if you configure your editor that F1 pops up that help file for the keyword under the cursor then you have a very convenient setup to go for almost everything you'll maybe ever want to do with Windows. Hope this helps. --- grischka _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/tinycc-devel