473,738 Members | 7,110 Online
Bytes | Software Development & Data Engineering Community
+ 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

"compilatio n 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
"compilatio n problem new compiler"
[Hafeez@localhos t] 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_PATCHLE VEL__=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_warnin g.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_PATCHLE VEL__=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_warnin g.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_PATCHLE VEL__=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_warnin g.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 3187
"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
2280
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 C++" course, it's seeming to be an insurmountable problem. Can anyone assist? I'm at wit's end here. Everything *LOOKS* (to this rookie, anyway) correct, but the compiler is barfing on it. Here's the class declaration for Bar class Bar {
10
2277
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 compiler errors which I just can't understand what they mean. I searched the webs for any clues on how to solve the problems. But I've never been able to find one. Now I am wondering if there is any website which tells people how to understand...
10
2565
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 forgets to implement some method I normally get a compile error(if the class is created in some way of course). When using the Visual Studio 6 compiler however, it does not generate a compile error in this case: - I have a implementing class A...
4
4400
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! Frankly, I can't see anything wrong with the code, but the compiler just refuse it as I wish. Thanks in advance vib
38
2538
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 my scanf ("%c",&q); On input 3 4 1 (for a,b and c) I had real roots OK On input 1 8 16 I had same real roots OK. However on 4 2 5, (for imaginary roots ) the computer cannot see the scanf ("%c",&q); statement. It just jumps...
6
1761
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 have a range of .cs classes doing that role for me. Does that matter? I have four errors that I just dont understand, I really need some help on this or pointers to where I can find the
3
1341
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 field screendescription has the form code I am trying to create at runtime the code that is in the field screendecription is Imports System.Windows.Forms Public Class clsLoginScreen Inherits System.Windows.Forms.Form
33
2862
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 (tried: visual studio 2005 + linux/macintosh gcc)... That's a pretty good thing. I think the error still appears using both gcc and visual studio 2005. Everything is standard C (ANSI C ?? I don't know the difference) - but since so many functions...
14
1878
by: 2005 | last post by:
Would it suppress errors? Is he trying to hide errors in his code?
0
8788
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9335
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9263
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9208
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8210
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6751
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4570
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.