本文介绍了救命的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



初学者尝试使用bcc32编译器在Vide中编译这个简单的程序。

我在尝试构建时得到这个。


!错误:未解析的外部''WinMain''引用

C:\ BORLAND \ BCC55 \ LIB \C0W32.OBJ

问题可能是什么?


#include< stdio.h>

void main()

{

char name [20];

char color [20];

printf(你叫什么名字?);

}


beginner trying to compile this simple program in Vide with bcc32 compiler.
I get this when I try to build.

! Error: Unresolved external ''WinMain'' referenced from
C:\BORLAND\BCC55\LIB\C0W32.OBJ
what could the problem be ??


#include <stdio.h>
void main()
{
char name[20];
char color[20];
printf("what is your name?");
}

推荐答案



[snip]


应该有一些选项来构建一个非Windows应用程序,可能是一个叫做控制台应用程序的
a, IIRC bcc有一个comandline选项-tWC

来执行此操作。


如果VIDE允许您通过命令行选项,请在命令中键入bcc32 -h

提示找出有哪些选项。


我把borland newsgroups进入并获得此信息:



HTH。


Rob。

-


[snip]

There should be some option to build a non-windows application, possibly
a called a console application, IIRC bcc has an comandline option -tWC
to do this.

If VIDE lets you pass command line options type bcc32 -h at a command
prompt to find out what options there are.

I put "borland newsgroups" into http://www.google.co.uk and got this:
http://info.borland.com/newsgroups/

HTH.

Rob.
--
http://www.victim-prime.dsl.pipex.com/


这篇关于救命的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 17:08