Small trick using mathematical functions in openat

Source: Internet
Author: User
Tags mathematical functions

Wmp100Development, it is really difficult to move forward. Although it is getting better and better, we still encounter strange problems. I cannot figure it out. I still don't know about Baidu,GoogleAnd cannot take a few bubbles. Mathematical functionsOpenI was very depressed for a while. Fortunately, we have finally solved the problem today. leave a mark here. Of coursePreferably WavecomCan outputOpenatOfFAQFor a wide range of developers, do not make these small issues a big headache.Pai_^

ToOpenatApplicationProgramFor exampleSQRT (),Cos ()First, the header file must be included.Math. hBut only this header file is included. The warning message is still displayed during the compilation link, as shown below:

Appli. C: In function 'adl _ main ':

Appli. C: 88: Warning: incompatible implicit declaration of built-in function 'qrt'

I have been searching for it online for a long time, saying that I want to add it to the link option. -LM But I don't know where to add it. Thought it was IDE From Eclipse Change Vc6.0 But still not solved. Try to modify Mak File. Finally Wavecom Found in the Development Forum 05 An old post in, which describes the solution. For Openat OS ( 6.10.05 ) To make an update.

FirstOpen at Project WizardSet"Wmnew script additional options"Input

-Inc "C: \ openat \ ide \ GCC \ 4.0.1.2 \ arm-elf \ Lib", As follows:


OpenMakFile(Math. Mak), Find the followingCode,

#----------------------------------------------------------------

# List of libraries real names to use for making binary file

#----------------------------------------------------------------

External_lib_list = \

Add the following code later,

C:/openat/IDE/GCC/4.0.1.2/ARM-elf/lib/thumb/interwork/libm. \

In this way, the compilation will not be a problem.

Related Article

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.