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

Compile errors, VS 2015, OF 0.9.8 stable branch. #241

Open
fred-dev opened this issue Feb 14, 2018 · 1 comment
Open

Compile errors, VS 2015, OF 0.9.8 stable branch. #241

fred-dev opened this issue Feb 14, 2018 · 1 comment

Comments

@fred-dev
Copy link

I cannot seem to compile anything with ofxCv (stable branch) and of 0.9.8 release or of github stable branch. I get the same error for all combinations:

1>opencv_core310.lib(persistence.obj) : error LNK2005: "public: static struct CvTypeInfo * CvType::first" (?first@CvType@@2PEAUCvTypeInfo@@EA) already defined in opencv_core249.lib(persistence.obj)
1>opencv_core310.lib(persistence.obj) : error LNK2005: "public: static struct CvTypeInfo * CvType::last" (?last@CvType@@2PEAUCvTypeInfo@@EA) already defined in opencv_core249.lib(persistence.obj)
1>opencv_core310.lib(persistence.obj) : error LNK2005: "struct CvType seq_type" (?seq_type@@3UCvType@@A) already defined in opencv_core249.lib(persistence.obj)
1>opencv_core310.lib(persistence.obj) : error LNK2005: "struct CvType seq_tree_type" (?seq_tree_type@@3UCvType@@A) already defined in opencv_core249.lib(persistence.obj)
1>opencv_core310.lib(persistence.obj) : error LNK2005: "struct CvType seq_graph_type" (?seq_graph_type@@3UCvType@@A) already defined in opencv_core249.lib(persistence.obj)
1>opencv_core310.lib(persistence.obj) : error LNK2005: "struct CvType sparse_mat_type" (?sparse_mat_type@@3UCvType@@A) already defined in opencv_core249.lib(persistence.obj)
1>opencv_core310.lib(persistence.obj) : error LNK2005: "struct CvType image_type" (?image_type@@3UCvType@@A) already defined in opencv_core249.lib(persistence.obj)
1>opencv_core310.lib(persistence.obj) : error LNK2005: "struct CvType mat_type" (?mat_type@@3UCvType@@A) already defined in opencv_core249.lib(persistence.obj)
1>opencv_core310.lib(persistence.obj) : error LNK2005: "struct CvType matnd_type" (?matnd_type@@3UCvType@@A) already defined in opencv_core249.lib(persistence.obj)

It seems from the documentation this should just work. I am using the project generator to either add ofxCV to an existing project, or to generate projects for any of the ofxCv examples.

@ratmother
Copy link

I am having this problem on 0.10.0 as well.

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