看板 C_and_CPP 關於我們 聯絡資訊
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) VC++ 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) 問題(Question): 想請教各位高手,小弟的作業系統是win7 64 bits 有爬過cjoe大大所發的文,依照其做法後編譯出來之程式仍為32 bits 小弟目前需要編譯64位元程式最大的目的是希望能夠以64位元作為定址方式 才可有效利用RAM(8G) 網路上搜尋也找過下列文章 http://wiki.codeblocks.org/index.php?title=64Bit_Windows 仍舊無法達成目的 還請各位賜教 餵入的資料(Input): 預期的正確結果(Expected Output): sizeof(void*) = 8 錯誤結果(Wrong Output): sizeof(void*) = 4 程式碼(Code):(請善用置底文網頁, 記得排版) printf("sizeof(void*) = %d\n",sizeof(void*)); 補充說明(Supplement): -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.107.62
diabloevagto:編譯只跟compiler有關,你確定你compiler裝對?或是 11/25 15:15
diabloevagto:參數設定對嗎? 11/25 15:15
cloudwalker:分別按照文中提及的網路文章和爬文內容安裝,仍不行 11/25 15:36
diabloevagto:你是用vc++還是cb?還是cb掛vc的compiler? 11/25 16:21
diabloevagto:我剛剛去看tdmgcc有分32跟64版本 11/25 16:21
cloudwalker:我適用cb透過win SDK 掛VC的compiler 11/25 19:07
dayyeah:vcvarsall.bat x86_amd64 11/27 02:49