Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tcltcc 0.4

112 views
Skip to first unread message

Matthias Keppler

unread,
Sep 21, 2015, 6:22:41 AM9/21/15
to
hi,
on windows i use tclkit with tcltcc 0.4 and it works fine in memory.
But if i want to create a tcl-package-dll there is a missunderstanding of me:

the dll will be created
when I load the dll this error will come
"couldn't load library "hello": this library or a dependent library could not
be found in library path

In a normal tcl dist that works fine.

I think there is a problem with USE_TCL_STUBS. where can i define this in tcltcc 0.4?

thanks for your help - greeting kmatze

Arjen Markus

unread,
Sep 21, 2015, 6:42:03 AM9/21/15
to
Are you sure it is not some runtime library that isn't found? You can check that with Dependency Walker (even though that may not be able to detect all of them - manifest thingies and the like).

Regards,

Arjen

Matthias Keppler

unread,
Sep 21, 2015, 10:50:32 AM9/21/15
to
that's not the problem, regulary you can compile the same c-code with mingw as tcl-extenxion-dll with directive TCL_USE_STUBS. It works.
The created dll can loaded in the tclsh and will work.
The dll can loaded in tclkit and will work.
The dll can packed in tclkit and can loaded and it will work. The dependencies are not the problem.

In tclsh the tcltcc used the same c-code do build dll. You can't load the dll. The dependencies are the problem.

So, i work with mingw to create dll's for tcl. The use of tcltcc would be fine if it works. So the the development environment can be very tiny. That's my goal ;-)

Thanks and greeting - kmatze

Arjen Markus

unread,
Sep 22, 2015, 6:46:40 AM9/22/15
to
Op maandag 21 september 2015 16:50:32 UTC+2 schreef Matthias Keppler:
I have never used tcc myself, perhaps this is a good opportunity to do some experimenting ;).

Regards,

Arjen
0 new messages