confluent-kafka-go icon indicating copy to clipboard operation
confluent-kafka-go copied to clipboard

issue while using [email protected]

Open sadasiva111 opened this issue 1 year ago • 0 comments

Description

I'm using [email protected] and I'm facing this issue while running my main.go file

"# github.com/confluentinc/confluent-kafka-go/kafka In file included from ./select_rdkafka.h:26:0, from ....\pkg\mod\github.com\confluentinc\[email protected]\kafka\adminapi.go:28: ./librdkafka_vendor/rdkafka.h:66:17: error: conflicting types for 'size_t' typedef SSIZE_T size_t; ^~~~~~ In file included from cgo-builtin-prolog:1:0: c:\mingw\lib\gcc\mingw32\6.3.0\include\stddef.h:216:23: note: previous declaration of 'size_t' was here typedef SIZE_TYPE size_t; ^~~~~~"

I'm also using mingw latest version. I think the conflict is due to reserved keyword size_t in c++. But I'm not able to solve above issue.

How to reproduce

Checklist

Please provide the following information:

  • [x] confluent-kafka-go and librdkafka version (LibraryVersion()):
  • [ ] Apache Kafka broker version:
  • [ ] Client configuration: ConfigMap{...}
  • [ ] Operating system:
  • [ ] Provide client logs (with "debug": ".." as necessary)
  • [ ] Provide broker log excerpts
  • [ ] Critical issue

sadasiva111 avatar Jun 30 '23 07:06 sadasiva111