[admin@localhost ex14]$ make clean rm -f *.o *~ ex14Dict.* ex14app [admin@localhost ex14]$ make dict rootcint -f ex14Dict.cxx -c ex14.h ex14LinkDef.h [admin@localhost ex14]$ make g++ -g -Wall -I. -I/include -c ex14.cxx ex14.cxx:1:26: error: TApplication.h: No such file or directory ex14.cxx:2:22: error: TGClient.h: No such file or directory ex14.cxx:3:21: error: TCanvas.h: No such file or directory ex14.cxx:4:21: error: TRandom.h: No such file or directory ex14.cxx:5:22: error: TGButton.h: No such file or directory ex14.cxx:6:33: error: TRootEmbeddedCanvas.h: No such file or directory ex14.cxx:7:18: error: TH1F.h: No such file or directory ex14.cxx:8:21: error: TThread.h: No such file or directory In file included from ex14.cxx:9: ex14.h:1:21: error: TGFrame.h: No such file or directory In file included from ex14.cxx:9: ex14.h:10: error: ‘Bool_t’ does not name a type ex14.h:11: error: ‘Int_t’ does not name a type ex14.h:17: error: expected class-name before ‘{’ token ex14.h:27: error: ISO C++ forbids declaration of ‘TGWindow’ with no type ex14.h:27: error: expected ‘,’ or ‘...’ before ‘*’ token ex14.h:38: error: expected identifier before numeric constant ex14.h:38: error: expected ‘,’ or ‘...’ before numeric constant ex14.h:38: error: ISO C++ forbids declaration of ‘ClassDef’ with no type ex14.h:39: error: expected ‘;’ before ‘}’ token ex14.h:39: error: expected ‘;’ before ‘}’ token ex14.cxx:17: error: ISO C++ forbids declaration of ‘TGWindow’ with no type ex14.cxx:17: error: expected ‘,’ or ‘...’ before ‘*’ token ex14.cxx: In constructor ‘MyMainFrame::MyMainFrame(int)’: ex14.cxx:18: error: class ‘MyMainFrame’ does not have any field named ‘TGMainFrame’ ex14.cxx:18: error: ‘p’ was not declared in this scope ex14.cxx:18: error: ‘w’ was not declared in this scope ex14.cxx:18: error: ‘h’ was not declared in this scope ex14.cxx:21: error: ‘kDeepCleanup’ was not declared in this scope ex14.cxx:21: error: ‘SetCleanup’ was not declared in this scope ex14.cxx:22: error: invalid use of incomplete type ‘struct TRootEmbeddedCanvas’ ex14.h:5: error: forward declaration of ‘struct TRootEmbeddedCanvas’ ex14.cxx:23: error: expected type-specifier before ‘TGLayoutHints’ ex14.cxx:23: error: expected ‘)’ before ‘TGLayoutHints’ ex14.cxx:24: error: ‘AddFrame’ was not declared in this scope ex14.cxx:25: error: invalid use of incomplete type ‘struct TRootEmbeddedCanvas’ ex14.h:5: error: forward declaration of ‘struct TRootEmbeddedCanvas’ ex14.cxx:27: error: ‘TGHorizontalFrame’ was not declared in this scope ex14.cxx:27: error: ‘hframe’ was not declared in this scope ex14.cxx:27: error: expected type-specifier before ‘TGHorizontalFrame’ ex14.cxx:27: error: expected ‘;’ before ‘TGHorizontalFrame’ ex14.cxx:28: error: invalid use of incomplete type ‘struct TGTextButton’ ex14.h:6: error: forward declaration of ‘struct TGTextButton’ ex14.cxx:29: error: invalid use of incomplete type ‘struct TGTextButton’ ex14.h:6: error: forward declaration of ‘struct TGTextButton’ ex14.cxx:30: error: expected type-specifier before ‘TGLayoutHints’ ex14.cxx:30: error: expected ‘)’ before ‘TGLayoutHints’ ex14.cxx:31: error: invalid use of incomplete type ‘struct TGTextButton’ ex14.h:6: error: forward declaration of ‘struct TGTextButton’ ex14.cxx:32: error: expected type-specifier before ‘TGLayoutHints’ ex14.cxx:32: error: expected ‘)’ before ‘TGLayoutHints’ ex14.cxx:33: error: invalid use of incomplete type ‘struct TGTextButton’ ex14.h:6: error: forward declaration of ‘struct TGTextButton’ ex14.cxx:34: error: invalid use of incomplete type ‘struct TGTextButton’ ex14.h:6: error: forward declaration of ‘struct TGTextButton’ ex14.cxx:35: error: expected type-specifier before ‘TGLayoutHints’ ex14.cxx:35: error: expected ‘)’ before ‘TGLayoutHints’ ex14.cxx:36: error: invalid use of incomplete type ‘struct TGTextButton’ ex14.h:6: error: forward declaration of ‘struct TGTextButton’ ex14.cxx:37: error: expected type-specifier before ‘TGLayoutHints’ ex14.cxx:37: error: expected ‘)’ before ‘TGLayoutHints’ ex14.cxx:39: error: invalid use of incomplete type ‘struct TH1F’ ex14.h:4: error: forward declaration of ‘struct TH1F’ ex14.cxx:40: error: invalid use of incomplete type ‘struct TH1F’ ex14.h:4: error: forward declaration of ‘struct TH1F’ ex14.cxx:40: error: ‘kYellow’ was not declared in this scope ex14.cxx:43: error: ‘SetWindowName’ was not declared in this scope ex14.cxx:44: error: ‘MapSubwindows’ was not declared in this scope ex14.cxx:45: error: ‘GetDefaultSize’ was not declared in this scope ex14.cxx:45: error: ‘Resize’ was not declared in this scope ex14.cxx:46: error: ‘MapWindow’ was not declared in this scope ex14.cxx:49: error: invalid use of incomplete type ‘struct TThread’ ex14.h:3: error: forward declaration of ‘struct TThread’ ex14.cxx:50: error: ‘struct ThreadArgs_t’ has no member named ‘fRun’ ex14.cxx:50: error: ‘kTRUE’ was not declared in this scope ex14.cxx:51: error: ‘struct ThreadArgs_t’ has no member named ‘fRandomType’ ex14.cxx: In member function ‘void MyMainFrame::StartStop()’: ex14.cxx:62: error: invalid use of incomplete type ‘struct TThread’ ex14.h:3: error: forward declaration of ‘struct TThread’ ex14.cxx:62: error: incomplete type ‘TThread’ used in nested name specifier ex14.cxx:63: error: ‘struct ThreadArgs_t’ has no member named ‘fRun’ ex14.cxx:63: error: ‘kFALSE’ was not declared in this scope ex14.cxx:65: error: invalid use of incomplete type ‘struct TGTextButton’ ex14.h:6: error: forward declaration of ‘struct TGTextButton’ ex14.cxx:68: error: ‘struct ThreadArgs_t’ has no member named ‘fRun’ ex14.cxx:68: error: ‘kTRUE’ was not declared in this scope ex14.cxx:69: error: invalid use of incomplete type ‘struct TThread’ ex14.h:3: error: forward declaration of ‘struct TThread’ ex14.cxx:70: error: invalid use of incomplete type ‘struct TGTextButton’ ex14.h:6: error: forward declaration of ‘struct TGTextButton’ ex14.cxx:72: error: ‘gClient’ was not declared in this scope ex14.cxx:73: error: invalid use of incomplete type ‘struct TCanvas’ ex14.h:7: error: forward declaration of ‘struct TCanvas’ ex14.cxx:74: error: invalid use of incomplete type ‘struct TCanvas’ ex14.h:7: error: forward declaration of ‘struct TCanvas’ ex14.cxx: In member function ‘void MyMainFrame::Reset()’: ex14.cxx:82: error: invalid use of incomplete type ‘struct TH1F’ ex14.h:4: error: forward declaration of ‘struct TH1F’ ex14.cxx:83: error: invalid use of incomplete type ‘struct TCanvas’ ex14.h:7: error: forward declaration of ‘struct TCanvas’ ex14.cxx:84: error: invalid use of incomplete type ‘struct TCanvas’ ex14.h:7: error: forward declaration of ‘struct TCanvas’ ex14.cxx: In member function ‘void MyMainFrame::CloseWindow()’: ex14.cxx:92: error: ‘struct ThreadArgs_t’ has no member named ‘fRun’ ex14.cxx:92: error: ‘kFALSE’ was not declared in this scope ex14.cxx:93: error: invalid use of incomplete type ‘struct TThread’ ex14.h:3: error: forward declaration of ‘struct TThread’ ex14.cxx:93: error: incomplete type ‘TThread’ used in nested name specifier ex14.cxx:94: error: ‘gSystem’ was not declared in this scope ex14.cxx:96: error: incomplete type ‘TThread’ used in nested name specifier ex14.cxx:97: warning: possible problem detected in invocation of delete operator: ex14.cxx:97: warning: invalid use of incomplete type ‘struct TThread’ ex14.h:3: warning: forward declaration of ‘struct TThread’ ex14.cxx:97: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined. ex14.cxx:98: warning: possible problem detected in invocation of delete operator: ex14.cxx:98: warning: invalid use of incomplete type ‘struct TH1F’ ex14.h:4: warning: forward declaration of ‘struct TH1F’ ex14.cxx:98: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined. ex14.cxx:99: error: ‘TGMainFrame’ has not been declared ex14.cxx: In member function ‘void MyMainFrame::Terminate()’: ex14.cxx:108: error: ‘gApplication’ was not declared in this scope ex14.cxx: In static member function ‘static void* MyMainFrame::ThreadFunc(void*)’: ex14.cxx:116: error: ‘ULong_t’ was not declared in this scope ex14.cxx:116: error: expected ‘;’ before ‘count’ ex14.cxx:117: error: ‘TRandom’ was not declared in this scope ex14.cxx:117: error: expected ‘;’ before ‘r’ ex14.cxx:120: error: invalid use of incomplete type ‘struct TCanvas’ ex14.h:7: error: forward declaration of ‘struct TCanvas’ ex14.cxx:121: error: invalid use of incomplete type ‘struct TH1F’ ex14.h:4: error: forward declaration of ‘struct TH1F’ ex14.cxx:123: error: invalid use of incomplete type ‘struct TCanvas’ ex14.h:7: error: forward declaration of ‘struct TCanvas’ ex14.cxx:124: error: invalid use of incomplete type ‘struct TCanvas’ ex14.h:7: error: forward declaration of ‘struct TCanvas’ ex14.cxx:126: error: ‘struct ThreadArgs_t’ has no member named ‘fRun’ ex14.cxx:127: error: invalid use of incomplete type ‘struct TThread’ ex14.h:3: error: forward declaration of ‘struct TThread’ ex14.cxx:127: error: incomplete type ‘TThread’ used in nested name specifier ex14.cxx:128: error: ‘struct ThreadArgs_t’ has no member named ‘fRandomType’ ex14.cxx:129: error: invalid use of incomplete type ‘struct TH1F’ ex14.h:4: error: forward declaration of ‘struct TH1F’ ex14.cxx:129: error: ‘r’ was not declared in this scope ex14.cxx:131: error: invalid use of incomplete type ‘struct TH1F’ ex14.h:4: error: forward declaration of ‘struct TH1F’ ex14.cxx:131: error: ‘r’ was not declared in this scope ex14.cxx:132: error: ‘count’ was not declared in this scope ex14.cxx:133: error: incomplete type ‘TThread’ used in nested name specifier ex14.cxx:134: error: invalid use of incomplete type ‘struct TCanvas’ ex14.h:7: error: forward declaration of ‘struct TCanvas’ ex14.cxx:135: error: invalid use of incomplete type ‘struct TCanvas’ ex14.h:7: error: forward declaration of ‘struct TCanvas’ ex14.cxx:136: error: incomplete type ‘TThread’ used in nested name specifier ex14.cxx:140: error: incomplete type ‘TThread’ used in nested name specifier make: *** [ex14.o] Error 1 [admin@localhost ex14]$