RE: [ROOT] Linking under Windows

From: Philippe Canal (pcanal@fnal.gov)
Date: Thu Sep 26 2002 - 17:38:23 MEST


Hi,

Did you generate and link with the Dictionary for the class 'myclass'?
See 'How to add a class' in the Users' guide or any information on how to
use rootcint.

Cheers,
Philippe

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Lindelöf David
Sent: Thursday, September 26, 2002 9:58 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] Linking under Windows


Hello,

I suppose this is a well-known problem but couldn't find any answer
anywhere:

I've installed root under Windows 2000 and am trying under Visual C++ to
build a .DLL following Andrew Haas' instructions. I scrupulously add all
*.lib to the project, and specify the include directory, yet when the time
comes to build the .DLL come error messages of this kind:

error LNK2001: unresolved external symbol "class ROOT::TGenericClassInfo *
__cdecl ROOT::GenerateInitInstance(class myclass const *)"
(?GenerateInitInstance@ROOT@@YAPAVTGenericClassInfo@1@PBVmyclass@@@Z)

Could anyone enlighten me as to what I am doing wrong?

Thanks and cheers,

David Lindelöf

Quantum mechanics: the dreams stuff is made of



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:11 MET