Jump to content

Metin2 client building error (Visual Studio 2013 )


Go to solution Solved by Volvox,

Recommended Posts

Hello.

 

I have a little problem, but i don't understand what should i do here.

So i got  these errors in visual studio:

"Error    1    error C2144: syntax error : 'auto' should be preceded by ';'    D:\VSi\Binary\Source\UserInterface\PythonNetworkStreamPhaseGame.cpp    39    1    UserInterface"

The code :

int constexpr auto DiscordClientID = "934963434833997875"; // Change

 

I had before more error, when i used  static before int, like:

static constexpr auto DiscordClientID = "934963434833997875"; // Change

in this situtation i got this message:

1>..\..\Source\UserInterface\PythonNetworkStreamPhaseGame.cpp(39): error C2144: syntax error : 'auto' should be preceded by ';'
1>..\..\Source\UserInterface\PythonNetworkStreamPhaseGame.cpp(39): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

So. I thought i change static to int, but i still get message to auto part. So i think the int instead of static will work, but i'm not sure about it, but i don't get any error message.

 

 Please, someone help me and tell me what's wrong, because i don't understand, it seems for me good.

 

  • Metin2 Dev 1
Link to comment
Share on other sites

15 hours ago, V0lvox said:
constexpr auto DiscordClientID = "934963434833997875"; 

maximum int = +2147483647

I tried use long, but i still got  that(i checked, the maximum int, and i tried with long :

 

Error	1	error C2144: syntax error : '__int64' should be preceded by ';'	1	39	UserInterface

But, i got new errors too. 

 

Error	2	error C2440: 'initializing' : cannot convert from 'const char [6]' to '__int64'		1	39	UserInterface

and

Error	3	error C2664: 'void Discord_Initialize(const char *,DiscordEventHandlers *,int,const char *)' : cannot convert argument 1 from '__int64' to 'const char *'		1	45	UserInterface

 

14 hours ago, Denizeri24 said:

int constexpr auto

 

int constexpr auto

 

 

int

 

auto

 

int auto

 auto cannot be combined with any other type-specifier 
 

Link to comment
Share on other sites

Okay.

I fixed it , but i got the next error message.

 


 

Error	6	error LNK2038: mismatch detected for '_MSC_VER': value '1900' doesn't match value '1800' in AccountConnector.obj	D:\VSi\Binary\VSFiles\UserInterface\libcef_dll_wrapper.lib(command_line_ctocpp.obj)	UserInterface

 

Link to comment
Share on other sites

  • Active Member
  • Solution
7 hours ago, Megvagyokkoszi said:

Okay.

I fixed it , but i got the next error message.

 


 

Error	6	error LNK2038: mismatch detected for '_MSC_VER': value '1900' doesn't match value '1800' in AccountConnector.obj	D:\VSi\Binary\VSFiles\UserInterface\libcef_dll_wrapper.lib(command_line_ctocpp.obj)	UserInterface

 

https://stackoverflow.com/questions/47423404/error-lnk2038-mismatch-detected-for-msc-ver-value-1800-doesnt-match-valu

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.