Building Error while src/bnetd/CMakeFiles/bnetd.dir/sql_mysql.cpp.o #472
Labels
No labels
bug
duplicate
enhancement
help wanted
in progress...
information
invalid
not enough info
priority high
priority low
priority normal
question
request
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Techwizz/pvpgn-server#472
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello everyone. it is the second day, that i'm trying to install PVPGN pro.
I have an Ubuntu 20.04.1
every time when i try to build the server i get this error
[ 72%] Building CXX object src/bnetd/CMakeFiles/bnetd.dir/sql_mysql.cpp.o /root/pvpgn-server/src/bnetd/sql_mysql.cpp: In function ‘int pvpgn::bnetd::sql_mysql_init(const char*, const char*, const char*, const char*, const char*, const char*)’: /root/pvpgn-server/src/bnetd/sql_mysql.cpp:175:4: error: ‘my_bool’ was not declared in this scope; did you mean ‘bool’? 175 | my_bool my_true = true; | ^~~~~~~ | bool /root/pvpgn-server/src/bnetd/sql_mysql.cpp:176:51: error: ‘my_true’ was not declared in this scope 176 | if (mysql_options(mysql, MYSQL_OPT_RECONNECT, &my_true)){ | ^~~~~~~ make[2]: *** [src/bnetd/CMakeFiles/bnetd.dir/build.make:752: src/bnetd/CMakeFiles/bnetd.dir/sql_mysql.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:955: src/bnetd/CMakeFiles/bnetd.dir/all] Error 2 make: *** [Makefile:141: all] Error 2
What am i doing wrong? How can i solve it? thank you!
编辑sql_mysql.cpp.o文件, 将my_bool my_true = xxx 中的 my_bool 改为 bool
Excuse me, could you please rewrite your comment in English, I didn't understand very well after the Google translation)😃
Thank you!
open and edit the sql_mysql.cpp.o file ,change my_bool(line 175 and 193) to bool, as mentioned in the error(I don't know if I'm expressing what I mean clearly. if you solve the problem, please tell me. i'm trying to install PVPGN too, and the ./bnetd can run at my severce, but I can't see my buddy in the lobby. i don't know where is wrong)
I successfully built file. Thank you!)
Now I'm trying to understand how to connect this server to red alert 2.
can you give me your contact info like twitter in my homepage(@qianmo366573994)? i still can't connect this sever to re2 because of my poverty of knowledge about the net. thank you.
@gugo2808 Switch to the
develop
branch and compile from there.Hello, this is my telegram channel, if you want you
can find me there, but I don't think, that I will able to help you to much. I haven't connected it yet to the game.
https://t.me/EnCryptech
Thank you.
The database mysql is necessary?
And after I successfully run it on my VPS, how to connect it to the game?)
Thank you!