Hi,
For compiling ROOT itself (in cygwin) you should just do
export ROOTBUILD=debug
or
setenv ROOTBUILD debug
depending of your shell (former is bash, later is tcsh).
I tried your modification in $ROOTSYS/test/Makefile and I have had NO
problem.
This more likely to be an environment setup problem and/or a broken
compilation.
Cheers,
Philippe
-----Original Message-----
From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On
Behalf Of GENTIT Francois-Xavier DAPNIA
Sent: Wednesday, July 23, 2003 2:50 AM
To: 'Club ROOT (roottalk@pcroot.cern.ch)'
Subject: [ROOT] Compiling under Cygwin win32 in debug mode
Dear Rooters and specialists of Cygwin with win32,
I work under Windows XP, VC++.NET, Cygwin with win32 (not win32gcc) and ROOT
3.05.05
I have tried to compile and link in debug mode under Cygwin . i.e, I have
replaced in the Makefile
CXXOPT = -O2 by CXXOPT = -Z7
and
LDOPT = -opt:ref by LDOPT = -debug
The result is that the link fails with the message:
LINK : fatal error LNK2023: bad dll or entry point 'msobj10.dll'
make: *** [smuster.exe] Error 231
This happens on all programs, however short they are. This happens for
instance for the programs in $ROOTSYS/test.
The reason why I have tried this is that I wrongly believed that gdb would
work with the VC++ compiler. Axel Naumann told me it does not. So that in my
configuration, the only way to debug my programs remains VC++.NET and a
compilation under Cygwin in debug mode is not useful. I quote this just in
case it matters for somebody.
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