-
Notifications
You must be signed in to change notification settings - Fork 1k
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
profiling.h conflicts with Qt #547
Comments
Consider #309 |
I saw it when I tried to find the solution |
profiling.h is a public API and changes might affect other users.
|
The same code was located in tbb_profiling.h with TBB that was a part of Intel Parallel Studio. Maybe oneTBB includes profiling.h in some additional place. What headers do you include from oneTBB? @vlserov Perhaps, we can try to think about some workarounds or options to hide this code when user requests. |
@zappaz00 If you're not actually using the You can apply See https://doc.qt.io/qt-6/signalsandslots.html#using-qt-with-3rd-party-signals-and-slots for more information. |
@keithel renaming |
You don´t even have to rename it, just adding something like to profiling.h fixes the issue. Just add a TBB define we can set to OneTBB so we can decide whether we want to have this or not. Having to patch the tbb each time a new version comes out is annoying. |
TBB and Qt ultimately need to be able to co-exist in an application. Using the |
A bit of shame that so many implementation details leak and break other libraries(concerns both qt and less tbb). best fix is to hide as much implementation from headers. |
profiling.h has method with name "emit" and strongly conficts with Qt keyword emit() used for signal/slot mechanism; Please, rename this method (problem starts from one api and absents in parallel studio). Qt won't fix it. Now developer can't correctly use Qt and TBB together.
The text was updated successfully, but these errors were encountered: