• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

error compiling sources

Mizakinha

New Member
Joined
Apr 18, 2021
Messages
31
Reaction score
4
Good morning guys from Otland.

So, I needed to work on my sources to add a new system on my server, but when compiling this it gives an error and I am not able to solve it.

I searched here and in other forums but I didn't find anything like it, can someone help me?

I'll leave a print with the errors here.

DxP
 

Attachments

  • 4f3181bc-91a3-4073-9a3f-bb2fd74ceabf.jpg
    4f3181bc-91a3-4073-9a3f-bb2fd74ceabf.jpg
    24.7 KB · Views: 10 · VirusTotal
Solution
Can you try last option? Because I don't think your computer has to do anything with Dev compiling.
Tools -> Compiler Options ->
compoptions.PNG
If this didn't work, Just create a request thread for compiling and I will compile it to you.
OP
OP
M

Mizakinha

New Member
Joined
Apr 18, 2021
Messages
31
Reaction score
4
Which source are you using? Are you trying to compile for Windows or Linux? What is your Visual Studio version? More information please.
Excuse. I am using devcpp to compile. I'm trying to compile the sources for Pokemon HuatsonOT V2.0 (DXP). Windows. I'll leave the print under the visual studio
 

Attachments

OP
OP
M

Mizakinha

New Member
Joined
Apr 18, 2021
Messages
31
Reaction score
4
What is Pokemon HuatsonOT V2.0? Any available links? Were you able to compile it before you adding your custom system?
It's a PokeTibia server, I got it from another forum, I don't know if I can post a link here. If you prefer, I can add it to Discord.

I tried to compile without my modification and it's giving the same error

My discord: Doouglita#9952
 

M0ustafa

1337
Senator
Joined
Mar 4, 2017
Messages
2,562
Solutions
316
Reaction score
1,134
Location
Egypt
You can post source link here or PM me with it for now, I will start a conversation, Will get to discord later if it is needed.

You are missing libws2_32 I will upload it to here
Run Dev-C++ then choose
Project
Project Options
Parameters
and click on Add Library or Object under Linker then choose libws2_32.a and compile, Should work.
@Mizakinha

Looks like I can't attach it, I uploaded it on
libws2_32.a (232.65KB) - SendSpace.com (https://www.sendspace.com/file/nk9w9n)
 
Last edited:
OP
OP
M

Mizakinha

New Member
Joined
Apr 18, 2021
Messages
31
Reaction score
4
You can post source link here or PM me with it for now, I will start a conversation, Will get to discord later if it is needed.

You are missing libws2_32 I will upload it to here
Run Dev-C++ then choose
Project
Project Options
Parameters
and click on Add Library or Object under Linker then choose libws2_32.a and compile, Should work.
@Mizakinha

Looks like I can't attach it, I uploaded it on
libws2_32.a (232.65KB) - SendSpace.com (https://www.sendspace.com/file/nk9w9n)
Sorry for the delay, I was sleeping.

Were you able to compile the sources? I tried here with this file that you sent and it keeps giving error.

Do I need to place the file in a specific folder?
 

M0ustafa

1337
Senator
Joined
Mar 4, 2017
Messages
2,562
Solutions
316
Reaction score
1,134
Location
Egypt
Yes I compiled it with only the changes I gave above, Here is the compiled version.
I used StiansRepackDev-Cpp_v2
This is what I have in C++ compiler
Code:
-D__USE_MYSQL__
-D__USE_SQLITE__
-D__ENABLE_SERVER_DIAGNOSTIC__
-O2
This is what I have in Linker
Code:
-llibxml2
-lgmp
-llua5.1
-lboost_system
-lwsock32
-lws2_32
-lboost_regex
-lsqlite3
-lmysql
-lxml2
-s
-lboost_filesystem
-lboost_thread
-lz
-lcryptopp
-leay32
-O1
-lluasql_mysql
-lluasql_sqlite
-lodbc32
-l gdi32
"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib32/libws2_32.a"
 

Attachments

OP
OP
M

Mizakinha

New Member
Joined
Apr 18, 2021
Messages
31
Reaction score
4
Yes I compiled it with only the changes I gave above, Here is the compiled version.
I used StiansRepackDev-Cpp_v2
This is what I have in C++ compiler
Code:
-D__USE_MYSQL__
-D__USE_SQLITE__
-D__ENABLE_SERVER_DIAGNOSTIC__
-O2
This is what I have in Linker
Code:
-llibxml2
-lgmp
-llua5.1
-lboost_system
-lwsock32
-lws2_32
-lboost_regex
-lsqlite3
-lmysql
-lxml2
-s
-lboost_filesystem
-lboost_thread
-lz
-lcryptopp
-leay32
-O1
-lluasql_mysql
-lluasql_sqlite
-lodbc32
-l gdi32
"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib32/libws2_32.a"
I downloaded StiansRepackDev-Cpp_v2. I left my compiler the same as yours and still the same error. It's probably something on my PC.

If I do the updates I need here in my source and send you can you compile for me?
 

M0ustafa

1337
Senator
Joined
Mar 4, 2017
Messages
2,562
Solutions
316
Reaction score
1,134
Location
Egypt
I can compile it for you but lets see what are you missing there.
add this to
Project -> Project Options -> Directories -> Library Directories
StiansRepackDev-Cpp_v2\Stian's Repack Dev-Cpp v2\lib

Project -> Project Options -> Directories -> Include Directories
StiansRepackDev-Cpp_v2\Stian's Repack Dev-Cpp v2\include

Tools -> Compiler options -> Directories -> Binaries
StiansRepackDev-Cpp_v2\Stian's Repack Dev-Cpp v2\bin

Tools -> Compiler options -> Directories -> Libraries
StiansRepackDev-Cpp_v2\Stian's Repack Dev-Cpp v2\lib

Tools -> Compiler options -> Directories -> C Includes
StiansRepackDev-Cpp_v2\Stian's Repack Dev-Cpp v2\include

Tools -> Compiler options -> Directories -> C++ Includes
StiansRepackDev-Cpp_v2\Stian's Repack Dev-Cpp v2\include\c++

OFC you need to browse to your Dev-C++ path, Then retry to compile.
 
OP
OP
M

Mizakinha

New Member
Joined
Apr 18, 2021
Messages
31
Reaction score
4
I can compile it for you but lets see what are you missing there.
add this to
Project -> Project Options -> Directories -> Library Directories
StiansRepackDev-Cpp_v2\Stian's Repack Dev-Cpp v2\lib

Project -> Project Options -> Directories -> Include Directories
StiansRepackDev-Cpp_v2\Stian's Repack Dev-Cpp v2\include

Tools -> Compiler options -> Directories -> Binaries
StiansRepackDev-Cpp_v2\Stian's Repack Dev-Cpp v2\bin

Tools -> Compiler options -> Directories -> Libraries
StiansRepackDev-Cpp_v2\Stian's Repack Dev-Cpp v2\lib

Tools -> Compiler options -> Directories -> C Includes
StiansRepackDev-Cpp_v2\Stian's Repack Dev-Cpp v2\include

Tools -> Compiler options -> Directories -> C++ Includes
StiansRepackDev-Cpp_v2\Stian's Repack Dev-Cpp v2\include\c++

OFC you need to browse to your Dev-C++ path, Then retry to compile.
I did this procedure and it continues the same problem from the beginning.

I am 99% sure that it is something with my computer and no matter what I do it will continue, I need to format it. I will try to compile on another computer tomorrow.

In the meantime can you compile for me? I made the changes here, but I can't send them here because the file is too big.
 

M0ustafa

1337
Senator
Joined
Mar 4, 2017
Messages
2,562
Solutions
316
Reaction score
1,134
Location
Egypt
Can you try last option? Because I don't think your computer has to do anything with Dev compiling.
Tools -> Compiler Options ->
compoptions.PNG
If this didn't work, Just create a request thread for compiling and I will compile it to you.
 
Solution
OP
OP
M

Mizakinha

New Member
Joined
Apr 18, 2021
Messages
31
Reaction score
4
Can you try last option? Because I don't think your computer has to do anything with Dev compiling.
Tools -> Compiler Options ->
View attachment 57824
If this didn't work, Just create a request thread for compiling and I will compile it to you.
It was as I thought, I passed the sources to my brother's computer and managed to compile normally. The problem was my PC.

Thank you very much for trying to help me, I don't even know how to thank you. Thank you very much. Saved my life.
 
Top