vc++6.0下关于头文件包含_第1页
vc++6.0下关于头文件包含_第2页
vc++6.0下关于头文件包含_第3页
vc++6.0下关于头文件包含_第4页
vc++6.0下关于头文件包含_第5页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

VC+6.0 下关于头文件包含By francis_hao 最近学习 ucosii,从网上下载了一个可以在 pc 上运行的工程,刚开始没太注意它的文件结构,只是专注了它的运行结果。后来不经意间看见了这样的结构:怎么样?发现异常了吧。我当时就赫然发现这有悖常理啊,于是我仿照着这种文件结构自己做了一个工程,但是不能编译,提示找不到所包含的头文件但是以我的水平,对此实在是无法解释啊。就去查阅资料,查了半天也毫无头绪。我劝自己,这和我有什么关系呢,用 ”得了,可是抵不住心里那份好奇,就想一探究竟,我在网上求助一位高人,但是他有事没能给我解答。我在一个 ucos 群里也问了这样的问题,有人说可以将 include.h 所在的目录添加在默认头文件路径里。我看了一下没有异常。但是我发现了原来可以在一些选项里更改编译器的参数,以实现你需要的功能。于是我打开下载的工程,对着可以设置的参数挨个查看。就像玩的游戏“找不同” 。终于,我发现了些蛛丝马迹上边红色标记的地方还好理解,下边的就有点太深奥了吧!不会要让我修改 Project Options 选项吧,看着那些字母头都大了。但是总算有点头绪了。头撑大了也值。我查阅了相关资料发现这一条:/I add to include search path前面的/I 是命令,后面是解释。这就好办了,我在里面添加了这样的语句/I “.”再编译,哈哈,编译成功。问题解决了。这个小问题使我停滞了将近一天,要加快步伐了!Project Options 语法附录在下面:也不必全然看懂,因为很多我们是用不上的。在里面查看自己感兴趣的就可以了。附录:Project Options 语法/O1 minimize space/Op- improve floating-pt consistency/O2 maximize speed/Os favor code space/Oa assume no aliasing/Ot favor code speed/Ob inline expansion (default n=0)/Ow assume cross-function aliasing/Od disable optimizations (default)/Ox maximum opts. (/Ogityb1 /Gs)/Og enable global optimization /Oy- enable frame pointer omission/Oi enable intrinsic functions/G3 optimize for 80386/G4 optimize for 80486/GR- enable C+ RTTI/G5 optimize for Pentium/G6 optimize for Pentium Pro/GX- enable C+ EH (same as /EHsc)/EHs enable synchronous C+ EH/GD optimize for Windows DLL/GB optimize for blended model (default)/EHa enable asynchronous C+ EH/Gd _cdecl calling convention /EHc extern “C“ defaults to nothrow/Gr _fastcall calling convention/Gi- enable incremental compilation/Gz _stdcall calling convention /Gm- enable minimal rebuild/GA optimize for Windows Application/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/GZ enable runtime debug checks/Gh enable hook function call/Ge force stack checking for all funcs/Gsnum disable stack checking calls/Fafile name assembly listing file/Fo name object file/FAsc configure assembly listing /Fp name precompiled header file/Fdfile name .PDB file /Frfile name source browser file/Fe name executable file/FRfile name extended .SBR file/Fmfile name map file/FI name forced include file/C dont strip comments /U remove predefined macro/D=|# define macro/u remove all predefined macros/E preprocess to stdout/I add to include search path/EP preprocess to stdout, no #line/X ignore “standard places“/P preprocess to file/Zi enable debugging information/Zl omit default library name in .OBJ/ZI enable Edit and Continue debug info/Zg generate function prototypes/Z7 enable old-style debug info/Zs syntax check only/Zd line number debugging info only/vd0|1 disable/enable vtordisp/Zpn pack structs on n-byte boundary/vm type of pointers to members/Za disable extensions (implies /Op)/noBool disable “bool“ keyword/Ze enable extensions (default)/?, /help print this help message/c compile only, no link/W set warning level (default n=1)/H max external name length/J default char type is unsigned/nologo suppress copyright message/WX treat warnings as errors/Tc compile file as .c /Ycfile create .PCH file/Tp compile file as .cpp /Yd put debug info in every .OBJ/TC .c compile all files as .c /TP .cpp compile all files as .cpp /Yufile use .PCH file/V set version string/YXfile automatic .PCH/w disable all warnings/Zm max memory alloc (% of default)/MD link with MSVCRT.LIB/MDd link with MSVCRTD.LIB debug lib/ML link with LIBC.LIB/MLd link with LI

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论