g++ BUG?
Mark Wall
wall@chop.swmed.edu
Thu Aug 23 14:40:00 GMT 2001
Thanks! Now I need ONLY ONE more piece of advice. I successfully compile
code with g++ originating from 1) old gcc originally on dec-alpha and
2) newly installed gcc-3.0.1 ... and get drastically different results.
Method 1 yields working code with usable results; method 2 yields working
code with unusable results. I have included 4 files to help you quickly
see the problem:
read_pdb.c - source
Test.pdb - data
LOG_gcc-2.x - result with old g++ (A)
LOG_gcc-3.x - result with new g++ (B)
The goal is to read and print ATOM records in a PDB file (formatted ascii
file of atomic coordinates).
Simply, %g++ read_pdb.c
%a.out Test.pdb
That's it. So, LOG_gcc-2.x shows success and is almost a mirror of the
Test.pdb. As you will see, LOG_gcc-3.x does not. I am convinced that
this is just ONE fundamental problem I do not understand (e.g. building
gcc-3.0.1 wrong, or incorrectly assuming g++ defaults that have changed,
or ...?).
Can you help?
Mark Wall
HHMI/UT Southwestern Med. Ctr.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LOG_gcc-3.x
Type: application/octet-stream
Size: 2091 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20010823/676a75c8/attachment.obj>
More information about the Libstdc++
mailing list