geekso001 edited a comment on issue #3: go get rocketmq-client-go error
URL: 
https://github.com/apache/rocketmq-client-go/issues/3#issuecomment-442306434
 
 
   I used CPP CORE & C HEAD FILES installed on the MAC. There are 33 errors in 
go get rocketmq-client-go. Please help to check what the problem is.
   ==================================================
   
   MacBook-Pro:src han$ go get github.com/apache/rocketmq-client-go/core
   github.com/apache/rocketmq-client-go/core/cfuns.go:32:62: could not 
determine kind of name for C.CMessageExt
   github.com/apache/rocketmq-client-go/core/cfuns.go:32:40: could not 
determine kind of name for C.CPushConsumer
   
   clang errors for preamble:
   In file included from github.com/apache/rocketmq-client-go/core/cfuns.go:21:
   /usr/local/include/rocketmq/CMessageExt.h:29:29: error: must use 'struct' 
tag to refer to type 'CMessageExt'
   const char *GetMessageTopic(CMessageExt *msgExt);
                               ^
   /usr/local/include/rocketmq/CMessageExt.h:30:28: error: must use 'struct' 
tag to refer to type 'CMessageExt'
   const char *GetMessageTags(CMessageExt *msgExt);
                              ^
   /usr/local/include/rocketmq/CMessageExt.h:31:28: error: must use 'struct' 
tag to refer to type 'CMessageExt'
   const char *GetMessageKeys(CMessageExt *msgExt);
                              ^
   /usr/local/include/rocketmq/CMessageExt.h:32:28: error: must use 'struct' 
tag to refer to type 'CMessageExt'
   const char *GetMessageBody(CMessageExt *msgExt);
                              ^
   /usr/local/include/rocketmq/CMessageExt.h:33:32: error: must use 'struct' 
tag to refer to type 'CMessageExt'
   const char *GetMessageProperty(CMessageExt *msgExt, const char *key);
                                  ^
   /usr/local/include/rocketmq/CMessageExt.h:34:26: error: must use 'struct' 
tag to refer to type 'CMessageExt'
   const char *GetMessageId(CMessageExt *msgExt);
                            ^
   /usr/local/include/rocketmq/CMessageExt.h:35:30: error: must use 'struct' 
tag to refer to type 'CMessageExt'
   int GetMessageDelayTimeLevel(CMessageExt *msgExt);
                                ^
   /usr/local/include/rocketmq/CMessageExt.h:36:23: error: must use 'struct' 
tag to refer to type 'CMessageExt'
   int GetMessageQueueId(CMessageExt *msgExt);
                         ^
   /usr/local/include/rocketmq/CMessageExt.h:37:30: error: must use 'struct' 
tag to refer to type 'CMessageExt'
   int GetMessageReconsumeTimes(CMessageExt *msgExt);
                                ^
   /usr/local/include/rocketmq/CMessageExt.h:38:25: error: must use 'struct' 
tag to refer to type 'CMessageExt'
   int GetMessageStoreSize(CMessageExt *msgExt);
                           ^
   /usr/local/include/rocketmq/CMessageExt.h:39:35: error: must use 'struct' 
tag to refer to type 'CMessageExt'
   long long GetMessageBornTimestamp(CMessageExt *msgExt);
                                     ^
   /usr/local/include/rocketmq/CMessageExt.h:40:36: error: must use 'struct' 
tag to refer to type 'CMessageExt'
   long long GetMessageStoreTimestamp(CMessageExt *msgExt);
                                      ^
   /usr/local/include/rocketmq/CMessageExt.h:41:33: error: must use 'struct' 
tag to refer to type 'CMessageExt'
   long long GetMessageQueueOffset(CMessageExt *msgExt);
                                   ^
   /usr/local/include/rocketmq/CMessageExt.h:42:37: error: must use 'struct' 
tag to refer to type 'CMessageExt'
   long long GetMessageCommitLogOffset(CMessageExt *msgExt);
                                       ^
   /usr/local/include/rocketmq/CMessageExt.h:43:47: error: must use 'struct' 
tag to refer to type 'CMessageExt'
   long long GetMessagePreparedTransactionOffset(CMessageExt *msgExt);
                                                 ^
   In file included from github.com/apache/rocketmq-client-go/core/cfuns.go:22:
   /usr/local/include/rocketmq/CPushConsumer.h:36:31: error: must use 'struct' 
