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

Compilation error in project using ofxImGui on Windows #205

Closed
mruegenberg opened this issue Jan 22, 2017 · 1 comment
Closed

Compilation error in project using ofxImGui on Windows #205

mruegenberg opened this issue Jan 22, 2017 · 1 comment

Comments

@mruegenberg
Copy link

In a project that also includes ofxCv, I get the following compilation error:

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(936,5): warning MSB8027: Two or more files with the name of Helpers.cpp will produce outputs to the same location. This can lead to an incorrect build result.  The files involved are ..\..\..\addons\ofxCv\libs\ofxCv\src\Helpers.cpp, ..\..\..\addons\ofxImGui\src\Helpers.cpp.

I guess the error is pretty self-explanatory. MSVC can't handle the same filename existing twice in the same project and I indeed get a linker error later on.

The solution would be for either ofxCv or ofxImGui or both to rename Helpers.cpp/.h

See also the corresponding ofxImGui issue.

@kylemcdonald
Copy link
Owner

kylemcdonald commented Feb 8, 2017

It looks like there is a VS-specific solution to this problem. http://www.setoreaustralia.com/msb8027-two-or-more-files-with-the-name-of-texture-cpp-will-produce-outputs-to-the-same-location/

Going to close this. If it's an recurring problem it should be reported to the project generator repo.

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