GaijinPunch
MIS
in Chapter 4 (a pretty exhaustive chapter due to length, IMHO) I had a half-decent understanding of what was going on. I wrote my headers/source based on the examples in the book. Of course, I could have made a typo, but figured it would be better than just copying the source.
When I tried to compile, I get:
/tmp/ccdWuqBL.o: In function `main':
/tmp/ccdWuqBL.o(.text+0x9c): undefined reference to `read(std::basic_istream<char, std::char_traints<char> >&, Student_info&)'
/tmp/ccdWuqBL.o(.text+0xfc): undefined reference to `compare(Student_info const&, Student_info const&)'
/tmp/ccdWuqBL.o(.text+0x24e): undefined reference to `grade(Student_info const&)'
I went over the stuff, and everything looked fine to me. so, I downloaded the source from and tried to compile it -- same thing. Should I assume that there's a problem w/ the compiler? The error code looks like it's parsed the functions already, as they don't appear word for word as they do in the source.
If anyone wants to try, I downloaded the Unix Source from the site, and tried to compile (in chapter 4) main3.cc
g++ main3.cc -o main3
Thanks
When I tried to compile, I get:
/tmp/ccdWuqBL.o: In function `main':
/tmp/ccdWuqBL.o(.text+0x9c): undefined reference to `read(std::basic_istream<char, std::char_traints<char> >&, Student_info&)'
/tmp/ccdWuqBL.o(.text+0xfc): undefined reference to `compare(Student_info const&, Student_info const&)'
/tmp/ccdWuqBL.o(.text+0x24e): undefined reference to `grade(Student_info const&)'
I went over the stuff, and everything looked fine to me. so, I downloaded the source from and tried to compile it -- same thing. Should I assume that there's a problem w/ the compiler? The error code looks like it's parsed the functions already, as they don't appear word for word as they do in the source.
If anyone wants to try, I downloaded the Unix Source from the site, and tried to compile (in chapter 4) main3.cc
g++ main3.cc -o main3
Thanks