简体   繁体   English

我试图在 VS 中运行 c 的简单代码,但这表明,该怎么办?

[英]I was trying to run a simple code of c in VS ,but this shows,what to do?

我试图在 VS 中运行一个简单的 c 代码,但这表明,该怎么办??? I was trying to run a simple code of c in VS,but this shows,what to do???我试图在 VS 中运行 c 的简单代码,但这表明,该怎么办???

You selected the wrong project type.您选择了错误的项目类型。 If the linker expects WinMain() , you are building a Windows GUI program.如果 linker 需要WinMain() ,则您正在构建 Windows GUI 程序。 But your source is for a Console program.但是您的来源是控制台程序。

Try re-installing mingw62,gcc-g++尝试重新安装mingw62,gcc-g++

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我正在尝试在 VS 代码上运行 C,这就是终端上的内容。 我怎样才能解决这个问题? - I'm trying to run C on VS code and this is what's on terminal. How can I fix this? 如何为 C 运行 VS 代码 IDE? - How do I run the VS code IDE for C? 尝试在 vs code 中安装和运行 C++ 测试代码 - trying to install and run C++ test code in vs code 尝试在 VS 代码中运行 c 代码或使用 gcc 错误编译它 - Trying to run c code in VS code or compiling it using gcc error 我运行了一个简单的 c 代码来打印 Hello World; 但是它没有在 windows 的 vs 代码中显示 output; 虽然我安装了 minGW? - I have run a simple c code to print Hello World ; But It is not showing output in vs code in windows ; although I have minGW installed? 当我在 VScode 上运行此代码时,它显示“test.c 已停止工作”。 我试图练习合并排序 - When I run this code on VScode, it shows “test.c has stopped working”. I was trying to Practice merge sort 这个C代码试图做什么 - What does this c code trying to do 安装 gcc 后,如何使用 VS Code 运行 C 代码? - how do I run a C code using VS Code after installing gcc? 我正在尝试提高我的互相关算法的性能速度。 我可以做些什么来让我的 C 代码运行得更快? - I am trying to improve the performance speed of my cross-correlation algorithm. What things can I do to make my C code run faster? 我无法在 vs 代码终端中运行 c 代码 - I'm not able to run c code in vs code terminal
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM