Bb10 cascades: how to eliminate the "unresolved transfer Sion" Warning

Source: Internet
Author: User

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

  1. # Include <qlocale>
  2. # 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:

  1. Right-click your project and choose Properties"
  2. Then select "C/C ++ general-> paths and symols"
  3. Then select the corresponding configuration file. For example, if I use a real machine for testing, I will select "device-Debug"
  4. Then select "gnu c" on the "des" page"
  5. 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.