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

When the coost library is used with opencv3.x-4.x, #374

Open
huangzhibear opened this issue Oct 16, 2024 · 2 comments
Open

When the coost library is used with opencv3.x-4.x, #374

huangzhibear opened this issue Oct 16, 2024 · 2 comments

Comments

@huangzhibear
Copy link

When the coost library is used with opencv3.x-4.x, I don't know what the problem is
error: reference to ‘log’ is ambiguous
result += *a * log(ratio);
^~~
1

@izhengfan
Copy link
Contributor

try include opencv headers before include coost headers

@izhengfan
Copy link
Contributor

and don't use using namespace std / using namespace cv etc

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

2 participants