Hi, To compile a macro with the native compiler, the macro must be a valid C++ code with the class declarations (includes). Most macros in the tutorials are not instrumnented with the includes, in particular twoscales.C. You simply have to add the list of includes for the classes referenced in the macro, ie; #include "TCanvas.h" #include "TH1.h" #include "TStyle.h" #include "TRandom.h" #include "TGaxis.h" void twoscales() ... We are gradually updating the examples such that they can be run via CINT or via the native compiler. Rene Brun On Mon, 2 Apr 2001, Dave Vining wrote: > Hi, > > Root cannot open TROOT.h. I hava taken ROOT_v30006.exe and installed > all this in directory c:\root. (I hava Windows 98.) Directory > c:\root\include contains TROOT.h . > > All is OK when I tape .x twoscales.C . It works correctly. > However it does not want to translate. What happens you can see from > the following protocol: > > root [0] .x twoscales.C+ > Creating shared library C:\c_test\twoscales_C.dll > Bad command or file name > Error: cannot open file "TROOT.h" FILE: LINE:0 > !!!Removing C:\c_test/s3vvm2mn.C C:\c_test/s3vvm2mn.h !!! > rootcint: failed to open C:\c_test/s3vvm2mn.C in ReplaceBundleInDict() > Bad command or file name > Error in <TWinNTSystem::DynamicPathName>: dll does not exist or wrong file exten > sion (.dll) > Bad command or file name > Error: No symbol twoscales() in current scope FILE: LINE:0 > Possible candidates are... > filename line:size busy function type and name > *** Interpreter error recovered *** > > What is wrong? > > Sincerely, > > Slava Borkowski >
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:41 MET