Re: [問題] BC Linker Error

看板C_and_CPP (C/C++)作者 (小蛆)時間16年前 (2009/05/12 14:13), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串3/4 (看更多)
※ 引述《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
我傾向你的BC沒裝好....
05/12 14:32, 1F
文章代碼(AID): #1A2HE3rW (C_and_CPP)
討論串 (同標題文章)
本文引述了以下文章的的內容:
以下文章回應了本文
完整討論串 (本文為第 3 之 4 篇):
文章代碼(AID): #1A2HE3rW (C_and_CPP)