RE: [ROOT] Re: Minmal ROOT program under NT

From: Axel Naumann (a.naumann@worldnet.att.net)
Date: Wed Feb 21 2001 - 06:32:09 MET


Hi Konstantin,

sometimes the problem is not "too little" but "too much". In fact, root and
e.g. MFC don't really work together (they do, but it costs some time to get
it to work). I know that the StdAfx is included as soon as you select
anything more complex than a simple console app. But in fact that's exactly
what you should try first.

You should have a look at Andy Haas' page "Root and Windows" at
http://d0.phys.washington.edu/~haas/windows%20introduction.html

Cheers, Axel.


-----Original Message-----
From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On
Behalf Of Konstantin Belov
Sent: Wednesday, February 21, 2001 2:54 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] Re: Minmal ROOT program under NT


Hi:

When I try to build a stand alone program
http://root.cern.ch/root/roottalk/roottalk00/0009.html for Win NT 4, despite
all libraries are included, I got the following errors:

Linking...
StdAfx.obj : error LNK2001: unresolved external symbol "void __cdecl
InitGui(void)" (?InitGui@@YAXXZ)
StdAfx.obj : error LNK2001: unresolved external symbol "public: __thiscall
TROOT::TROOT(char const *,char const *,void (__cdecl**)(void))"
(??0TROOT@@QAE@PBD0PAP6AXXZ@Z)
StdAfx.obj : error LNK2001: unresolved external symbol "public: virtual
__thiscall TROOT::~TROOT(void)" (??1TROOT@@UAE@XZ)
StartUpProject.obj : error LNK2001: unresolved external symbol "public:
static void __cdecl TObject::operator delete(void *)" (??3TObject@@SAXPAX@Z)
StartUpProject.obj : error LNK2001: unresolved external symbol "public:
__thiscall TPad::TPad(char const *,char const
*,double,double,double,double,short,short,short)"
(??0TPad@@QAE@PBD0NNNNFFF@Z)
StartUpProject.obj : error LNK2001: unresolved external symbol "public:
__thiscall TCanvas::TCanvas(char const *,char const *,int,int,int,int)"
(??0TCanvas@@QAE@PBD0HHHH@Z)
StartUpProject.obj : error LNK2001: unresolved external symbol "public:
__thiscall TApplication::TApplication(char const *,int *,char * *,void
*,int)" (??0TApplication@@QAE@PBDPAHPAPADPAXH@Z)
StartUpProject.obj : error LNK2001: unresolved external symbol "public:
static void * __cdecl TStorage::ObjectAlloc(unsigned int)"
(?ObjectAlloc@TStorage@@SAPAXI@Z)

Thanks a lot for your help.

Konstantin



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:37 MET