Help with compiler errors for an old code

H

Hafeez

I am having real trouble compiling this code
http://www.cs.wisc.edu/~vganti/birchcode/codeHier/AttrProj.tgz
The attachment shows errors when compiled using the current version of
g++ in a i386-pc-solaris2.9.
Seeing reference to gcc-2.7.2 in the Makefile of the code, I
downloaded it and compiled in my home directory. Then changed the
referenes of LIBDIR and INCLUDES to
this installation .and ran with g++ for 2.7.2 then there are still
errors (attached as well). Apparently, the installation of 2.7.2 does
not create includes like iostream.h anywhere. I have installed
--prefix=$HOME --with-local-prefix=$HOME

Can you help me solve this problem?

Regards,

Hafeez

"compilation problem old compiler"
cd AttrProj; make all
make[1]: Entering directory `/home/Hafeez/temp/birch/AttrProj'
/home/Hafeez/bin/g++ -DSOLARIS -fexternal-templates -Wall -Wno-unused
-O -gstab -DLOGGING -DUNIX -DGRAPHICS -DATTRPROJ
-I/home/Hafeez/gcc-2.7.2/include -c ApInit.c
In file included from ApInit.c:50:
Util.h:73: iostream.h: No such file or directory
make[1]: *** [ApInit.o] Error 1
make[1]: Leaving directory `/home/Hafeez/temp/birch/AttrProj'
make: *** [birch] Error 2


