vs2008設置多核編譯
A. VS2008 C語言 編譯與運行
使用VS2008創建C語言/C++工程,並編譯運行調試,步驟如下:
1.打開VS2008
2.打開了VS2008的主界面,然後選擇,文件→新建→項目
彈出如圖對話框
這樣工程就創建OK了,
調試快捷鍵是 F5
直接運行快捷鍵是 CTRL + F5
B. VS2008的編譯按鈕在哪裡
菜單上有:構建
或者在菜單的空白處單擊右鍵-選擇 「構建」
C. vs2008編譯C++代碼,每次都是全編譯,有什麼設置只編譯修改的文件
如果你選擇「生成解決方案」(不是重新生成) 那就是只編譯了有改動的文件
左邊的文件列表裡 右鍵單擊你要編譯的文件 選擇生成也可以
D. vs2008添加預編譯命令
以預編譯頭文件為Stdafx.h為例:
Qt Creator中很簡單,只需在.pro文件中加入一行PRECOMPILED_HEADER = stdafx.h
VS2008在工程中在Stdafx.h文件上右鍵propertis-Configuration Properties-C/C++-Precompiled Headers-Create/Use Precompiled Header中選擇Create Precompiled Header(/y).
有一點注意的是,在工程Generated Filed中的moc相關文件也需要選上Use Precompiled Header (/Yu).
E. Win10 64位系統用VS2008 怎樣編譯出32位的可執行文件
在"配置管理器"中把所有項目的"平台"都設置為32位的.試試看呢。開發人員開發的產品如果是面向普通庫戶的建議還是裝32位的。
F. vs2008關於預編譯頭文件的設置在那裡
項目,屬性,c/c++ general additional include dir..
G. vs2008每次按F5調試都要編譯一次,就算代碼沒做任何修改也要編譯
VS-工具-選項-項目和解決方案-生成並運行
勾選:在運行時只僅生成啟動項目和依賴項
H. 怎麼在VS2008里編寫C語言程序
_tmain 就是現在的入口函數啦,返回值默認變成了int,這不重要,返回的就是退出代碼了
之所以 多了_t 是因為默認使用了unicode寬字元集, 不像以前那樣默認是asc字元集, unicode字元集好處非常明顯,在不同語言的系統下不會亂碼
,如今寫程序也是極力推薦使用unicode的,同時ascII與unicode處理字元竄時所用的函數都不同,多看教程吧,編譯設置中有 字元集的設置,想改可以改回來
至於新版2008的教程真的不好找,大多書也沒有講unicode的事情,
所以看是看經典類的書籍吧,我也是因為如此,即裝了VC6.0 ,又裝了2008,主學的是C#了
電驢找了下,這個教程應該不錯,要好好學習還是直接買本好書去吧
http://www.verycd.com/topics/2773169/
The Application Wizard has generated the stdafx.h header file as part of the project, and if you take a
look at the code in there, you』ll see there are two further #include directives for standard library header
files stdio.h and tchar.h. The old-style header stdio.h is for standard I/O and was used before the cur-
rent ISO/ANSI standard for C++; this covers the same functionality as the <iostream> header. tchar.h
is a Microsoft-specific header file defining text functions. The idea is that stdafx.h should define a set of
standard system include files for your project—you would add #include directives for any other sys-
temheaders that you need in this file. While you are learning ISO/ANSI C++, you won』t be using either
of the headers that appear in stdafx.h, which is one reason for not using the default file generation
capability provided by the Application Wizard
這一段載自某書,表示在stdafx.h中有tchar也就是寬字元集定義的頭文件tchar.h的包含,如果你不需要,則去掉這個包含, 去掉_t
目前網上能找到的VC++2008的書都是英文的。。。。