Hello all,
I ended up pursuing a development path using VS 10 with root on Windows. Cygwin was just too slow for my taste (and unfortunately, this project cannot be in Linux).
The story to date:
I have successfully built smaller applications with ROOT in windows
I have successfully used rootcint to create a dictionary for a simple class
I have been able to link the aforementioned together to create a button dialog box
Here is where I’m stumped.
The project I’m working on is quite a bit larger, when I try and use rootcint I am hitting a wall due to the stdint.h file.
I’ve tried several points of attack with assistance of forums but Google searching has come up short.
So here is the case:
I have a simple class that has several functions, constructor, deconstructor. The header for this class also points to a few other dependencies. In one of these dependencies I am calling the evil stdint.h. Thus here are several types of outputs.
I have tried several permutations of Linkdef and rootcint calls to no avail as of yet (listed below).
LinkDef example 1:
#pragma link C++ class DAV_Saver;
LinkDef example 2:
#include "DAV_Saver.h"
#ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class DAV_Saver;
#else if _WIN32
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class DAV_Saver;
#endif /* __CINT__ */
Rootcint examples (both run in normal cmd prompt as well as VS 2010 cmd prompt):
C:\root\bin\rootcint -f DAV_Saver.cpp -c -I"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include" DAV_Saver.h DAV_Saver_LinkDef.h
This does not return much information, no verbose output even with a -v flag. The resulting dictionary files are broken/null.
This returns an output stating that stdint.h cannot be opened in the two satellite headers that are using it.
This returns quite a bit of output as listed below:
C:\Users\239886\Desktop\DAV\DAV>wincint.bat
C:\Users\239886\Desktop\DAV\DAV>C:\root\bin\rootcint -v4 -f DAV_SaverCint.cpp -c
-p DAV_Saver.h DAV_Saver_LinkDef.h
2341211_cint.cxx
Warning: This friend declaration may cause creation of wrong stub function in di
ctionary. Use ‘#pragma link off function …;’ to avoid it. C:/root/cint/cint/li
b\prec_stl/string(137)
Warning: This friend declaration may cause creation of wrong stub function in di
ctionary. Use ‘#pragma link off function …;’ to avoid it. C:/root/cint/cint/li
b\prec_stl/string(173)
Error: class,struct,union or type __w64 not defined c:\program files (x86)\micr
osoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(29)
Syntax error c:\program files (x86)\microsoft visual studio 10.0\vc\include\code
analysis\sourceannotations.h(79)
Warning: Unknown type Parameter in function argument c:\program files (x86)\micr
osoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(79)
Syntax error c:\program files (x86)\microsoft visual studio 10.0\vc\include\code
analysis\sourceannotations.h(110)
Warning: Unknown type Parameter|ReturnValue in function argument c:\program file
s (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h
(110)
Syntax error c:\program files (x86)\microsoft visual studio 10.0\vc\include\code
analysis\sourceannotations.h(141)
Warning: Unknown type Parameter in function argument c:\program files (x86)\micr
osoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(141)
Syntax error c:\program files (x86)\microsoft visual studio 10.0\vc\include\code
analysis\sourceannotations.h(153)
Warning: Unknown type ReturnValue in function argument c:\program files (x86)\mi
crosoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(153)
Syntax error c:\program files (x86)\microsoft visual studio 10.0\vc\include\code
analysis\sourceannotations.h(163)
Warning: Unknown type Method in function argument c:\program files (x86)\microso
ft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(163)
Syntax error c:\program files (x86)\microsoft visual studio 10.0\vc\include\code
analysis\sourceannotations.h(174)
Warning: Unknown type Parameter in function argument c:\program files (x86)\micr
osoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(174)
Syntax error c:\program files (x86)\microsoft visual studio 10.0\vc\include\code
analysis\sourceannotations.h(184)
Warning: Unknown type Parameter|ReturnValue in function argument c:\program file
s (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h
(184)
Syntax error c:\program files (x86)\microsoft visual studio 10.0\vc\include\code
analysis\sourceannotations.h(194)
Warning: Unknown type Parameter in function argument c:\program files (x86)\micr
osoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(194)
Syntax error c:\program files (x86)\microsoft visual studio 10.0\vc\include\code
analysis\sourceannotations.h(206)
Warning: Unknown type Parameter|ReturnValue in function argument c:\program file
s (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h
(206)
Error: class,struct,union or type vc_attributes::PreAttribute not defined c:\pr
ogram files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceann
otations.h(256)
Error: class,struct,union or type vc_attributes::PostAttribute not defined c:\p
rogram files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourcean
notations.h(257)
Error: class,struct,union or type vc_attributes::FormatStringAttribute not defin
ed c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis
sourceannotations.h(258)
Error: class,struct,union or type vc_attributes::InvalidCheckAttribute not defin
ed c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis
sourceannotations.h(259)
Error: class,struct,union or type vc_attributes::SuccessAttribute not defined c
:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourc
eannotations.h(260)
Error: class,struct,union or type vc_attributes::PreBoundAttribute not defined
c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sour
ceannotations.h(261)
Error: class,struct,union or type vc_attributes::PostBoundAttribute not defined
c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sou
rceannotations.h(262)
Error: class,struct,union or type vc_attributes::PreRangeAttribute not defined
c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sour
ceannotations.h(263)
Error: class,struct,union or type vc_attributes::PostRangeAttribute not defined
c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sou
rceannotations.h(264)
Error: class,struct,union or type __w64 not defined C:\Program Files (x86)\Micr
osoft Visual Studio 10.0\VC\INCLUDE\vadefs.h(48)
Error: class,struct,union or type __w64 not defined C:\Program Files (x86)\Micr
osoft Visual Studio 10.0\VC\INCLUDE\crtdefs.h(418)
Error: class,struct,union or type __w64 not defined C:\Program Files (x86)\Micr
osoft Visual Studio 10.0\VC\INCLUDE\crtdefs.h(436)
Error: class,struct,union or type __w64 not defined C:\Program Files (x86)\Micr
osoft Visual Studio 10.0\VC\INCLUDE\crtdefs.h(473)
Error: class,struct,union or type __int64 not defined C:\Program Files (x86)\Mi
crosoft Visual Studio 10.0\VC\INCLUDE\crtdefs.h(478)
Warning: Unknown type noreturn in function argument C:\Program Files (x86)\Micro
soft Visual Studio 10.0\VC\INCLUDE\crtdefs.h(546)
Error: Symbol _locale_tstruct, is not defined in current scope C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\crtdefs.h(1963)
Error: Symbol _locale_t is not defined in current scope C:\Program Files (x86)
Microsoft Visual Studio 10.0\VC\INCLUDE\crtdefs.h(1963)
Error: class,struct,union or type __int64 not defined C:\Program Files (x86)\Mi
crosoft Visual Studio 10.0\VC\INCLUDE\yvals.h(553)
Error: class,struct,union or type _ULonglong not defined C:\Program Files (x86)
\Microsoft Visual Studio 10.0\VC\INCLUDE\stdint.h(60)
Error: class,struct,union or type _ULonglong not defined C:\Program Files (x86)
\Microsoft Visual Studio 10.0\VC\INCLUDE\stdint.h(63)
Error: class,struct,union or type _ULonglong not defined C:\Program Files (x86)
\Microsoft Visual Studio 10.0\VC\INCLUDE\stdint.h(66)
Error: class,struct,union or type _ULonglong not defined C:\Program Files (x86)
\Microsoft Visual Studio 10.0\VC\INCLUDE\stdint.h(69)
Warning: Error occurred during reading source files
Warning: Error occurred during dictionary source generation
!!!Removing DAV_SaverCint.cpp DAV_SaverCint.h !!!
Error: C:\root\bin\rootcint: error loading headers…
C:\Users\239886\Desktop\DAV\DAV>
Thanks in advance for any advice. Let me know what other info to provide as well.
Cheers,
John