Problems with linking with visual c++ 6.0, Windows XP

Hello,
When I want to run the hello.cxx file from the $rootsys/test directory
i get the following linking errors:

RootTest.obj : error LNK2001: unresolved external symbol “public: static class TClass * __cdecl Hello::Class(void)” (?Class@Hello@@SAPAVTClass@@XZ)
RootTest.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall Hello::ShowMembers(class TMemberInspector &,char *)” (?ShowMembers@Hello@@UAEXAAVTMemberInspector@@PAD@Z)
RootTest.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall Hello::Streamer(class TBuffer &)” (?Streamer@Hello@@UAEXAAVTBuffer@@@Z)
RootTest.obj : error LNK2001: unresolved external symbol “class ROOT::TGenericClassInfo * __cdecl ROOT::GenerateInitInstance(class Hello const *)” (?GenerateInitInstance@ROOT@@YAPAVTGenericClassInfo@1@PBVHello@@@Z)
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main

even though I have declared all *.lib files from $rootsys/lib in my project. Might it be that the T-Classes are not implemented for windows?

thank you a lot!

Michael

Hi Michael,
not clear what is a problem.
Do you run it as standalone(exe) program?

To run Hello you need
root[]gSystem->Load(“Hello.dll”)
root[]Hello hello

Regards. Valeriy

I try to build the file with visual c++ 6.0. I have included all *.lib files (as described on:
http://d0.phys.washington.edu/~haas/windows%20compiling.html )
Compiling is no problem, but when it tries to link the error occurs!
Thank you for your help!
Michael

hi,

you need to create a dictionary for hello.cxx. How to do this with vc++ is described in http://www.slac.stanford.edu/~gentit.

so long

Lutz