Article View: alt.comp.lang.learn.c-c++
Article #457Re: Singleton pattern
From: heejune kim
Date: Mon, 21 Jan 2002 02:35
Date: Mon, 21 Jan 2002 02:35
32 lines
2414 bytes
2414 bytes
> class MazeFactory
> {
> public:
> static MazeFactory* Instance();
> protected:
> MazeFactory(); // change this line to 'MazeFactory() {;}'
>
> private:
> static MazeFactory* _instance;
> };
>
> ERROR MESSAGE :-
>
> --------------------Configuration: ProjTemplate - Win32
> Release--------------------
> Compiling...
> main.cpp
> test.cpp
> Generating Code...
> Linking...
> test.obj : error LNK2001: unresolved external symbol "protected:
__thiscall
> MazeFactory::MazeFactory(void)" (??0MazeFactory@@IAE@XZ)
> Release/ProjTemplate.exe : fatal error LNK1120: 1 unresolved externals
> Error executing link.exe.
>
> ProjTemplate.exe - 2 error(s), 0 warning(s)
in header, constructor defined, but its implementation doens't exist. so
unresolved symbol error occuered. So, that code has to be edited blank
constructor implementation provided.
Technical Details
Message-ID:
<a2fumb$o5p$1@news.nuri.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.dacom.co.kr!news-xfer.nuri.net!news.nuri.net!not-for-mailReferences:
<egI28.60178$WQ1.9314204@news6-win.server.ntlworld.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7a5e,4f11b4295b82a2c5 X-Google-Attributes: gidf7a5e,public X-Google-Thread: 110cb8,4f11b4295b82a2c5 X-Google-Attributes: gid110cb8,public X-Google-Thread: 109fba,4f11b4295b82a2c5 X-Google-Attributes: gid109fba,public X-Google-Thread: 114af8,4f11b4295b82a2c5 X-Google-Attributes: gid114af8,public X-Google-Thread: 114592,4f11b4295b82a2c5 X-Google-Attributes: gid114592,public X-Google-Thread: 104db2,4f11b4295b82a2c5 X-Google-Attributes: gid104db2,public X-Google-ArrivalTime: 2002-01-20 18:33:48 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.dacom.co.kr!news-xfer.nuri.net!news.nuri.net!not-for-mail From: "heejune kim" <STOPSPAMdrost@securewiz.net> Newsgroups: alt.comp.lang.learn.c-c++,alt.language.patterns,borland.public.cpp.turbocpp,comp.lang.c++,comp.os.msdos.programmer.turbovision,comp.software.patterns Subject: Re: Singleton pattern Date: Mon, 21 Jan 2002 11:35:41 +0900 Organization: Inet Internet Services Lines: 34 Message-ID: <a2fumb$o5p$1@news.nuri.net> References: <egI28.60178$WQ1.9314204@news6-win.server.ntlworld.com> NNTP-Posting-Host: 210.126.251.227 X-Trace: news.nuri.net 1011580427 24761 210.126.251.227 (21 Jan 2002 02:33:47 GMT) X-Complaints-To: abuse@nuri.net NNTP-Posting-Date: 21 Jan 2002 02:33:47 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000