如何在vc.net2003中编译.cpp文件?

GotDotNet 2004-08-30 07:52:54
1、我在vc.net2003中编译单个.cpp文件老是出现下面的错误:

"c:\mywork\控制台项目\继承演示.cpp(29): fatal error C1010:
在查找预编译头指令时遇到意外的文件结尾"

怎样才能编译通过呢?(最起码提示有语法错误吧)

2、
我想在命令行下编译,该用哪个vc.net2003下的编译器呢?
命令怎么用呢?
...全文
69 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
saucer 2004-08-30
  • 打赏
  • 举报
回复
Tools->Options->Text Editor->C/C++->General, check "Line Number" in Display section
saucer 2004-08-30
  • 打赏
  • 举报
回复
if you get a linker error, right click on the file, open its Properties page, go to Linker->System, on the first line for "SubSystem", choose "Console"
saucer 2004-08-30
  • 打赏
  • 举报
回复
1. right click on the file, open its Properties page, go to C/C++ -> Precompiled Headers. On the first line, select "Not Using Precompiled Headers"

2. run vsvars32,bat, then use "cl", or use the Visual Studio.Net Command Prompt in Visual Studio .Net Tools group
GotDotNet 2004-08-30
  • 打赏
  • 举报
回复
还有一个小问题,怎么才能vs.net2003里的行号调出来呢?

7,540

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 VC.NET
社区管理员
  • VC.NET社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