![]() |
|
#1
|
|||
|
|||
Problems compiling an example (part 2)I posted previously on this topic - the reason I am starting a new thread is because I decided to strip down the code and figure out a piece at a time. This example is from the source code posted on the authors web site. I edited out all but the most basic parts relevant to calling the first member function. I also put the implementation files for the template class into its header file. I am getting these errors and warnings:
Quote:
CPP / C++ / C Code:
CPP / C++ / C Code:
CPP / C++ / C Code:
CPP / C++ / C Code:
TIA |
|
#2
|
||||
|
||||
Re: Problems compiling an example (part 2)Did you know you can stop the smilies by checking the "Disable smilies in text" box in the Additional Options section below the text input box you enter your post in?
Do you know about the Preview button before you submit your post so you can see what it looks like? __________________
Age is unimportant -- except in cheese |
|
#3
|
|||
|
|||
Re: Problems compiling an example (part 2)Quote:
Quote:
|
|
#4
|
|||
|
|||
Re: Problems compiling an example (part 2)Smilies gone. Now can I get some help? Please?
|
|
#5
|
||||
|
||||
Re: Problems compiling an example (part 2)As soon as someone that understands your problem arrives, yes. This is not my area of expertise...
__________________
Age is unimportant -- except in cheese |
|
#6
|
|||
|
|||
Re: Problems compiling an example (part 2)Quote:
Quote:
Been there --- done that! I mean, after all, once the program is running then you can do lots of things to figure out what's wrong. But you can't do anything (much) with nothing. First of all try to filter the actual error indications from all of that mess of messages: Code:
And what are those lines: CPP / C++ / C Code:
Line 33: the second argument of this getline() function call should be a std::string. What is it? Line 35: ins >> extracts something from the stream and stores it where? Regards, Dave |
|
#7
|
|||
|
|||
Re: Problems compiling an example (part 2)Thanks for the reply, Dave.
Quote:
CPP / C++ / C Code:
Quote:
Like I said earlier, this code came directly from the author's web site, so I don't feel so entirely stupid. I just don't get how the publisher can allow this kind of error to persist through the 4th edition. Plus this is the very first example of friend functions in the book... so very discouraging. OK, now I guess I have enough fortitude to dig a little more. I'll be Bach.... Thanks, Dave! |
|
#8
|
||||
|
||||
Re: Problems compiling an example (part 2)Sounds like an email to the author is in order. I'm glad you now have a Handel on the program...
__________________
Age is unimportant -- except in cheese |
|
#9
|
|||
|
|||
Re: Problems compiling an example (part 2)Quote:
This is a great step forward: Realizing that you have to dig, dig, dig. Don't trust anyone (even me --- especially me!) to give you the exact, precise information that you need every time. I try, as I am sure that the author and editor of your book tried, but, sometimes stuff happens! It is a little discouraging at first when what is supposed to be a simple example doesn't work, but look at it as a learning experience! (That's what we are here for, right?) Keep me on your Liszt for further updates! Regards, Dave "Don't ever become a pessimist... a pessimist is correct oftener than an optimist, but an optimist has more fun, and neither can stop the march of events. " --- Robert A. Heinlein |
|
#10
|
|||
|
|||
Re: Problems compiling an example (part 2)Quote:
Keep me on your Liszt for further updates! |
Recent GIDBlog
Developing GUIs with wxPython (Part 4) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problems compiling an example | earachefl | C++ Forum | 5 | 19-May-2006 04:56 |
| [Tutorial] Pointers in C (Part II) | Stack Overflow | C Programming Language | 0 | 27-Apr-2005 17:36 |
| Chaintech Geforce 5600 FX problems | bartster74 | Computer Hardware Forum | 8 | 04-May-2004 13:16 |
| ModernBill Order Process Text Box Alignment Problems | BobbyDouglas | MySQL / PHP Forum | 7 | 30-Jan-2004 21:20 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The