Hi,
I am trying to make a .dsp file for making ROOT development.
I found an about two-year old post from Valeriy Onuchin (Valeri.Onoutchine@cern.ch) at Fri Aug 01 2003 - 17:15:21 MEST. I could not use the .dsp and .dsw files as described there and in addition it is just the project file version of the makefile. I wanted to make a usual project file.
If I comment out some lines, making the MFTest item ineffective, as shown below
[code]#include <TApplication.h>
#include <TGClient.h>
/*
#include “MFTest.h”
//______________________________________________________________________________
MFTest::MFTest( const TGWindow* p, UInt_t height, UInt_t width ) :
TGMainFrame( p, height, width )
{
// ctor
MapWindow();
}
//______________________________________________________________________________
MFTest::~MFTest()
{
// dtor
}
*/
//______________________________________________________________________________
int main(int argc, char** argv)
{
//
char nosplash[2] = {“mftest”,"-l"};
int n = 2;
TApplication application( “ROOT Application”, &n, (char*)&nosplash);
// MFTest t(gClient->GetRoot());
application.Run();
return 0;
}
[/code]
the mftest.exe file bilds OK. When running, the DOS window comes up all right (although of course makes nothing).
If I run within the debugger, I receive the message
[quote]Warning in TWinNTSystem::SetProgname: Cannot find this program named “mftest.e
xe” (Did you create a TApplication? Is this program in your %PATH%?)
[/quote]
Can I avoid this message?
(although interesting that it is asked when the program executes the line
TApplication application( “ROOT Application”, &n, (char**)&nosplash);
)
In addition, if I remove the commented-out lines, I receive the error message
[quote]Linking…
mftest.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall MFTest::Streamer(class TBuffer &)” (?Streamer@MFTest@@UAEXAAVTBuffer@@@Z)
mftest.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall MFTest::ShowMembers(class TMemberInspector &,char *)” (?ShowMembers@MFTest@@UAEXAAVTMemberInspector@@PAD@Z)
mftest.obj : error LNK2001: unresolved external symbol “public: static class TClass * __cdecl MFTest::Class(void)” (?Class@MFTest@@SAPAVTClass@@XZ)
Debug/mftest.exe : fatal error LNK1120: 3 unresolved externals[/quote]
What is missing here and why?
Thanks for the help
Janos