[Xitami-Dev] xitami (smt) in a multi-threaded windows program
Shivakumar Gopalakrishnan
xitami-dev@lists.xitami.org
Fri, 18 Jul 2003 14:08:09 -0700 (PDT)
Hi
I found this easier method but it will work ONLY IF
you are not accessing smt/sfl functions simultaneously
from multiple threads. Given the warning it has worked
fine with my windows programs.
What I do is creat another configuration in VC++
called MultiThreaded Debug/Release in libsfl project
and change the C++ options to use the Multithreaded
library.
I rebuild the project with the new configuration and
use it in my windows programs without any problems.
Optional Advanced Tip: I also create similarly named
configurations in my windows VC++ project and make it
dependent on the libsfl and libsmt project (You have
to insert the libsfl and libsmt project into your
windows project first) . This way the correct
(debug/release) library gets automatically linked with
my windows program. Also any changes in the libsfl or
libsmt code would automatically force relinking in the
windows program.
Hope this helps.
Shivakumar Gopalakrishnan
--- xitami-dev-request@lists.xitami.org wrote:
> Send Xitami-Dev mailing list submissions to
> xitami-dev@lists.xitami.org
>
> To subscribe or unsubscribe via the World Wide Web,
> visit
> http://lists.xitami.org/mailman/listinfo/xitami-dev
> or, via email, send a message with subject or body
> 'help' to
> xitami-dev-request@lists.xitami.org
>
> You can reach the person managing the list at
> xitami-dev-admin@lists.xitami.org
>
> When replying, please edit your Subject line so it
> is more specific
> than "Re: Contents of Xitami-Dev digest..."
>
>
> Today's Topics:
>
> 1. xitami (smt) in a multi-threaded windows
> program (linker option \MT) (Thomas Burghardt)
> 2. RE: xitami (smt) in a multi-threaded windows
> program (linker option \MT) (Angus Lord)
> 3. SMT 3.0 sockets on Windows XP fail
> (=?iso-8859-1?Q?Rafael_Cano_P=E9rez?=)
>
> --__--__--
>
> Message: 1
> From: "Thomas Burghardt"
> <thomas.burghardt@onlinehome.de>
> To: <xitami-dev@lists.xitami.org>
> Date: Thu, 17 Jul 2003 11:33:46 +0200
> Organization: Worms & Partner
> Subject: [Xitami-Dev] xitami (smt) in a
> multi-threaded windows program (linker option \MT)
> Reply-To: xitami-dev@lists.xitami.org
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_001A_01C34C57.489E5E70
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> Dear programmers,
> we would like to use the xitami (with smt)
> implementation in a =
> multithreading windows program (compile with VC++
> and the \MT option).
> but we still discovered, that smt only run with the
> singlethreaded =
> runtime libraries.
> Is there any solution to link our program with the
> multithreading =
> runtime libraries?
> For example build the xitami as a dynamic link
> library (dll) with single =
> threaded!
>
> With best regards
>
> Institute of Regional Geography
> Thomas Burghardt
> Leipzig
> Germany
> t_burghardt@ifl-leipzig.de
>