Re: 請教一下平方和開根號..
|
||||
---|---|---|---|---|
中級會員
|
原來版本太舊問題,真的很感謝您! m(_ _)m
發表於: 2005/11/15 22:15
|
|||
|
Re: 請教一下平方和開根號..
|
||||
---|---|---|---|---|
版主
|
你的版本太舊了,請先移除舊版的 MPLAB IDE 及 C18 後再上網更新版本。
MPLAB IDE v7.22 MPLAB C18 v1.30 Studend Edition Version http://www.microchip.com/stellent/idc ... ice=SS_GET_PAGE&nodeId=81
發表於: 2005/11/15 14:20
|
|||
|
Re: 請教一下平方和開根號..
|
||||
---|---|---|---|---|
版主
|
用了一斷最簡單的程式,結果正常:
#include <p18f452.h>
結果 b = 1.772453 , 我用MPLAB IDE v.710 and MPLAB C18 v2.40.01
發表於: 2005/11/15 11:31
|
|||
|
Re: 請教一下平方和開根號..
|
||||
---|---|---|---|---|
中級會員
|
您好:
我重新開一個檔案,先include math.h,compilier完後, 再打pow的指令,compilier完還是會出現Error >< Error - could not find definition of symbol 'pow' 是因為compilier不同嗎?還是有其它可能情況呢? T__T 我是使用 MPLAB-C18&PIC18F452。
發表於: 2005/11/11 21:24
|
|||
|
Re: 請教一下平方和開根號..
|
||||
---|---|---|---|---|
新會員
|
檢查看看是否在include之前就使用到這兩個函數,
這種情形就可能會有找不到函數定義的可能。 我試過,math.h,可以使用這兩個函數。 附帶一提我用的是CCS C-compiler&PIC18F2320作測試。
發表於: 2005/11/11 17:19
|
|||
|
請教一下平方和開根號..
|
||||
---|---|---|---|---|
中級會員
|
不好意思,請問一下我使用的是PIC18F452,用C作Coding
我有include math.h ,但是pow及sqrt不能使用,會有error, 還是沒有這個function呢? 因為這是很常見的計算,但卻不能使用,不知各位先進是否 有無使用過此功能。 下面是compilier後的訊息 Error - could not find definition of symbol 'pow' Error - could not find definition of symbol 'sqrt' 不好意思,問了一個小問題 ><
發表於: 2005/11/10 22:33
|
|||
|