Hi, George,

On win32, just use the "tiny_impdef" tool that comes with tcc to generate a
.def file for the DLL like this:
C:\> tiny_impdef -o iup.def iup.dll

Then include it when compiling the program:
C:\> tcc -o program.exe program.c iup.def

mingw libraries won't work because they're windows native COFF, and tcc
uses ELF object files, even on windows (executables are, of course, PE,
otherwise they wouldn't run).

On linux, standard ELF .a library files will work just as with GCC.

Cheers,

          -Tiago

On Thu, Aug 30, 2012 at 6:59 PM, Antonio Scuri <[email protected]>wrote:

>   Hi George,
>
>   That depends on how Tiny C supports external libraries. I don't have any
> experience with it. Also it depends on how it integrates with the operating
> system.
>
>   Assuming that your operating system is Windows, it supports DLLs. So some
> of IUP DLL packages can be used. Since TCC itself is built with MingW I
> would suggest the "dllw4" package. Take a look at the tcc/doc/
> tcc-win32.txt
> file for details on how to use the DLLs.
>
>   Feel free to send e-mail direct me. Can be in Portuguese.
>
> Best Regards,
> Antonio Scuri
>
> > -----Original Message-----
> > From: George Kihoma [mailto:[email protected]]
> > Sent: quinta-feira, 30 de agosto de 2012 18:21
> > To: [email protected]
> > Subject: [Iup-users] IUP + TCC
> >
> > Como posso adicionar o IUP no tiny c compiler?
> >
> > How do I add IUP support to Tiny C compiler?
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Iup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/iup-users
>



-- 
In those days, in those distant days, in those nights, in those remote
nights, in those years, in those distant years...
          - Gilgamesh, Enkidu and the Underworld
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to