RE: rootcint error

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Mon, 25 Sep 2006 13:04:19 -0500


This is probably a weakness in CINT macro preprocessor. Use the compiler's own pre-processor by adding the -p option:

rootcint -f src/CorsikaIODict.cxx -c -p include/ACorsikaIACTFile.h include/LinkDef.h

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of OKUMURA, Akira
Sent: Monday, September 25, 2006 9:49 AM To: RootTalk
Subject: [ROOT] rootcint error

Hello ROOTers,

rootcint seems not to be able to handle comments correctly.

The following is output of my makefile.



rootcint -f src/CorsikaIODict.cxx -c include/ACorsikaIACTFile.h include/LinkDef.h
Error: Illegal pointer operation (tovalue) include/bernlohr/initial.h: 100:
Error: operator '/' divided by zero include/bernlohr/initial.h:100: Syntax Error: (defined(lynx)||defined(__lynx__))/*Lynx-OS*/ include/ bernlohr/initial.h:100:

If I delete the comment at the end of the line 99, rootcint runs without this error.

line 98: # define MISSING_SNPRINTF 1
line 99: #elif ( defined(lynx) || defined(__lynx__) ) /* Lynx-OS */ line 100: # define OS_UNIX 1

Is this a bug or any my mistake ?

ROOT 5.08.00b with Fedora Core 3/GCC 3.4.3.

Sincerely,

OKUMURA, Akira oxon_at_icrr.u-tokyo.ac.jp
Institute for Cosmic Ray Research, University of Tokyo 5-1-5 Kashiwanoha Kashiwa Chiba 277-8582 Japan Phone/Fax : +81 4-7136-3153
Skype : okumura.akira Received on Mon Sep 25 2006 - 20:04:28 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:01 MET