编译报错:warning: initialization makes integer from pointer without a cast
linux下用gcc编译时遇到如下问题,请问该怎么解决,谢谢
[root@localhost hainan]# gcc -shared -fPIC -o libjcmpp.so JCMPP.c libtssx_cmpp.a -I. -I/opt/jdk142/include/ -I/opt/jdk142/include/linux
JCMPP.c: In function `Java_JCMPP_jCMPP_1Get_1MO':
JCMPP.c:326: warning: initialization makes integer from pointer without a cast
JCMPP.c:327: warning: initialization makes integer from pointer without a cast
JCMPP.c:331: warning: initialization makes integer from pointer without a cast
JCMPP.c:335: warning: initialization makes integer from pointer without a cast
jchar dest_id[21];
jchar service_id[10];;
jchar sourceUser[21];
jchar msg[160];
...
struct MO_msg mo_msg = {
msgID ,
dest_id,
service_id ,
tp_pid,
tp_udhi ,
msgFormat ,
sourceUser ,
reg_deliver ,
msgLen,
msg
};
jint result = CMPP_Get_MO(conn_id, &mo_msg);