"compilation problem new compiler"
[Hafeez@localhost] Birch [1:88] make
g++ -O -g -DASCII -DLOGGING -ULABEL -DSUMMARY -Wall --verbose -c
vector.C -o vector.o -I../AttrProj
Reading specs from /usr/local/bin/../lib/gcc-lib/i386-pc-solaris2.9/3.3.2/specs
Configured with: ../gcc-3.3.2/configure
--prefix=/usr/local/apps/gcc-3.3.2
--enable-version-specific-runtime-libs
--enable-languages=c,c++,f77,objc
Thread model: posix
gcc version 3.3.2
/usr/local/bin/../lib/gcc-lib/i386-pc-solaris2.9/3.3.2/cc1plus -quiet
-v -I../AttrProj -iprefix
/usr/local/bin/../lib/gcc-lib/i386-pc-solaris2.9/3.3.2/ -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=2 -DASCII -DLOGGING -ULABEL
-DSUMMARY vector.C -D__GNUG__=3 -quiet -dumpbase vector.C
-auxbase-strip vector.o -g -O -Wall -version -o /var/tmp//ccUDbwDh.s
GNU C++ version 3.3.2 (i386-pc-solaris2.9)
compiled by GNU C version 3.3.2.
GGC heuristics: --param ggc-min-expand=50 --param
ggc-min-heapsize=37500
ignoring nonexistent directory
"/usr/local/lib/gcc-lib/../../i386-pc-solaris2.9/include"
ignoring nonexistent directory
"/usr/local/apps/gcc-3.3.2/i386-pc-solaris2.9/include"
ignoring duplicate directory
"/usr/local/apps/gcc-3.3.2/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++"
ignoring duplicate directory
"/usr/local/apps/gcc-3.3.2/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++/i386-pc-solaris2.9"
ignoring duplicate directory
"/usr/local/apps/gcc-3.3.2/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++/backward"
ignoring duplicate directory
"/usr/local/apps/gcc-3.3.2/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include"
#include "..." search starts here:
#include <...> search starts here:
../AttrProj
/usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++
/usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++/i386-pc-solaris2.9
/usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++/backward
/usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include
/usr/local/include
/usr/local/apps/gcc-3.3.2/include
/usr/include
End of search list.
In file included from
/usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++/backward/iostream.h:31,
from global.h:29,
from vector.C:18:
/usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or
antiquated header. Please consider using one of the 32 headers found
in section 17.4.1.2 of the C++ standard. Examples include substituting
the <X> header for the <X.h> header for C++ includes, or <sstream>
instead of the deprecated header <strstream.h>. To disable this
warning use -Wno-deprecated.
In file included from vector.C:18:
global.h:34:9: warning: extra tokens at end of #endif directive
global.h:43:9: warning: extra tokens at end of #endif directive
global.h:47:9: warning: extra tokens at end of #endif directive
global.h:51:9: warning: extra tokens at end of #endif directive
global.h:66:9: warning: extra tokens at end of #endif directive
global.h:67:9: warning: extra tokens at end of #endif directive
global.h:142:8: warning: extra tokens at end of #endif directive
In file included from vector.C:19:
util.h:35:8: warning: extra tokens at end of #endif directive
In file included from vector.C:20:
vector.h:115:8: warning: extra tokens at end of #endif directive
/usr/ccs/bin/as -V -Qy -s -o vector.o /var/tmp//ccUDbwDh.s
as: Forte Developer 7 Compiler Common 7.0 IA32-iteam 2001/12/12
g++ -O -g -DASCII -DLOGGING -ULABEL -DSUMMARY -Wall --verbose -c
rectangle.C -o rectangle.o -I../AttrProj
Reading specs from /usr/local/bin/../lib/gcc-lib/i386-pc-solaris2.9/3.3.2/specs
Configured with: ../gcc-3.3.2/configure
--prefix=/usr/local/apps/gcc-3.3.2
--enable-version-specific-runtime-libs
--enable-languages=c,c++,f77,objc
Thread model: posix
gcc version 3.3.2
/usr/local/bin/../lib/gcc-lib/i386-pc-solaris2.9/3.3.2/cc1plus -quiet
-v -I../AttrProj -iprefix
/usr/local/bin/../lib/gcc-lib/i386-pc-solaris2.9/3.3.2/ -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=2 -DASCII -DLOGGING -ULABEL
-DSUMMARY rectangle.C -D__GNUG__=3 -quiet -dumpbase rectangle.C
-auxbase-strip rectangle.o -g -O -Wall -version -o
/var/tmp//ccIii9vb.s
GNU C++ version 3.3.2 (i386-pc-solaris2.9)
compiled by GNU C version 3.3.2.
GGC heuristics: --param ggc-min-expand=50 --param
ggc-min-heapsize=37500
ignoring nonexistent directory
"/usr/local/lib/gcc-lib/../../i386-pc-solaris2.9/include"
ignoring nonexistent directory
"/usr/local/apps/gcc-3.3.2/i386-pc-solaris2.9/include"
ignoring duplicate directory
"/usr/local/apps/gcc-3.3.2/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++"
ignoring duplicate directory
"/usr/local/apps/gcc-3.3.2/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++/i386-pc-solaris2.9"
ignoring duplicate directory
"/usr/local/apps/gcc-3.3.2/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++/backward"
ignoring duplicate directory
"/usr/local/apps/gcc-3.3.2/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include"
#include "..." search starts here:
#include <...> search starts here:
../AttrProj
/usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++
/usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++/i386-pc-solaris2.9
/usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++/backward
/usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include
/usr/local/include
/usr/local/apps/gcc-3.3.2/include
/usr/include
End of search list.
In file included from
/usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++/backward/iostream.h:31,
from global.h:29,
from rectangle.C:18:
/usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or
antiquated header. Please consider using one of the 32 headers found
in section 17.4.1.2 of the C++ standard. Examples include substituting
the <X> header for the <X.h> header for C++ includes, or <sstream>
instead of the deprecated header <strstream.h>. To disable this
warning use -Wno-deprecated.
In file included from rectangle.C:18:
global.h:34:9: warning: extra tokens at end of #endif directive
global.h:43:9: warning: extra tokens at end of #endif directive
global.h:47:9: warning: extra tokens at end of #endif directive
global.h:51:9: warning: extra tokens at end of #endif directive
global.h:66:9: warning: extra tokens at end of #endif directive
global.h:67:9: warning: extra tokens at end of #endif directive
global.h:142:8: warning: extra tokens at end of #endif directive
In file included from rectangle.C:19:
util.h:35:8: warning: extra tokens at end of #endif directive
In file included from rectangle.C:20:
vector.h:115:8: warning: extra tokens at end of #endif directive
In file included from rectangle.C:21:
rectangle.h:101:8: warning: extra tokens at end of #endif directive
/usr/ccs/bin/as -V -Qy -s -o rectangle.o /var/tmp//ccIii9vb.s
as: Forte Developer 7 Compiler Common 7.0 IA32-iteam 2001/12/12
g++ -O -g -DASCII -DLOGGING -ULABEL -DSUMMARY -Wall --verbose -c
cfentry.C -o cfentry.o -I../AttrProj
Reading specs from /usr/local/bin/../lib/gcc-lib/i386-pc-solaris2.9/3.3.2/specs
Configured with: ../gcc-3.3.2/configure
--prefix=/usr/local/apps/gcc-3.3.2
--enable-version-specific-runtime-libs
--enable-languages=c,c++,f77,objc
Thread model: posix
gcc version 3.3.2
/usr/local/bin/../lib/gcc-lib/i386-pc-solaris2.9/3.3.2/cc1plus -quiet
-v -I../AttrProj -iprefix
/usr/local/bin/../lib/gcc-lib/i386-pc-solaris2.9/3.3.2/ -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=2 -DASCII -DLOGGING -ULABEL
-DSUMMARY cfentry.C -D__GNUG__=3 -quiet -dumpbase cfentry.C
-auxbase-strip cfentry.o -g -O -Wall -version -o /var/tmp//cceyINld.s
GNU C++ version 3.3.2 (i386-pc-solaris2.9)
compiled by GNU C version 3.3.2.
GGC heuristics: --param ggc-min-expand=50 --param
ggc-min-heapsize=37500
ignoring nonexistent directory
"/usr/local/lib/gcc-lib/../../i386-pc-solaris2.9/include"
ignoring nonexistent directory
"/usr/local/apps/gcc-3.3.2/i386-pc-solaris2.9/include"
ignoring duplicate directory
"/usr/local/apps/gcc-3.3.2/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++"
ignoring duplicate directory
"/usr/local/apps/gcc-3.3.2/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++/i386-pc-solaris2.9"
ignoring duplicate directory
"/usr/local/apps/gcc-3.3.2/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++/backward"
ignoring duplicate directory
"/usr/local/apps/gcc-3.3.2/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include"
#include "..." search starts here:
#include <...> search starts here:
../AttrProj
/usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++
/usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++/i386-pc-solaris2.9
/usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++/backward
/usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include
/usr/local/include
/usr/local/apps/gcc-3.3.2/include
/usr/include
End of search list.
In file included from
/usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++/backward/iostream.h:31,
from global.h:29,
from cfentry.C:18:
/usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/include/c++/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or
antiquated header. Please consider using one of the 32 headers found
in section 17.4.1.2 of the C++ standard. Examples include substituting
the <X> header for the <X.h> header for C++ includes, or <sstream>
instead of the deprecated header <strstream.h>. To disable this
warning use -Wno-deprecated.
In file included from cfentry.C:18:
global.h:34:9: warning: extra tokens at end of #endif directive
global.h:43:9: warning: extra tokens at end of #endif directive
global.h:47:9: warning: extra tokens at end of #endif directive
global.h:51:9: warning: extra tokens at end of #endif directive
global.h:66:9: warning: extra tokens at end of #endif directive
global.h:67:9: warning: extra tokens at end of #endif directive
global.h:142:8: warning: extra tokens at end of #endif directive
In file included from cfentry.C:19:
util.h:35:8: warning: extra tokens at end of #endif directive
In file included from cfentry.C:20:
vector.h:115:8: warning: extra tokens at end of #endif directive
In file included from cfentry.C:21:
rectangle.h:101:8: warning: extra tokens at end of #endif directive
In file included from cfentry.C:22:
cfentry.h:126:8: warning: extra tokens at end of #endif directive
cfentry.C:32:8: warning: extra tokens at end of #endif directive
cfentry.C:41:8: warning: extra tokens at end of #endif directive
cfentry.C:55:8: warning: extra tokens at end of #endif directive
cfentry.C:68:8: warning: extra tokens at end of #endif directive
cfentry.C:79:8: warning: extra tokens at end of #endif directive
cfentry.C:89:8: warning: extra tokens at end of #endif directive
cfentry.C:104:8: warning: extra tokens at end of #endif directive
cfentry.C: In function `double Unif_Kernel_Rf_Effect(const Entry&,
const
Entry&, double)':
cfentry.C:255: warning: control reaches end of non-void function
cfentry.C: In member function `double Entry::Fitness(short int)
const':
cfentry.C:291: warning: control reaches end of non-void function
cfentry.C:300:8: warning: extra tokens at end of #endif directive
cfentry.C:310:8: warning: extra tokens at end of #endif directive
cfentry.C:386:8: warning: extra tokens at end of #endif directive
cfentry.C:395:8: warning: extra tokens at end of #endif directive
cfentry.C:404:8: warning: extra tokens at end of #endif directive
cfentry.C: In function `short int connected(const Entry&, const
Entry&, short
int, double, double)':
cfentry.C:440: warning: control reaches end of non-void function
cfentry.C:481:8: warning: extra tokens at end of #endif directive
cfentry.C:522:8: warning: extra tokens at end of #endif directive
cfentry.C:533:8: warning: extra tokens at end of #endif directive
cfentry.C:544:8: warning: extra tokens at end of #endif directive
cfentry.C:555:8: warning: extra tokens at end of #endif directive
cfentry.C:566:8: warning: extra tokens at end of #endif directive
cfentry.C:582:8: warning: extra tokens at end of #endif directive
cfentry.C:598:8: warning: extra tokens at end of #endif directive
/usr/ccs/bin/as -V -Qy -s -o cfentry.o /var/tmp//cceyINld.s
as: Forte Developer 7 Compiler Common 7.0 IA32-iteam 2001/12/12
make: *** No rule to make target
`/local.blondie.1/BIRCH/AttrProj/AttrProj.h', needed by
`components.o'. Stop.
 
V

Victor Bazarov

Hafeez said:
I am having real trouble compiling this code
http://www.cs.wisc.edu/~vganti/birchcode/codeHier/AttrProj.tgz
The attachment shows errors when compiled using the current version of
g++ in a i386-pc-solaris2.9.
Seeing reference to gcc-2.7.2 in the Makefile of the code, I
downloaded it and compiled in my home directory. Then changed the
referenes of LIBDIR and INCLUDES to
this installation .and ran with g++ for 2.7.2 then there are still
errors (attached as well). Apparently, the installation of 2.7.2 does
not create includes like iostream.h anywhere. I have installed
--prefix=$HOME --with-local-prefix=$HOME

Can you help me solve this problem?
[...]

No, we can't. Please ask in a newsgroup for your compiler, gnu.g++.help.
Compiler command-line options, makefiles, directories, installations,
are all off-topic here. We don't deal with products, we deal with the
language as defined by its Standard, which incidentally says nothing
about compilation commands.

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top