Replies: 3 comments
-
When introduced by @dabrain34 originally, I'm pretty sure it was intentionally. But I can see your point and agree that it is questionable. One reason to originally go that route was likely the need to include a whole bunch of headers to get anything done with the library and it was more convenient to not have to repeat the That said, the internal structure of the code base requires a simple My current gut feeling says: away with the Can you make that change locally and test if everything still works? E.g. the sample code from the |
Beta Was this translation helpful? Give feedback.
-
I agree with your stance and would prefer indeed to avoid the |
Beta Was this translation helpful? Give feedback.
-
I'm also in favor of enforcing namespaced includes (and thus removing the extra include search path), considering how generically some of the installed header files are named. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I came across this line in the source code:
https://github.com/zxing-cpp/zxing-cpp/blob/master/core/zxing.pc.in#L8
Is it intentional to add include/ZXing to the Cflags list?
The ZXing project includes header files like Version.h, Error.h, Result.h, and Flags.h, which are quite common file names. This could lead to name collisions if these headers are used alongside other projects.
While I understand that it may be convenient to include headers like #include <Error.h> directly, without the ZXing/ prefix, I believe the potential for naming conflicts outweighs this benefit.
My question is: Is the inclusion of include/ZXing in the Cflags list the intended behavior?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions