Skip to content

Commit 6d00c8c

Browse files
committed
fixed:linux build error
1 parent 3c8fdf1 commit 6d00c8c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

XEngine_Source/MQCore_ProtocolModule/ProtocolModule_Packet/ProtocolModule_Packet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ BOOL CProtocolModule_Packet::ProtocolModule_Packet_PassUser(XENGINE_PROTOCOL_USE
400400
Json::Value st_JsonUser;
401401
Json::StreamWriterBuilder st_JsonBuilder;
402402

403-
st_JsonUser["nIDNumber"] = pSt_ProtocolUser->nIDNumber;
404-
st_JsonUser["nPhoneNumber"] = pSt_ProtocolUser->nPhoneNumber;
403+
st_JsonUser["nIDNumber"] = (Json::Value::UInt64)pSt_ProtocolUser->nIDNumber;
404+
st_JsonUser["nPhoneNumber"] = (Json::Value::UInt64)pSt_ProtocolUser->nPhoneNumber;
405405
st_JsonUser["nUserLevel"] = pSt_ProtocolUser->nUserLevel;
406406
st_JsonUser["nUserState"] = pSt_ProtocolUser->nUserState;
407407
st_JsonUser["tszCreateTime"] = pSt_ProtocolUser->tszCreateTime;

XEngine_Source/XEngine_MQServiceApp/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ CC = g++ -Wall -std=c++17
22
RELEASE = 0
33
UNICODE = 0
44
LOADBIN = 0
5-
LIB = -lXEngine_BaseLib -lXEngine_Algorithm -lXEngine_Core -lXEngine_ManagePool -lXEngine_SystemApi -lHelpComponents_XLog -lHelpComponents_Packets -lRfcComponents_WSProtocol -lRfcComponents_HttpServer \
5+
LIB = -lXEngine_BaseLib -lXEngine_Algorithm -lXEngine_Core -lXEngine_ManagePool -lXEngine_SystemApi -lHelpComponents_XLog -lHelpComponents_Packets -lRfcComponents_WSProtocol -lRfcComponents_HttpServer -lNetHelp_APIHelp \
66
-lMQCore_ConfigModule -lMQCore_ProtocolModule -lMQCore_SessionModule -lMQCore_DBModule -ljsoncpp
77
LIBEX = -ldl -lpthread
88
LOADSO = -Wl,-rpath=./,--disable-new-dtags
@@ -12,7 +12,7 @@ ifeq ($(shell uname),Darwin)
1212
LOADBIN = -L ../MQCore_ConfigModule -L ../MQCore_ProtocolModule -L ../MQCore_SessionModule -L ../MQCore_DBModule -L ../XEngine_ThirdPart/jsoncpp
1313
LOADSO =
1414
else
15-
LOADBIN = -L /usr/local/lib/XEngine_Release/XEngine_BaseLib -L /usr/local/lib/XEngine_Release/XEngine_Core -L /usr/local/lib/XEngine_Release/XEngine_SystemSdk -L /usr/local/lib/XEngine_Release/XEngine_HelpComponents -L /usr/local/lib/XEngine_Release/XEngine_RfcComponents \
15+
LOADBIN = -L /usr/local/lib/XEngine_Release/XEngine_BaseLib -L /usr/local/lib/XEngine_Release/XEngine_Core -L /usr/local/lib/XEngine_Release/XEngine_SystemSdk -L /usr/local/lib/XEngine_Release/XEngine_HelpComponents -L /usr/local/lib/XEngine_Release/XEngine_RfcComponents -L /usr/local/lib/XEngine_Release/XEngine_NetHelp \
1616
-L ../MQCore_ConfigModule -L ../MQCore_ProtocolModule -L ../MQCore_SessionModule -L ../MQCore_DBModule -L ../XEngine_ThirdPart/jsoncpp
1717
endif
1818

0 commit comments

Comments
 (0)