RE: [ROOT] cint failure with zlib, malloc, in, socket header files

From: Philippe Canal (pcanal@fnal.gov)
Date: Fri Jul 18 2003 - 22:12:43 MEST


Hi Curtis,

Upgrade to 3.05/06 and run with :

   rootcint -f testDict.C -c -p test.h test_LinkDef.h

Cheers,
Philippe

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Curtis Lansdell
Sent: Friday, July 18, 2003 2:30 PM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] cint failure with zlib, malloc, in, socket header files


Hello.  I created a test class and found that I could not successfully run
rootcint to create the dictionary when I included any of the following:

malloc.h, netinet/in.h, sys/socket.h, zlib.h

I'm running in RH7.3 with g++ version 2.96 and rootcint 5.15.86 (ROOT
3.05/05).  I'm pretty sure it's just user error on my part, so I'm hoping
there's a simple solution.  Here are the source files:

test.h:

#ifndef ROOT_test
#define ROOT_test

#include "TROOT.h"
//#include <malloc.h>
//#include <netinet/in.h>
//#include <sys/socket.h>
//#include <zlib.h>

class test:TObject {

 public:
  test();
  ~test();

  ClassDef(test,1)
};
#endif


test.cxx:

#include "test.h"
#include <iostream.h>

ClassImp(test)

test::test() {

  cout << "hi" << endl;

}

test::~test() {

  cout << "bye" << endl;

}


test_LinkDef.h:

#ifdef __CINT__

#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;

#pragma link C++ class test+;

#endif


I ran with rootcint -f testDict.C -c test.h test_LinkDef.h and got errors,
which I wrote to a file and attached to this email.

Thanks in advance!

Curtis



#################################################################
#################################################################
#################################################################
#####
#####
#####
#################################################################
#################################################################
#################################################################



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET