Http://blog.csdn.net/keyboardota/article/details/8464299
In bb10 cascades gold, if you create a new BlackBerry project, you will find that the following include statements will report a warning with the warning message "unresolved transfer Sion ", however, compiling and running programs will not be affected.
[CPP]View
Plaincopy
- # Include <qlocale>
- # Include <qtranslator>
Although there is no problem in compiling and running the program, it is still uncomfortable to see the warning message from bb10 cascades ide. It is especially difficult for me to accept the code.
At the same time, if you can eliminate these warning messages, it will be more obvious when bb10 cascades ide reports other warning messages, which is more conducive to writing debugging code.
The above problem occurs because the qt4 and qt4/qtcore directories were not added to the include path when bb10 cascades created the BlackBerry project. As a result, the IDE could not find the QT header file.
The solution is also very simple. You can add the qt4 and qt4/qtcore directories to the include path manually. The operation is as follows:
- Right-click your project and choose Properties"
- Then select "C/C ++ general-> paths and symols"
- Then select the corresponding configuration file. For example, if I use a real machine for testing, I will select "device-Debug"
- Then select "gnu c" on the "des" page"
- Click the "add" button next to it to add the following path to the include path:
<Ndk> \ target_10_0_9_1673 \ qnx6 \ USR \ include \ qt4 \ qtcore
<Ndk> \ target_10_0_9_1673 \ qnx6 \ USR \ include \ qt4
The added interface is as follows:
Finally, click OK to complete the configuration. If you compile the project again, you will not see "unresolved transfer Sion". If you still see the warning of "unresolved transfer Sion, maybe you have used some header files that the system cannot find. In this case, you need to check your code according to the warning information.