Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > BOOK: Ivor Horton's Beginning Visual C++ 2012
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 9th, 2015, 06:45 AM
Registered User
 
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.
 
Old April 10th, 2015, 04:16 PM
Registered User
 
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!





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.