Re: Tcl and C++
From: Victor Wagner (vitus_at_45.free.net)
Date: 09/14/04
- Next message: Kevin Walzer: "Text entry--can't pass to pipe"
- Previous message: youpy: "Re: Task scheduler"
- In reply to: Khamis Abuelkomboz: "Re: Tcl and C++"
- Next in thread: Sektor van Skijlen: "Re: Re: Tcl and C++"
- Reply: Sektor van Skijlen: "Re: Re: Tcl and C++"
- Reply: Cameron Laird: "Re: Tcl and C++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 14 Sep 2004 10:33:37 +0000 (UTC)
Khamis Abuelkomboz <khamis@wellcode.com> wrote:
loadlibrary) from a c++
: shared library, you have loost. functions are named there cryptocally.
My experiences shows that code inside these functions look simularily
horrible.
: my experience on windows (only for functions) is to tell the linker to
: use the c export standard, so you can load the functions as like as c
: written functions.
It is only way to go. But thus you are loosing all advantages of C++
in the level between your shared library and calling code. And may well
end up with two copies of C++ runtime (which is BI-I-IG) linked into
your application.
Recently I've dropped tcom from my application and switched to optcl for
access to windows-specific things such as shortcut creation.
It saved me about 300K of distribution size just due to I no more need
to distribute MSVCP71.DLL with my app.
On Unix systems problem is even worse. There is system libc, which you
never need to distribute - it just sits here and works.
But C++ runtime is tightly tied to particular version of compiler.
If system has good package manager, such as Debian, you can just put in
correct dependency and let user worry about seven copies of C++ standard
library in his system. In most other cases you'll need either link
statically, or distribute particular version of runtime with your app.
Compare it with Tcl stubs mechanism.
--
- Next message: Kevin Walzer: "Text entry--can't pass to pipe"
- Previous message: youpy: "Re: Task scheduler"
- In reply to: Khamis Abuelkomboz: "Re: Tcl and C++"
- Next in thread: Sektor van Skijlen: "Re: Re: Tcl and C++"
- Reply: Sektor van Skijlen: "Re: Re: Tcl and C++"
- Reply: Cameron Laird: "Re: Tcl and C++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|