Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when compiling new linux binary with golang #2639

Open
reastyn opened this issue Oct 24, 2024 · 0 comments
Open

Exception when compiling new linux binary with golang #2639

reastyn opened this issue Oct 24, 2024 · 0 comments

Comments

@reastyn
Copy link

reastyn commented Oct 24, 2024

This bug was introduced in 1.24.1, 1.24.0 works. When I try to compile the go program with the new binary, error with

go build -o main .:
12.14 # github.com/Microsoft/cognitive-services-speech-sdk-go/common
12.14 In file included from /go/pkg/mod/github.com/!microsoft/[email protected]/common/property_collection.go:8:
12.14 /usr/local/speechsdk/include/c_api/speechapi_c_property_bag.h:118:5: error: redeclaration of enumerator 'Speech_SegmentationMaximumTimeMs'
12.14   118 |     Speech_SegmentationMaximumTimeMs = 9004,
12.14       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12.14 /usr/local/speechsdk/include/c_api/speechapi_c_property_bag.h:117:5: note: previous definition of 'Speech_SegmentationMaximumTimeMs' with type 'int'
12.14   117 |     Speech_SegmentationMaximumTimeMs = 9003,
12.14       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```.

To reproduce the error just try to compile existing go code with the newest version of the linux binary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant