Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×
!-->
  • 0

Metin2 client building error (Visual Studio 2013 )


Megvagyokkoszi

Question

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.

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0
  • Bronze
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

  • 0
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

  • 0

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 993

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    2. 1

      Looking for a good designer

    3. 0

      Cross channel friend request

    4. 2

      Where are those maps/dungeons coming from?

    5. 3

      Press F10 to close the client immediately

    6. 2

      Where are those maps/dungeons coming from?

    7. 2

      Where are those maps/dungeons coming from?

    8. 4

      Visual studio 2022 compiling issue

    9. 1

      Count players function

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.