Re: Tcl Dll problem
- From: "China" <davide.belloni@xxxxxxxxx>
- Date: 16 Jul 2006 07:25:25 -0700
Thank you very much, but i find that is do it...so it isn't the reason.
Helmut Giese wrote:
On 13 Jul 2006 12:35:28 -0700, "China" <davide.belloni@xxxxxxxxx>
wrote:
Hi,
one possible reason is that the DLL's init function is not exported.
On Linux (AFAIK) _all_ functions are exported but on Windows you have
to tell the compiler which ones you want exported by decorating those
with
__declspec(dllexport)
It is often done like this
#ifdef <compiling on Windows>
#define DLL_EXPORT __declspec(dllexport)
#else
#define DLL_EXPORT
#endif
and declaring your init function like
DLL_EXPORT int Your_Init( Tcl_Interp *interp)
so that under Windows you get the decoration and under Linux it
disappears.
HTH
Helmut Giese
.
- References:
- Tcl Dll problem
- From: China
- Re: Tcl Dll problem
- From: Helmut Giese
- Tcl Dll problem
- Prev by Date: Announce: tkpath 0.2
- Next by Date: Instantly commit editing in TkTable?
- Previous by thread: Re: Tcl Dll problem
- Next by thread: How to get a Tk widget's coordinate? How to judge mouse is on a widget or not?
- Index(es):