Re: Tcl Dll problem



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

.