在Visual Studio 2005中编译C程序 [英] Compile C program in Visual Studio 2005
问题描述
对不起,如果这听起来很愚蠢。我是新手....
我可以在Visual Studio 2005 IDE中编译C程序吗?我写了简单的
Hello World。程序在其中:
---------------------------------- -
#include< stdio.h>
main()
{
printf(" hello,world!\ n");
}
----------- ---------------------------
当我运行它时,它给了我以下内容:
-------------------------------------- -----------------------------------
''HelloWorld2.exe'' :已加载
''D:\ VSS \Projects \ HelloWorld2 \ debug> \\ HelloLorld2.exe'',Binary没有用调试信息构建
。
''HelloWorld2.exe'':已加载''C:\ WINDOWS \ system32 \ antdll.dll'',无符号
已加载。
''HelloWorld2.exe'':已加载''C:\ WINDOWS \ system32 \ kernel32.dll'',无符号
已加载。
''HelloWorld2.exe'':已加载''C:\ WINDOWS \system32 \ apphelp.dl l'',没有符号
已加载。
''HelloWorld2.exe'':已加载''C:\ WINDOWS \system32 \ version.dll'' ,没有符号
加载。
线程''Win32 Thread''(0x4e8)退出代码0(0x0)。
程序''[5968] HelloWorld2.exe:Native'已退出代码0(0x0)。
---------------- -------------------------------------------------- -------
有什么建议吗?请指教。万分感谢!
问候,
尼克
< blockquote>是的,你可以
该程序已经编译并正确处理。当您创建项目
时,您是否将其创建为控制台应用程序。还可以从不在ide中的命令行运行应用程序
。在ide中,程序
将结束并关闭控制台窗口。
Nicholas Zhou写道:
对不起,如果这听起来很愚蠢。我是新手....
我可以在Visual Studio 2005 IDE中编译C程序吗?我写了简单的
Hello World。程序在其中:
---------------------------------- -
#include< stdio.h>
main()
{
printf(" hello,world!\ n");
}
----------- ---------------------------
当我运行它时,它给了我以下内容:
-------------------------------------- -----------------------------------
''HelloWorld2.exe'' :已加载
''D:\ VSS \Projects \ HelloWorld2 \ debug> \\ HelloLorld2.exe'',Binary没有用调试信息构建
。
''HelloWorld2.exe'':已加载''C:\ WINDOWS \ system32 \ antdll.dll'',无符号
已加载。
''HelloWorld2.exe'':已加载''C:\ WINDOWS \ system32 \ kernel32.dll'',无符号
已加载。
''HelloWorld2.exe'':已加载''C:\ WINDOWS \system32 \ apphelp.dll' ,没有符号
加载。
''HelloWorld2.exe'':已加载''C:\ WINDOWS \system32 \ version.dll'',无符号
已加载。
线程''Win32 Thread''(0x4e8)退出时代码为0(0x0)。
程序'' [5968] HelloWorld2.exe:Native''已退出代码0(0x0)。
------------------- -------------------------------------------------- ----
有什么建议吗?请指教。万分感谢!
问候,
Nick
Scooter写道:
是的你可以
请不要顶尖。你的回复属于以下或穿插
与适当修剪的报价。查看
新闻组中的大多数其他帖子,或:
< http://www.caliburn.nl/topposting.html>
" Scooter" < sr ******** @ netscape.com写信息
新闻:11 ********************** @ 11g2000cwr.googlegro ups.com ...
是的,你可以
该程序已经编译并正确处理。当您创建项目
时,您是否将其创建为控制台应用程序。还可以从不在ide中的命令行运行应用程序
。在ide中,程序
将结束并关闭控制台窗口。
Nicholas Zhou写道:
>抱歉,如果这听起来很愚蠢。我是新手....
我可以在Visual Studio 2005 IDE中编译C程序吗?我写了简单的Hello World和Hello World。程序在其中:
如果继续关于你的详细信息,你将会受到抨击
IDE,与ISO C无关。至少有一个正确的主要电话
这是
int main(无效)
那里肯定是一个带有微软一词的NG,在那里你会发现
你的问题找到了更好的回答。 LS
Sorry if this sounds stupid. I am a total newbie....
Can I compile C program in Visual Studio 2005 IDE? I wrote the simple
"Hello World" program in it:
------------------------------------
#include <stdio.h>
main()
{
printf("hello, world!\n");
}
--------------------------------------
When I run it, it gives me the following:
-------------------------------------------------------------------------
''HelloWorld2.exe'': Loaded
''D:\VS\Projects\HelloWorld2\debug\HelloWorld2.exe'' , Binary was not built
with debug information.
''HelloWorld2.exe'': Loaded ''C:\WINDOWS\system32\ntdll.dll'', No symbols
loaded.
''HelloWorld2.exe'': Loaded ''C:\WINDOWS\system32\kernel32.dll'', No symbols
loaded.
''HelloWorld2.exe'': Loaded ''C:\WINDOWS\system32\apphelp.dll'', No symbols
loaded.
''HelloWorld2.exe'': Loaded ''C:\WINDOWS\system32\version.dll'', No symbols
loaded.
The thread ''Win32 Thread'' (0x4e8) has exited with code 0 (0x0).
The program ''[5968] HelloWorld2.exe: Native'' has exited with code 0 (0x0).
-------------------------------------------------------------------------
Any suggestions? Please advice. Thanks a million!
Regards,
Nick
Yes you can
The program compiled and lin ked properly. When you created the project
did you create it as a console application. Also run the application
from the command line not inside the ide. inside the ide the program
will end and close the console window.
Nicholas Zhou wrote:Sorry if this sounds stupid. I am a total newbie....
Can I compile C program in Visual Studio 2005 IDE? I wrote the simple
"Hello World" program in it:
------------------------------------
#include <stdio.h>
main()
{
printf("hello, world!\n");
}
--------------------------------------
When I run it, it gives me the following:
-------------------------------------------------------------------------
''HelloWorld2.exe'': Loaded
''D:\VS\Projects\HelloWorld2\debug\HelloWorld2.exe'' , Binary was not built
with debug information.
''HelloWorld2.exe'': Loaded ''C:\WINDOWS\system32\ntdll.dll'', No symbols
loaded.
''HelloWorld2.exe'': Loaded ''C:\WINDOWS\system32\kernel32.dll'', No symbols
loaded.
''HelloWorld2.exe'': Loaded ''C:\WINDOWS\system32\apphelp.dll'', No symbols
loaded.
''HelloWorld2.exe'': Loaded ''C:\WINDOWS\system32\version.dll'', No symbols
loaded.
The thread ''Win32 Thread'' (0x4e8) has exited with code 0 (0x0).
The program ''[5968] HelloWorld2.exe: Native'' has exited with code 0 (0x0).
-------------------------------------------------------------------------
Any suggestions? Please advice. Thanks a million!
Regards,
Nick
Scooter wrote:
Yes you can
Please don''t top-post. Your replies belong following or interspersed
with properly trimmed quotes. See the majority of other posts in the
newsgroup, or:
<http://www.caliburn.nl/topposting.html>
"Scooter" <sr********@netscape.comwrote in message
news:11**********************@11g2000cwr.googlegro ups.com...Yes you can
The program compiled and lin ked properly. When you created the project
did you create it as a console application. Also run the application
from the command line not inside the ide. inside the ide the program
will end and close the console window.
Nicholas Zhou wrote:>Sorry if this sounds stupid. I am a total newbie....
Can I compile C program in Visual Studio 2005 IDE? I wrote the simple
"Hello World" program in it:
You''re gonna get flamed if you continue to go on about the details of your
IDE, which has nothing to do with ISO C. At least have a proper main call
which is
int main(void)
There''s certainly a NG with the word microsoft in it where you''ll find that
your questions find a better response. LS
这篇关于在Visual Studio 2005中编译C程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!