Boost logo

Boost :

From: Bernd Martin Wollny (bm.wollny_at_[hidden])
Date: 2005-11-14 03:38:46


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Hello Stefan,

thank you for your replay.
> this question should go to some C++ newsgroup, as it is only vaguely
> related to boost.
You are right, i will post it again to a C++ newsgroup.

>>boost::shared_ptr<test> SimpleSingleton<test>::as;
>>boost::mutex SimpleSingleton<test>::inst_mutex;
>
>
> should be:
>
> template <> boost::shared_ptr<test> SimpleSingleton<test>::as;
> template <> boost::mutex SimpleSingleton<test>::inst_mutex;
>
>
The empty template parameter solved the compilation problem, but now
there are a link error:

/tmp/ccn0DQFJ.o:t1.cpp:(.text$_ZN15SimpleSingletonI4testE8instanceEv[SimpleSingleton<test>::instance()]+0x44):
undefined reference to `SimpleSingleton<test>::inst_mutex'
/tmp/ccn0DQFJ.o:t1.cpp:(.text$_ZN15SimpleSingletonI4testE8instanceEv[SimpleSingleton<test>::instance()]+0x5d):
undefined reference to `SimpleSingleton<test>::as'
/tmp/ccn0DQFJ.o:t1.cpp:(.text$_ZN15SimpleSingletonI4testE8instanceEv[SimpleSingleton<test>::instance()]+0xab):
undefined reference to `SimpleSingleton<test>::as'
/tmp/ccn0DQFJ.o:t1.cpp:(.text$_ZN15SimpleSingletonI4testE8instanceEv[SimpleSingleton<test>::instance()]+0x103):
undefined reference to `SimpleSingleton<test>::as'

bye
   Bernd

- --
TRIOPTICS GmbH
Bernd Martin Wollny
Software Designer

Hafenstrasse 39, 22880 Wedel/GERMANY
phone / fax: +49 (0)4103 18006-26 /-20
e-mail: bm.wollny_at_[hidden]

All E-Mails from bm.wollny_at_[hidden] are digital signed. If you get a
unsigned E-Mail, this E-Mail are a fake. Look at http://www.gnupg.org .

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDeE0SCjfVnTPD3b4RA5wZAJ9N4FIwom+TXJYDLdpad01CX8l7UgCgp67r
x8vprpyxOZAbg5cNfyOwkNU=
=Xejc
-----END PGP SIGNATURE-----


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk