Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > BOOK: Ivor Horton's Beginning Visual C++ 2012
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Ivor Horton's Beginning Visual C++ 2012
This is the forum to discuss the Wrox book Ivor Horton's Beginning Visual C++ 2012 by Ivor Horton; ISBN: 978-1-118-36808-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Visual C++ 2012 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 9th, 2015, 06:45 AM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2015
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sample Ex8_12 - LNK2019 error results in fatal error LNK1120

This is in regards to the sample exercise Ex8_12, "Try It Out - A Multifile Project Using the CBox Class", pages 400-12. I have followed the textbook instructions multiple times (recreated the entire program several times), researched the forums, as well as researched for additional update revisions, but have yet to find a solution for solving the following programming error:

1>Ex8_12.obj : error LNK2019: unresolved external symbol "public: int __thiscall CBox::operator/(class CBox const &)const " (??KCBox@@QBEHABV0@@Z) referenced in function "double __cdecl operator%(class CBox const &,class CBox const &)" (??L@YANABVCBox@@0@Z)

Please help, thank you.
  #2 (permalink)  
Old April 10th, 2015, 04:16 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2015
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Solution found for Sample Ex8_12

The problem occurred because I forgot to add the multiply and division operator functions previously presented in the chapter. There was also a declaration from int to double for the division operation. Works perfect now!
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fatal error C1189: #error : WINDOWS.H already included tedkurtz BOOK: Ivor Horton's Beginning Visual C++ 2008 ISBN: 978-0-470-22590-5 1 December 16th, 2009 03:06 PM
fatal error LNK1120: Yomero C++ Programming 0 November 11th, 2008 05:35 PM
fatal error LNK1120: 1 unresolved externals newbiecoder_bizz C++ Programming 1 May 15th, 2006 12:04 AM
error lnk2019 Paula222 C++ Programming 3 February 27th, 2006 08:53 AM
error lnk2019 Paula222 Visual C++ 0 February 7th, 2006 06:03 PM



All times are GMT -4. The time now is 10:12 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.