473,466 Members | 1,413 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Help with compiler errors for an old code

I am having real trouble compiling this code
http://www.cs.wisc.edu/~vganti/birch...r/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.
Jul 22 '05 #1
1 3146
"Hafeez" <nu**@wongfaye.com> wrote...
I am having real trouble compiling this code
http://www.cs.wisc.edu/~vganti/birch...r/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
Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Don Bruder | last post by:
Got a stumper here. I imagine that for someone experienced in C++, this is too pathetic for words. For a rookie, using this project as a sort of "midterm exam" in his self-taught "how to program in...
10
by: forgotten field | last post by:
Hi,how are you? I have been studying C++ by myself, but recently I am having a real problem. I am learning about the basic usage of a doubly linked list using polymorphism. However, I have got the...
10
by: Bjorn | last post by:
I'm using interfaces in C++ by declaring classes with only pure virtual methods. If then someone wants to implement the interface they needs to inherit from the class. If the implementing class...
4
by: vib | last post by:
Hi there, I am stuck with the following code. It is an array of pointers, in ADS1.2 compiler I encounter the errors, but not on other compiler. Can someone please shade some light, please!...
38
by: Red Dragon | last post by:
I am self study C student. I got stuck in the program below on quadratic equation and will be most grateful if someone could help me to unravel the mystery. Why does the computer refuse to execute...
6
by: Jax | last post by:
I have Visual Studio 2002 Standard Edition. It has been working fine up to a point and now i'm at that point. Due to the limitations of the edition i am not using any of my own .dll's and instead...
3
by: Chris Calzaretta | last post by:
I need to create a form from this web service http://24.163.239.122/wsprojecttrackerobjects/wsprojecttrackerobjects.asmx if you call getloginscreen there is a field called screendescription that...
33
by: Martin Jørgensen | last post by:
Hi, In continuation of the thread I made "perhaps a stack problem? Long calculations - strange error?", I think I now got a "stable" error, meaning that the error always seem to come here now...
14
by: 2005 | last post by:
Would it suppress errors? Is he trying to hide errors in his code?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.