tag to refer to type 'CPushConsumer'
   typedef int(*MessageCallBack)(CPushConsumer *, CMessageExt *);
                                 ^
   /usr/local/include/rocketmq/CPushConsumer.h:36:48: error: must use 'struct' 
tag to refer to type 'CMessageExt'
   typedef int(*MessageCallBack)(CPushConsumer *, CMessageExt *);
                                                  ^
   /usr/local/include/rocketmq/CPushConsumer.h:39:1: error: must use 'struct' 
tag to refer to type 'CPushConsumer'
   CPushConsumer *CreatePushConsumer(const char *groupId);
   ^
   /usr/local/include/rocketmq/CPushConsumer.h:40:25: error: must use 'struct' 
tag to refer to type 'CPushConsumer'
   int DestroyPushConsumer(CPushConsumer *consumer);
                           ^
   /usr/local/include/rocketmq/CPushConsumer.h:41:23: error: must use 'struct' 
tag to refer to type 'CPushConsumer'
   int StartPushConsumer(CPushConsumer *consumer);
                         ^
   /usr/local/include/rocketmq/CPushConsumer.h:42:26: error: must use 'struct' 
tag to refer to type 'CPushConsumer'
   int ShutdownPushConsumer(CPushConsumer *consumer);
                            ^
   /usr/local/include/rocketmq/CPushConsumer.h:43:28: error: must use 'struct' 
tag to refer to type 'CPushConsumer'
   int SetPushConsumerGroupID(CPushConsumer *consumer, const char *groupId);
                              ^
   /usr/local/include/rocketmq/CPushConsumer.h:44:36: error: must use 'struct' 
tag to refer to type 'CPushConsumer'
   const char *GetPushConsumerGroupID(CPushConsumer *consumer);
                                      ^
   /usr/local/include/rocketmq/CPushConsumer.h:45:38: error: must use 'struct' 
tag to refer to type 'CPushConsumer'
   int SetPushConsumerNameServerAddress(CPushConsumer *consumer, const char 
*namesrv);
                                        ^
   /usr/local/include/rocketmq/CPushConsumer.h:46:15: error: must use 'struct' 
tag to refer to type 'CPushConsumer'
   int Subscribe(CPushConsumer *consumer, const char *topic, const char 
*expression);
                 ^
   /usr/local/include/rocketmq/CPushConsumer.h:47:29: error: must use 'struct' 
tag to refer to type 'CPushConsumer'
   int RegisterMessageCallback(CPushConsumer *consumer, MessageCallBack 
pCallback);
                               ^
   /usr/local/include/rocketmq/CPushConsumer.h:48:32: error: must use 'struct' 
tag to refer to type 'CPushConsumer'
   int SetPushConsumerThreadCount(CPushConsumer *consumer, int threadCount);
                                  ^
   /usr/local/include/rocketmq/CPushConsumer.h:49:40: error: must use 'struct' 
tag to refer to type 'CPushConsumer'
   int SetPushConsumerMessageBatchMaxSize(CPushConsumer *consumer, int 
batchSize);
                                          ^
   /usr/local/include/rocketmq/CPushConsumer.h:50:33: error: must use 'struct' 
tag to refer to type 'CPushConsumer'
   int SetPushConsumerInstanceName(CPushConsumer *consumer, const char 
*instanceName);
                                   ^
   /usr/local/include/rocketmq/CPushConsumer.h:51:39: error: must use 'struct' 
tag to refer to type 'CPushConsumer'
   int SetPushConsumerSessionCredentials(CPushConsumer *consumer, const char 
*accessKey, const char *secretKey,
                                         ^
   /usr/local/include/rocketmq/CPushConsumer.h:53:28: error: must use 'struct' 
tag to refer to type 'CPushConsumer'
   int SetPushConsumerLogPath(CPushConsumer *consumer, const char *logPath);
                              ^
   /usr/local/include/rocketmq/CPushConsumer.h:54:38: error: must use 'struct' 
tag to refer to type 'CPushConsumer'
   int SetPushConsumerLogFileNumAndSize(CPushConsumer *consumer, int fileNum, 
long fileSize);
                                        ^
   /usr/local/include/rocketmq/CPushConsumer.h:55:29: error: must use 'struct' 
tag to refer to type 'CPushConsumer'
   int SetPushConsumerLogLevel(CPushConsumer *consumer, CLogLevel level);
                               ^
   33 errors generated.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to