Wrox Programmer Forums
|
BOOK: Ivor Horton's Beginning Visual C++ 2013
This is the forum to discuss the Wrox book Ivor Horton's Beginning Visual C++ 2013 by Ivor Horton; ISBN: 978-1-118-84571-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Visual C++ 2013 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 October 27th, 2014, 09:18 AM
Authorized User
 
Join Date: Jan 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Compile error at Ex10_09

Hi! I got the following Error while I try to Build Ex10_09:

Error 1 error C1001: An internal error has occurred in the compiler. c:\users\alexandros\documents\visual studio 2013\projects\ex10_09\ex10_09\person.h 35 1 Ex10_09


Here is the output:

1>------ Build started: Project: Ex10_09, Configuration: Debug Win32 ------
1> Ex10_09.cpp
1>c:\users\alexandros\documents\visual studio 2013\projects\ex10_09\ex10_09\person.h(35): fatal error C1001: An internal error has occurred in the compiler.
1> (compiler file 'msc1.cpp', line 1325)
1> To work around this problem, try simplifying or changing the program near the locations listed above.
1> Please choose the Technical Support command on the Visual C++
1> Help menu, or open the Technical Support help file for more information
1> INTERNAL COMPILER ERROR in 'C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\CL.exe'
1> Please choose the Technical Support command on the Visual C++
1> Help menu, or open the Technical Support help file for more information
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Please advise.
Thanks
 
Old October 6th, 2016, 09:36 PM
Registered User
 
Join Date: Dec 2015
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default EX10_09 - Fix.

Hello Blue tower - I feel unqualified responding and providing C++ as I'm still in the middle of this book. But Hillary and Trump are running for president and so the bar is already low.......

I received this same error, a quick search leads me to believe that this code worked at one point in time but somewhere between C99 - C11 and C14 this is no longer possible to do with std::move. However I might be mistaken. Perhaps a pro can chime in....

In any case I was able to get the program working well enough by simply changing the constructor as such....


Person(const std::string first, const std::string second)

{
firstname = std::move(first), secondname = std::move(second);
}


This exercise has lead me to believe that I need to go back to ch 8 for a review. It's been a long haul but very much enjoying my time in this book! Best of luck on your C++ journey!

Last edited by Joe_F; October 6th, 2016 at 09:39 PM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Decipher Compile error: Syntax error Charlie07 BOOK: Excel VBA 24-Hour Trainer 1 August 23rd, 2013 10:07 AM
Compile error vbboyd BOOK: Beginning ASP.NET 4 : in C# and VB 3 May 19th, 2011 03:28 AM
compile error yogeshyl Excel VBA 0 December 12th, 2007 06:41 AM
Compile error: Syntax error: & Else without HELP Corey VB How-To 2 April 21st, 2006 03:25 PM
Compile Error aglatfel Access VBA 2 January 13th, 2004 04:01 PM





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