Install eclipse-cpp-galileo-win32.zip
The latest eclipse CPP development ide
Http://www.eclipse.org/downloads/download.php? File =/technology/EPP/downloads/release/Galileo/SR1/eclipse-cpp-galileo-SR1-win32.zip
Set make program
Set binary parser
Create a C ++ Project
Compile header files
Write implementation
Rewrite makefile [Note that CC and ln point to the path of your installed VC]
Cc = cl.exe/ehs/ Mt/C/I "C:/program files/Microsoft Visual Studio. NET 2003/vc7/include "/I" C:/program files/Microsoft Visual Studio. NET 2003/vc7/atlmfc/include "/I" C:/program files/Microsoft Visual Studio. NET 2003/vc7/platformsdk/include"
Ln = link.exe/libpath: "C:/program files/Microsoft Visual Studio. NET 2003/vc7/lib "/libpath:" C:/program files/Microsoft Visual Studio. NET 2003/vc7/atlmfc/lib "/libpath:" C:/program files/Microsoft Visual Studio. NET 2003/vc7/platformsdk/lib"
Main = Main
ALL: Keys (maincmd.exe
@ CMD/C $ (main)
Usage (maincmd.exe: $ (main). OBJ
$ (LN)-out: publish (maincmd.exe $ (main). OBJ
$ (Main). OBJ: $ (main). cpp
$ (CC)-fo $ (main). OBJ $ (main). cpp
Clean:
Del certificate (maincmd.exe
Del *. OBJ
The output execution log is as follows:
Attached detailed parameters of Microsoft C compiler Cl
C/C ++ compiler options
-Optimization-
/O1 minimize space/OP [-] Improve floating-Pt consistency
/O2 maximize speed/OS favor code space
/OA assume no aliasing/OT favor code speed
/Ob <n> Inline expansion (default n = 0)/ow assume cross-function aliasing
/OD disable optimizations (default)/Ox maximum opts. (/ogityb2/GS)
/Og enable global optimization/Oy [-] Enable frame pointer Omission
/OI enable intrinsic functions
-Code Generation-
/G3 optimize for 80386/GH enable _ penter function call
/G4 optimize for 80486/GH enable _ pexit function call
/G5 optimize for Pentium/GR [-] Enable C ++ rtti
/G6 optimize for ppro, P-II, P-III/GX [-] Enable C ++ EH (same as/ESCS)
/G7 optimize for Pentium 4 or athlon/EHS enable C ++ EH (no seh exceptions)
/GB optimize for blended model (default)/EHA enable C ++ EH (W/seh exceptions)
/Gd _ cdecl calling convention/EHC extern "C" defaults to nothrow
/GR _ fastcall calling convention/GT generate fiber-safe TLS accesses
/GZ _ stdcall calling convention/GM [-] Enable minimal rebuild
/Ga optimize for Windows application/GL [-] Enable link-Time Code Generation
/GF enable string pooling/qifdiv [-] Enable Pentium fdiv fix
/GF Enable Read-Only string pooling/qi0f [-] Enable Pentium 0x0f fix
/Gy separate functions for linker/qifist [-] Use fist instead of ftol ()
/GZ Enable stack checks (/RTCs)/rtc1 enable fast checks (/rtcsu)
/Ge force stack checking for all funcs/RTCC convert to smaller type checks
/GS [num] Control Stack checking cballs/RTCs stack frame runtime checking
/GS enable security checks/rtcu uninitialized local usage checks
/CLR [: noassembly] compile for the Common Language Runtime
Noassembly-do not produce an assembly
/Arch: <SSE | sse2> Minimum CPU architecture requirements, one:
SSE-enable use of instructions available with SSE enabled CPUs
Sse2-enable use of instructions available with sse2 enabled CPUs
-Output files-
/FA name Assembly listing file/FO <File> name object file
/Fa [SC] configure Assembly listing/FP <File> name precompiled header file
/FD name. PDB file/FR name source browser File
/Fe <File> name Executable File/FR name extended. SBR File
/FM name Map File
-Preprocessor-
/AI <dir> Add to Assembly search path/FX merge injected code to file
/Fu <File> forced using assembly/module/FI <File> name forced include file
/C don't strip comments/u <Name> remove predefined macro
/D <name >{=|#}< text> define macro/u remove all predefined macros
/E preprocess to stdout/I <dir> Add to include search path
/EP preprocess to stdout, no # Line/X ignore "standard places"
/P preprocess to file
-Language-
/Zi enable debugging information/ze enable extensions (default)
/Zi Enable Edit and continue debug info/ZL omit default library name in. OBJ
/Z7 enable old-style debug info/ZG generate function prototypes
/ZD line number debugging info only/zs syntax check only
/ZP [N] Pack structs on n-byte boundary/VD {0 | 1} disable/enable vtordisp
/Za disable extensions (implies/OP)/Vm <x> type of pointers to members
/ZC: arg1 [, arg2] C ++ language conformance, where arguments can be:
Forscope-enforce standard C ++ for scoping rules
Wchar_t-wchar_t is the native type, not a typedef
-Miscellaneous-
@ <File> options response file/WO <n> Issue warning n once
/?, /Help print this help message/W <L> <n> set warning level 1-4 for N
/C compile only, no link/W <n> set warning level (default n = 1)
/H <num> MAX external Name Length/wall enable all warnings
/J default char type is unsigned/wp64 enable 64 bit porting warnings
/Nologo suppress copyright message/wx treat warnings as errors
/Showincludes show include file names/WL enable one line diagnostics
/Tc <Source File> compile file as. c/YC create. PCH File
/TP <Source File> compile file as. CPP/Yd put debug info in every. OBJ
/TC compile all files as. c/YL [sym] Inject. PCH ref for debug lib
/TP compile all files as. CPP/Yu use. PCH File
/V <string> set version string/Yx automatic. PCH
/W disable all warnings/Y-Disable all PCH options
/WD <n> disable warning N/ZM <n> MAX memory alloc (% of default)
/We <n> treat warning N as an error
-Linking-
/MD link with msvcrt. lib/MDD link with msvcrtd. Lib debug lib
/Ml link with libc. lib/MLD link with libcd. Lib debug lib
/MT link with libcmt. lib/MTD link with libcmtd. Lib debug lib
/LD create. dll/F <num> set stack size
/LDD create. dll debug Library/link [Linker Options and libraries]
Link Parameters
Microsoft (r) incremental linker version 7.10.3077
Copyright (c) Microsoft Corporation. All rights reserved.
Usage: link [Options] [files] [@ commandfile]
Options:
/Align :#
/Allowbind [: No]
/Assemblydebug [: Disable]
/Assemblylinkresource: Filename
/Assemblymodule: Filename
/Assemblyresource: Filename
/Base: {address | @ filename, key}
/Debug
/DEF: Filename
/Defaultlib: Library
/Delay: {nobind | unload}
/Delayload: DLL
/Delaysign [: No]
/DLL
/Driver [: {uponly | WDM}]
/Entry: Symbol
/Exetype: Dynamic
/Export: Symbol
/Fixed [: No]
/Force [: {multiple | unresolved}]
/Heap: Reserve [, commit]
/Idlout: Filename
/Ignoreidl
/Implib: Filename
/Include: Symbol
/Incremental [: No]
/Keyfile: Filename
/Keycontainer: Name
/Largeaddressaware [: No]
/Libpath: Dir
/Ltcg [: {nostatus | pginstrument | pgoptimize | status}]
(Pginstrument and pgoptimize are only available for IA64)
/Machine: {am33 | arm | EBC | IA64 | m32r | MIPS | mips16 | mipsfpu | mipsfp16| mipsr41xx |
SH3 | sh3dsp | sh4 | sh5 | thumb | x86}
/Map [: Filename]
/MapInfo: {exports | lines}
/Merge: From =
/Midl: @ commandfile
/Noassembly
/Nodefaultlib [: Library]
/Noentry
/Nologo
/OPT: {ICF [= iterations] | noicf | Noref | nowin98 | ref | Win98}
/Order: @ filename
/Out: Filename
/PDB: Filename
/Pdbstripped: Filename
/PGD: Filename
/Release
/Safeseh [: No]
/Section: name, [E] [r] [W] [s] [d] [k] [l] [p] [x] [, align = #]
/Stack: Reserve [, commit]
/Stub: Filename
/Subsystem: {console | efi_application | efi_boot_service_driver |
Efi_rom | efi_runtime_driver | native | POSIX | Windows |
WindowsCE} [, # [. #]
/Swaprun: {CD | net}
/Tlbout: Filename
/Tsaware [: No]
/Tlbid :#
/Verbose [: {lib | safeseh}]
/Version: # [. #]
/VxD
/WindowsCE: {convert | emulation}
/WS: aggressive