Jump to content

Serversource build win32


Go to solution Solved by Ulas,

Recommended Posts

  • Active Member

I am getting such error while compiling libsql in the serversource part, but I could not find the reason, I would be happy if you could help.
https://metin2.download/picture/7ta02Rp5QqChhk6fMiHQHfuwoW06lg4A/.png
 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Contributor

Whenever you have errors, go to the first one, not last, because the first one is usually creating a cascade/domino, triggering other errors. Show us the line where you get the first error.

 

Also, as a piece of advice, since you're coding/programming in English, keep the damn IDE in English as well, because we can't understand shit and it certainly doesn't help you very much either.

  • Metin2 Dev 1
  • Good 1
Link to comment
Share on other sites

  • Contributor
32 minutes ago, Ulas said:

@ Amun I can try serversource to win32 can you help me ? I don't understand really, ı have sql files.

Mate, I'm sorry, but I don't understand what you're trying to say.

Are you trying to compile your server's source with Visual Studio(win32) or what do you mean? And what do "sql files" have to do with anything?

 

I asked you to show us the piece of code that throws the first error. Where is it?

Link to comment
Share on other sites

  • Active Member
1 hour ago, Amun said:

Mate, I'm sorry, but I don't understand what you're trying to say.

Are you trying to compile your server's source with Visual Studio(win32) or what do you mean? And what do "sql files" have to do with anything?

 

I asked you to show us the piece of code that throws the first error. Where is it?

Not have saying to me illegal using
https://metin2.download/picture/ZzQxf0t449o6sOTBcMfEIxREKrkD75e9/.png

I wanna change to this : 

This is the hidden content, please

example

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Contributor
3 minutes ago, Ulas said:

Cannot open include file "mysql/mysql.h". Fix your dependencies first

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Active Member
  • Solution
3 minutes ago, Amun said:

Cannot open include file "mysql/mysql.h". Fix your dependencies first

https://metin2.download/picture/XYV1HI7AJYFbPZsi59wlsK0aZfh0Pml6/.png

19 minutes ago, Ulas said:
libthecore/stdafx.h
//search:
struct timespec
{
	time_t  tv_sec;         /* seconds */
	long    tv_nsec;        /* and nanoseconds */
};

//change:

#ifndef WIN32
struct timespec
{
	time_t  tv_sec;         /* seconds */
	long    tv_nsec;        /* and nanoseconds */
};
#define strtof(str, endptr) (float)strtod(str, endptr)
#endif

remove the bottom one
https://prnt.sc/O_S90eyNRWZk

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Contributor
59 minutes ago, Ulas said:

libthecore/include/stdafx.h

find and comment this:

#define strtof(str, endptr) (float)strtod(str, endptr)

 

 

Edit:

Just refreshed the page and noticed you updated your previous reply.

59 minutes ago, Ulas said:

https://metin2.download/picture/981BW8QSawm7P4YcpnbKv0kxdMf18rH8/.png

libthecore/stdafx.h
//search:
struct timespec
{
	time_t  tv_sec;         /* seconds */
	long    tv_nsec;        /* and nanoseconds */
};

//change:

#ifndef WIN32
struct timespec
{
	time_t  tv_sec;         /* seconds */
	long    tv_nsec;        /* and nanoseconds */
};
#define strtof(str, endptr) (float)strtod(str, endptr)
#endif

remove the bottom one
https://prnt.sc/O_S90eyNRWZk

 

Anyhow, wrapping them in "ifndef WIN32" is absolutely useless, since the whole block is wrapped in "ifdef WIN32", so you can just delete them.

Edited by Metin2 Dev
Core X - External 2 Internal
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.