|
From: Jeremy Z. <zy...@ya...> - 2001-08-30 15:27:41
|
Thanks, Johannes, for your help. jyz
----- Original Message -----=20
From: Johannes Pretorius=20
To: dev...@li...=20
Sent: Thursday, August 30, 2001 12:50 AM
Subject: Re: [Dev-C++] Help Needed
Lo there
------------
There is 2 things wrong with this program. First the projects is not =
correct (there is no project file) make one or Edit=20
the one I attached to point to your paths.
Secondly there is no function writen for the grade function declared =
in the header for grade.cpp
I wrote a dummy like
//=3D=3D=3D=3D=3D=3D SNIP =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
double grade(const Student_info& student){
//Some stuff to get the grade :)..
return -1;
}
//=3D=3D=3D END SNIP =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Well I hope this helps. After that it all compiles and works
PS : The reason the stuff didnt compile first is because the header =
files was not in the Compiler's path to start from=20
Well C ya
Johannes
At 16:37 29/08/2001 -0700, you wrote:
Thank you, Ioannis, for responding to my inquiry. Here are the =
files. For your information I was trying to compile "gradefv.cpp" with =
all other cpp files and header files. Thanks.
=20
jyz=20
----- Original Message -----=20
From: Ioannis Vranos=20
To: dev...@li...=20
Sent: Wednesday, August 29, 2001 3:38 PM=20
Subject: RE: [Dev-C++] Help Needed
Send us the source code.=20
=20
=20
Ioannis=20
=20
* Ioannis Vranos=20
* Programming pages: http://www.noicys.f2s.com=20
* Alternative URL: http://run.to/noicys=20
-----Original Message-----=20
From: dev...@li... =
[mailto:dev...@li...] On Behalf Of Yimin=20
Sent: Wednesday, August 29, 2001 9:20 PM=20
To: Dev...@li...=20
Subject: [Dev-C++] Help Needed
I was trying to compile a small program when the following =
messages popped up in the "Compiler and Linker Output" window:=20
=20
c:\windows\TEMP\cc16bbgb.o(.text+0x110):gradefv.cpp: undefined =
reference to `read(istream &, Student_info &)'
c:\windows\TEMP\cc16bbgb.o(.text+0x194):gradefv.cpp: undefined =
reference to `compare(Student_info const &, Student_info const &)'
c:\windows\TEMP\cc16bbgb.o(.text+0x2b5):gradefv.cpp: undefined =
reference to `grade(Student_info const &)'
The compilation was said to be successful though. But there was =
zero output.
By the way, I am learning C++ on my own by reading Accelerated C++ =
Practical Programming by Example by A. Koenig and B. Moo. This problem =
occurred when I attempted to compile the example program. I checked the =
authors' source code too and attempted to run theirs. Their program had =
the same problem. What could be the problem? Help will be appreciated.
jyz
|