error compiling new version strcpy_s

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

generil
decaying skeleton
decaying skeleton
Posts: 5
Joined: Thu Nov 07, 2013 1:12 pm

error compiling new version strcpy_s

Post by generil » Thu Nov 07, 2013 1:18 pm

here is what it says when I try to build eqmain.dll

--------------------Configuration: MQ2Main - Win32 Release--------------------
Compiling...
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
cl /Zp1 /MT /w /W0 /GX /Zi /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "CINTERFACE" /D "EQLIB_EXPORTS" /Fo"Intermediate/" /Fd"Intermediate/" /FD /c
"C:\Users\Owner\Desktop\mozilla downloads\MQ2-20131106\MQ2Main\MQ2Data.cpp"
"C:\Users\Owner\Desktop\mozilla downloads\MQ2-20131106\MQ2Main\MQ2DataTypes.cpp"
"C:\Users\Owner\Desktop\mozilla downloads\MQ2-20131106\MQ2Main\MQ2Windows.cpp"
MQ2Data.cpp
C:\Users\Owner\Desktop\mozilla downloads\MQ2-20131106\MQ2Main\MQ2Data.cpp(197) : error C2065: 'strcpy_s' : undeclared identifier
MQ2DataTypes.cpp
C:\Users\Owner\Desktop\mozilla downloads\MQ2-20131106\MQ2Main\MQ2DataTypes.cpp(1124) : error C2065: 'strcpy_s' : undeclared identifier
MQ2Windows.cpp
C:\Users\Owner\Desktop\mozilla downloads\MQ2-20131106\MQ2Main\MQ2Windows.cpp(972) : error C2065: 'strcpy_s' : undeclared identifier
Generating Code...
Error executing cl.exe.

MQ2Main.dll - 3 error(s), 0 warning(s)


Everything worked fine until patch and then mq was updated.

EqMule
Developer
Developer
Posts: 2697
Joined: Fri Jan 03, 2003 9:57 pm
Contact:

Re: error compiling new version strcpy_s

Post by EqMule » Thu Nov 07, 2013 2:47 pm

Not a bug, its intentional, update your visual studio to any version released after 2006
My status o/
If you like MQ2 and would like to contribute, please do. My goal is 25 donations per month.
So far I've received Image donations for this month's patches.

Bitcoin: 1Aq8ackjQ4f7AUvbUL7BE6oPfT8PmNP4Zq
Krono: PM me.
I can always use characters for testing, PM me if you can donate one.

generil
decaying skeleton
decaying skeleton
Posts: 5
Joined: Thu Nov 07, 2013 1:12 pm

Re: error compiling new version strcpy_s

Post by generil » Thu Nov 07, 2013 3:53 pm

what version of visual studio should u suggest I get?

Gomer
a snow griffon
a snow griffon
Posts: 304
Joined: Fri Apr 15, 2005 2:38 pm

Re: error compiling new version strcpy_s

Post by Gomer » Thu Nov 07, 2013 4:07 pm

I'm using VSE 2012, but VSE2013 is what's free now at: http://www.microsoft.com/visualstudio/e ... 13-express
Choose the "For Windows Desktop" version.
VSE2012 does a full build clean build of MQ2 for me in about 21 seconds btw.

generil
decaying skeleton
decaying skeleton
Posts: 5
Joined: Thu Nov 07, 2013 1:12 pm

Re: error compiling new version strcpy_s

Post by generil » Fri Nov 08, 2013 2:15 am

I did this and now when trying to build mq2main it says:

Error 1 error C3068: 'EQClasses::CStmlWnd::AppendSTML' : a 'naked' function cannot contain objects that would require unwinding if a C++ exception occurred C:\Users\Owner\Desktop\mozilla downloads\MQ2-20131106\MQ2Main\EQClasses.cpp 141 1 MQ2Main

EqMule
Developer
Developer
Posts: 2697
Joined: Fri Jan 03, 2003 9:57 pm
Contact:

Re: error compiling new version strcpy_s

Post by EqMule » Fri Nov 08, 2013 7:34 am

Download MQ2-20131107.zip
Unzip.
Open the vs2012 .sln file as admin
When solution is loaded press F7 until you see 0 errors and 0 warnings.
My status o/
If you like MQ2 and would like to contribute, please do. My goal is 25 donations per month.
So far I've received Image donations for this month's patches.

Bitcoin: 1Aq8ackjQ4f7AUvbUL7BE6oPfT8PmNP4Zq
Krono: PM me.
I can always use characters for testing, PM me if you can donate one.