Hi Francois-Xavier, In addition, it sounds like you are compiling with a -I...\cint\include in your project file. This directory should NOT be used for compilation. It is use only by cint and rootcint to generate proper dictionaries. Cheers, Philippe. -----Original Message----- From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Rene Brun Sent: Friday, July 11, 2003 7:58 AM To: GENTIT Francois-Xavier DAPNIA Cc: 'Club ROOT (roottalk@pcroot.cern.ch)'; 'koblitz@poly.in2p3.fr' Subject: Re: [ROOT] <unistd.h> getopt optarg Hi Francois-Xavier, In the ROOT source files, you can find several examples of replacement of the unistd.h include on Windows. Eg, in TFile.cxx #include <fcntl.h> #include <errno.h> #include <sys/stat.h> #ifndef WIN32 # include <unistd.h> #else # define ssize_t int # include <io.h> # include <sys/types.h> #endif Rene Brun On Fri, 11 Jul 2003, GENTIT Francois-Xavier DAPNIA wrote: > Dear Rooters, > > I am trying now to get the program H4Ana > (http://cmsfrance.in2p3.fr/~koblitz/h4ana/index.html > <http://cmsfrance.in2p3.fr/~koblitz/h4ana/index.html> ), compiled and > linked under Linux, working under Windows XP. I managed to compile all > classes of this program under Visual C++.NET, with the exception of the > class H4Analysis, which contains a system include <unistd.h>. As I > understood, this include is for parsing command line options. > > On Windows, it seems that this system include file does not exist (or has a > different name?). However, there is a unistd.h file in > $ROOTSYS/cint/include. Taking it, it gives me the following error message: > > > > e:\Applications\extlib\ROOT\3.05.05N\root\cint\include\unistd.h(19) : error > C2015: too many characters in constant > > > > Does somebody know what I have to do to be able to compile and link > H4Analysis under Windows XP and have the same functionality as under Linux? > > > > I use ROOT 3.05.05 without gdk on Windows XP and Visual C++.NET 1.0 > > > > Thanks a lot in advance > > > > F.X.Gentit > > DAPNIA/SPP CEA Saclay > > http://gentit.home.cern.ch/gentit/ > > > > ################################################################# ################################################################# ################################################################# ##### ##### ##### ################################################################# ################################################################# #################################################################
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET