-
Notifications
You must be signed in to change notification settings - Fork 18k
Running OpenCV4.0.0 C++ function inside GoLang project #30707
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
Comments
You forgot to include your header in the |
You are right, My bad. But I still get the same error message |
EDIT: |
Oh my .. this actually works now. Thank you! Could you tell me how come? |
I just explained it in the earlier post, giving it a file(s) in the arg literally means compile just the file(s) you gave it no more. So the .cpp file doesn't get compiled and added to the binary cause it wasn't in the list of files to compile. Having no args mean compile the folder in the current working directory. This is documented at https://golang.org/cmd/go/#hdr-Compile_packages_and_dependencies For further help I suggest you ask around in one of the places in https://github.com/golang/go/wiki/Questions |
This seems resolved, so I'm closing this issue. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I am trying to run C++ function in GoLang project by wrapping it in C library first and then linking with my GoLang project. Details can be found on: https://stackoverflow.com/questions/55082336/running-opencv-4-0-0-c-function-in-golang
What did you expect to see?
I expected for my project to be built successfully.
What did you see instead?
And when running
go build -x opencvTest.go
I get the following:The text was updated successfully, but these errors were encountered: