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

Error C2334 unexpected token(s) preceding '{'; skipping apparent function body #2

Closed
Karol-G opened this issue Oct 31, 2018 · 2 comments

Comments

@Karol-G
Copy link

Karol-G commented Oct 31, 2018

When compiling the CmakeProject on Windows 7 for Visual Studio 15 2017 Win64 with OpenCV 3 I get a lot of errors.

The first one is for example:
Severity Code Description Project File Line Suppression State Error C2334 unexpected token(s) preceding '{'; skipping apparent function body ANMS_Codes c:\users\cookie\documents\anms\cmakeproject\source\range-tree\ranget.h 523

Is the code not compatible with my setup or have I simply missed something?

@BAILOOL
Copy link
Owner

BAILOOL commented Nov 1, 2018

@cookingcookie, unfortunately, I have zero experience with Windows 7 with VS and OpenCV, so it would be hard to help you on the issue. However, range tree library (where the error occurs) is only used in different algorithms for comparison purposes. The algorithm that we suggest in the paper is SSC, and it only relies on OpenCV (any version) with no additional libraries. So I would suggest you keeping Ssc only while removing everything redundant (including ranget.h headers)

@Karol-G
Copy link
Author

Karol-G commented Nov 1, 2018

Yes this worked. It compiled and is runnable.
Thanks for the quick response!

@Karol-G Karol-G closed this as completed Nov 1, 2018
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