Hi, with the file extension .c it does not work for me. Try the following: --------------- cut here: file hello.cc -------------------- #include <stdio.h> void hello() { printf( "Hello World!\n" ); } --------------- cut here: file hello.cc -------------------- then: ******************************************* * * * W E L C O M E to R O O T * * * * Version 3.01/05 7 June 2001 * * * * You are welcome to visit our Web site * * http://root.cern.ch * * * ******************************************* Compiled with thread support. CINT/ROOT C/C++ Interpreter version 5.15.02, June 2 2001 Type ? for help. Commands must be C++ statements. Enclose multiple statements between { }. root [0] .L hello.c+ Creating shared library /home/radoone/tmp/news/animazioni/./hello_c.so rootcint: option -c must come directly after the output file root [1] .L hello.cc+ Creating shared library /home/radoone/tmp/news/animazioni/./hello_cc.so root [2] hello(); Hello World! root [3] Radovan Gerco Onderwater wrote: > > Hi All, > > I have a question regarding ACLiC, which I just found out about and which > seems to be extremely handy. But I cannot get it to work. Here is the > script I'm trying to use: > > hello() > { > printf("Hello\n"); > } > > and this is the result: > > root [0] .L hello.c+ > Creating shared library /home/onderwat/g-2/G2Too/macro/./hello_c.so > rootcint: option -c must come directly after the output file > > and then hello() of course doesn't exist. In the users_guide I read that > "ACLiC will (...) use the compiler and the compiler options that were used > to compile ROOT". So my guess is that these options don't work for me for > some reason. In any case, I don't have control over those options because > I don't compile ROOT myself. > > What should I do to make things work? Presumably the answer is trivial, > but I don't seem to be able to get it. > > I tried ROOT 2.25/03 and 3.01/05 on Linux. Both have the same result. > > Something else: the page numbering of the Users guide v3.1b is limited to > page numbers 150 for even pages and 99 for odd pages (at least even and > odd are correct :). That is rather unhandy when you try to use the index. > > Thanks for helping me out! > > -- Gerco > > Dr. C.J.G. Onderwater > Nuclear Physics Laboratory > 401B Loomis Laboratory of Physics > University of Illinois at Urbana-Champaign > 1110 West Green Street > Urbana, IL 61801-3080 > Phone : (217) 244-7363 > Fax : (217) 333-1215 > E-mail: onderwat@uiuc.edu
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:50 MET