hi again,
this is part II of root.cern.ch/phpBB2/viewtopic.php?t=3810
i made a new thread as my forum membership is now activated…
the suggestion previously was to use gcc 3.4.4-2… so here’s what i did.
- completely scorched my cygwin install, and started over, now selecting gcc 3.4.4-2 as Axel suggested.
- built root:
cd $ROOTSYS
./configure win32gcc
make
make install
this worked perfectly, and i could start root, open a TBrowser etc…
3. tried again to build my trivial little test program (tarball attached to this post)
make distclean
make
the output was
g++ -O -pipe -Wall -Woverloaded-virtual -I/usr/X11R6/include -D_REENTRANT -I/cygdrive/c/root/include -g -c test.cpp
Generating dictionary [ testDict.cpp ] from [ test.h testLinkDef.h ]
g++ -O -pipe -Wall -Woverloaded-virtual -I/usr/X11R6/include -D_REENTRANT -I/cygdrive/c/root/include -g -c testDict.cpp
In file included from testDict.cpp:16:
testDict.h:1:1: warning: null character(s) ignored
In file included from testDict.cpp:16:
testDict.h:10: error: `G__linked_taginfo' does not name a type
testDict.h:11: error: `G__linked_taginfo' does not name a type
testDict.h:12: error: `G__linked_taginfo' does not name a type
testDict.h:13: error: `G__linked_taginfo' does not name a type
testDict.h:14: error: `G__linked_taginfo' does not name a type
testDict.h:15: error: `G__linked_taginfo' does not name a type
testDict.h:16: error: `G__linked_taginfo' does not name a type
testDict.h:17: error: `G__linked_taginfo' does not name a type
testDict.h:18: error: `G__linked_taginfo' does not name a type
testDict.h:19: error: `G__linked_taginfo' does not name a type
testDict.h:20: error: `G__linked_taginfo' does not name a type
testDict.h:21: error: `G__linked_taginfo' does not name a type
testDict.h:22: error: `G__linked_taginfo' does not name a type
testDict.h:23: error: `G__linked_taginfo' does not name a type
testDict.h:24: error: `G__linked_taginfo' does not name a type
In file included from testDict.cpp:28:
/cygdrive/c/root/include/RtypesImp.h:16:2: #error RtypesImp.h should only be included by ROOT dictionaries.
testDict.cpp:146: error: expected constructor, destructor, or type conversion before ';' token
testDict.cpp:147: error: expected declaration before '}' token
make: *** [testDict.o] Error 1
this not precisely the same errors i got under gcc 3.3.3, but still errors are being thrown at the dictionary compile step that i don’t understand…
this app is so trivial (just a mainframe and a quit button)… it compiles and runs perfectly under OSX Tiger. i also tried it under RH linux and of course there’s no problems there either, just under cygwin…
attachments are the tarball, and also the text file that cygwin’s setup.exe writes… i’m quite positive i selected 3.4.4-2 from that application…
any comments would be very much appreciated… cheers,
bill
cygwinsetup.txt (572 KB)
test.tar.gz (18.1 KB)