RE: Using windows system functions with ACLIC

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Wed, 14 Dec 2005 17:58:20 -0600


Hi,

CINT is not yet able to handle the full complexity of the Windows header files. In your script you should hide, the inclusion of those header from CINT. So do:

#ifndef __CINT__
#include <wtypes.h>
#endif

You may also have to hide the code using elements from this header files.

Also we do not yet build the dictionary for those header and thus they are only useable via ACLiC (and not on the command line).

> #error win32api.dll

We do not yet build it by default. You would need to go to $ROOTSYS/cint/lib/win32api
to attempt to create it (but you do not need it in your case).

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Markus Mathes
Sent: Wednesday, December 14, 2005 11:54 AM To: roottalk_at_pcroot.cern.ch
Subject: [ROOT] Using windows system functions with ACLIC

Hello,

I'd like to use some windows functions in a library created with ACLIC. But as
soon as I include one of the windows header files (<wtypes.h>) the creation aborts with the following error

Info in <TWinNTSystem::ACLiC>: creating shared library D: \SilabSoft\SiTBeAn2\Daq
Lib\test_C.dll
2208831_cint.cxx
Error: class,struct,union or type __int64 not defined FILE:c: \programme\microso
ft visual studio .net 2003\vc7\platformsdk\include\basetsd.h LINE:33 Error: class,struct,union or type __w64 not defined FILE:c: \programme\microsoft
 visual studio .net 2003\vc7\platformsdk\include\basetsd.h LINE:89  

if tryping #include <wtypes.h> directly on the ROOT command line the file isn't found at all. Typing #include <windows.h>  I get the following:

#error win32api.dll is not ready. Run 'setup.bat' in %CINTSYSDIR%\lib\win32api
directory if you use WinNT/95.
*** Interpreter error recovered ***

Trying to run the setub.bat didn't wor either. So I think I'm something missing in my configuration.

Making a library using only root header files works fine. I'm using root 5.06
for win32 from the download section.

Thanks
Markus

-- 
Markus Mathes 
Physikalisches Institut        
Universitaet Bonn                Tel   : +49 228 73-2352 
Nussalle 12                      Fax   : +49 228 73-3220 
D - 53115 Bonn                   email : mathes_at_physik.uni-bonn.de
Received on Thu Dec 15 2005 - 00:59:11 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:14 MET