错误:“未定义引用`_WinMain @ 16'”在Cygwin中编译时 [英] ERROR: "undefined reference to `_WinMain@16'" when compiling in Cygwin
问题描述
你好那里:)
我一直在我刚刚完成的程序中使用Visual Studio,但是当我尝试使用基于unix的编译器时我需要编译它在cygwin中,我收到以下错误:
未定义引用`_WinMain @ 16''
我试图寻找一种解决方法,虽然我不是编程大师,但我发现很难理解关于这个主题的讨论:)
感谢任何帮助。
Hello there :)
I have been using Visual Studio on a program which I have just completed, however I need to have it compiling using a unix based compiler, when I try in cygwin, I get the following error:
undefined reference to `_WinMain@16''
I have tried searching for a workaround, although I am not a programming guru, and I find it difficult to comprehend the discussions on this topic :)
Any help is appreciated.
推荐答案
Hello there :)
我一直在我刚刚完成的程序中使用Visual Studio,不过我需要使用基于unix的编译器进行编译,当我在cygwin中尝试时,我收到以下错误:
未定义引用`_WinMain @ 16''
我试过寻找一种解决方法,虽然我不是编程大师,但我觉得很难理解关于这个主题的讨论:)
任何帮助表示赞赏。
Hello there :)
I have been using Visual Studio on a program which I have just completed, however I need to have it compiling using a unix based compiler, when I try in cygwin, I get the following error:
undefined reference to `_WinMain@16''
I have tried searching for a workaround, although I am not a programming guru, and I find it difficult to comprehend the discussions on this topic :)
Any help is appreciated.
你的项目中有WinMain吗?
Savage
Do you have WinMain in your project?
Savage
Hello there :)
我一直在我刚刚完成的程序中使用Visual Studio,但是我需要使用一个程序进行编译基于unix的编译器,当我在cygwin中尝试时,我收到以下错误:
未定义引用`_WinMain @ 16''
我虽然我不是编程大师,但我发现很难理解关于这个主题的讨论:)
任何帮助都表示赞赏。
Hello there :)
I have been using Visual Studio on a program which I have just completed, however I need to have it compiling using a unix based compiler, when I try in cygwin, I get the following error:
undefined reference to `_WinMain@16''
I have tried searching for a workaround, although I am not a programming guru, and I find it difficult to comprehend the discussions on this topic :)
Any help is appreciated.
你的代码是否有一个主要内容。
我想如果你放一个主它将被解决。
谢谢
Raghuram
Hi,
Does ur code have a main in it.
I think if u put a main it will be solved.
Thanks
Raghuram
你的代码是否有一个主要内容。
我想如果你把一个主要它将被解决。
谢谢
Raghuram
Hi,
Does ur code have a main in it.
I think if u put a main it will be solved.
Thanks
Raghuram
谢谢你的回复。
是的,它有一个主要功能。
Thankyou for the replies.
yes it has a main function.
这篇关于错误:“未定义引用`_WinMain @ 16'”在Cygwin中编译时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!