Re: [問題] BC Linker Error
※ 引述《SmallMaggot (小蛆)》之銘言:
: ※ 引述《SmallMaggot (小蛆)》之銘言:
: : 今天在Compile古人的程式時,發生了以下的錯誤;
: : Linking xxx.exe
: : Linker Error:Undefined symbol FIWRQQ in module xxx.c
: : Linker Error:Undefined symbol FIDRQQ in module xxx.c
: : Linker Error:Undefined symbol N_FTOL@ in module xxx.c
: : Linker Error:Undefined symbol _atof in module xxx.c
: : 不知道有沒有人遇過相同的問題,可以幫我解答嗎??
: 目前要找到當時的開發環境,是沒有辦法的。
: 寫這個原始程式的人都已經不在了,也經過好幾手了。
: 不知道提到的動靜態轉換,是不是如下??
: BC -> Options -> Make -> Generate Import Library
: ()No
: ()Use DLL file exports
: ()Use DEF file exports
剛剛測試了一下,我寫了簡單的範例,發現主要是我的BC無法使用atof的function
#include <math.h>
#include <stdio.h>
main()
{
float f;
f = atof("1234.567");
printf("Float = %f",f);
}
執行Make時,就會出現
Linker Error:Undefined symbol FIWRQQ / FIDRQQ / _atof in module xxx.cpp
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.120.55.214
推
05/12 14:32, , 1F
05/12 14:32, 1F
討論串 (同標題文章)
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章