PHP擴充編譯錯誤

來源:互聯網
上載者:User
sqlite3.cext\sqlite3\sqlite3.c(264) : warning C4244: “=”: 從“sqlite3_int64”轉換到“long”,可能遺失資料ext\sqlite3\sqlite3.c(511) : warning C4013: “sqlite3_key”未定義;假設外部返回intext\sqlite3\sqlite3.c(533) : warning C4013: “sqlite3_rekey”未定義;假設外部返回 intext\sqlite3\sqlite3.c(627) : warning C4244: “=”: 從“sqlite3_int64”轉換到“long”,可能遺失資料sqlite3.cext\sqlite3\libsqlite\sqlite3.c(87981) : error C2065: “sqlite3_key”: 未聲明的標識符ext\sqlite3\libsqlite\sqlite3.c(87981) : error C2099: 初始值設定項不是常量ext\sqlite3\libsqlite\sqlite3.c(87982) : error C2065: “sqlite3_rekey”: 未聲明的標識符ext\sqlite3\libsqlite\sqlite3.c(87982) : error C2099: 初始值設定項不是常量NMAKE : fatal error U1077: “"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"”: 傳回碼“0x2”Stop.


回複討論(解決方案)

有人能幫忙嗎。。。到現在了還是這個問題

直接找個編譯好的擴充吧

sqlite3.cext\sqlite3\sqlite3.c(264) : warning C4244: “=”: 從“sqlite3_int64”轉換到“long”,可能遺失資料ext\sqlite3\sqlite3.c(511) : warning C4013: “sqlite3_key”未定義;假設外部返回intext\sqlite3\sqlite3.c(533) : warning C4013: “sqlite3_rekey”未定義;假設外部返回 intext\sqlite3\sqlite3.c(627) : warning C4244: “=”: 從“sqlite3_int64”轉換到“long”,可能遺失資料sqlite3.cext\sqlite3\libsqlite\sqlite3.c(87981) : error C2065: “sqlite3_key”: 未聲明的標識符ext\sqlite3\libsqlite\sqlite3.c(87981) : error C2099: 初始值設定項不是常量ext\sqlite3\libsqlite\sqlite3.c(87982) : error C2065: “sqlite3_rekey”: 未聲明的標識符ext\sqlite3\libsqlite\sqlite3.c(87982) : error C2099: 初始值設定項不是常量NMAKE : fatal error U1077: “"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"”: 傳回碼“0x2”Stop.

是版本問題,擴充版本和php的編譯版本不一致。

是版本問題,擴充版本和php的編譯版本不一致。

我是在PHP的源碼裡的擴充的基礎上修改的啊。。。這個可能性應該不大吧。。

sqlite3.cext\sqlite3\sqlite3.c(264) : warning C4244: “=”: 從“sqlite3_int64”轉換到“long”,可能遺失資料
你用32位的編譯器編譯64位的源碼,很自然是要出錯的

ext\sqlite3\sqlite3.c(511) : warning C4013: “sqlite3_key”未定義;假設外部返回
你沒有嵌入定義 sqlite3_key 的標頭檔

你沒有嵌入定義 sqlite3_key 的標頭檔
還有其他一些能夠用的標示符,我全域搜尋了一遍,把它們聲明過得地方或者說只要好像是聲明的地方我都跟著寫了一遍,這個可能性應該不太大。。。

你把錯誤資訊拿到 VC 版面( http://bbs.csdn.net/forums/VC)去問,看他們怎麼說

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    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.