[ROOT] <unistd.h> getopt optarg

From: GENTIT Francois-Xavier DAPNIA (GENTIT@dapnia.cea.fr)
Date: Fri Jul 11 2003 - 13:51:53 MEST


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