我在用vc++6.0编程的时候编译没问题 连接的时候用报错 上面说错误是ant编译找不到符号可执行文件.e

各位大侠 帮帮忙 好嘛 我在用 vc6.0编程时 我编的程序 ,在编译时没有出错 ,在运行时出现了下列问题_百度知道
各位大侠 帮帮忙 好嘛 我在用 vc6.0编程时 我编的程序 ,在编译时没有出错 ,在运行时出现了下列问题
--------------------Configuration: 12 - Wi畅定扳剐殖溉帮税爆粳n32 Debug--------------------Linking...LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _mainDebug/12.exe : fatal error LNK1120: 1 unresolved externals执行 link.exe 时出错.12.exe - 1 error(s), 0 warning(s)
请各位大侠帮帮忙!谢谢了
你的程序在连接时找不到main函数,估计是你把m畅定扳剐殖溉帮税爆粳ain这个单词拼写错了。顺便说一下,不是运行时出错,是连接时出的错误。
其他类似问题
为您推荐:
其他2条回答
主要是main()函数有问题,修改如下:
int main(int argc, char* argv[])
cout&&&Please enter the number of integer!&;
a=new int[num];
// a=(int*)malloc(sizeof(int)*num);
if(a==NULL)
cout&&&Malloc problem,exit! &&&
return -1;
for(i=0;i&i++)
cin&&a[num];
// cout&&a[num]&&
sortArray(a,num,ascending);//指针指向函数,将函数作为另一个函数的参数进行传递
cout&&&After ascending sort:&&&
for(i=0;i&i++)
cout&&*(a+i)&&' '&&
//笔误,i在变化,所以*(a+i);
sortArray(a,num,descen...
main写错了,前面多了个下划线
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁The page is temporarily unavailable
nginx error!
The page you are looking for is temporarily unavailable.
Please try again later.
Website Administrator
Something has triggered an error on your
This is the default error page for
nginx that is distributed with
It is located
/usr/share/nginx/html/50x.html
You should customize this error page for your own
site or edit the error_page directive in
the nginx configuration file
/etc/nginx/nginx.conf.The page is temporarily unavailable
nginx error!
The page you are looking for is temporarily unavailable.
Please try again later.
Website Administrator
Something has triggered an error on your
This is the default error page for
nginx that is distributed with
It is located
/usr/share/nginx/html/50x.html
You should customize this error page for your own
site or edit the error_page directive in
the nginx configuration file
/etc/nginx/nginx.conf.使用vc6.0编程时:编译的时候没有问题,但是运行时就提示有一个错误,执行link.exe错误_百度知道
使用vc6.0编程时:编译的时候没有问题,但是运行时就提示有一个错误,执行link.exe错误
com/zhidao/wh%3D450%2C600/sign=a61aedbc2adda3cc0bb1b/a1ec08fa513dc7e51fbb2fb&/zhidao/pic/item/a1ec08fa513dc7e51fbb2fb.jpg" target="_blank" title="点击查看大图" class="ikqb_img_alink"><img class="ikqb_img" src="http://f.baidu://f.jpg" esrc="http./zhidao/wh%3D600%2C800/sign=3d8e4de735adcbeff02e5/a1ec08fa513dc7e51fbb2fb.<a href="http://f.hiphotos.hiphotos
提问者采纳
h&gt.h加上 #inlcude &stdio没有包含头文件 stdio
对不起,我少写了,但是我加了,也有时会遇到这样的情况
发一个清晰点图根上图提示的错误信息分析,就是少加了stdio.h如果有其它原因,需要再看其错误提示。
错误是这样的
这个错误是因为工程建错了,应该创建Windows控制台应用程序
也就是Windows Console Application
提问者评价
太给力了,你的回答完美的解决了我的问题!
来自团队:
其他类似问题
为您推荐:
其他1条回答
新建一个工程,把代码拷贝过去
为什么要新建一个,我每次都会遇到这样的问题,都要重新建吗?
不可能每次都这样,你可以用一个简单的程序测试一下
一般我第一次启电脑就没问题,是不是文件路径的原因
文件路径不影响
那是不是因为上一个程序没有关闭,还是不兼容
都不是,因为能编译
我试过你说的办法,还有就是关闭后从那个文件夹的文件进入可以运行
不知道了什么问题
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁用vc++6.0的时候编译,链接都没问题,点击执行操作的时候却没反应,但是却能生成可执行文件,点击可执行文件程序可以执行,问一下大家这是什么问题呢
[问题点数:40分]
用vc++6.0的时候编译,链接都没问题,点击执行操作的时候却没反应,但是却能生成可执行文件,点击可执行文件程序可以执行,问一下大家这是什么问题呢
[问题点数:40分]
不显示删除回复
显示所有回复
显示星级回复
显示得分回复
只显示楼主
2013年 总版技术专家分年内排行榜第三
2012年 总版技术专家分年内排行榜第七
匿名用户不能发表回复!|
每天回帖即可获得10分可用分!小技巧:
你还可以输入10000个字符
(Ctrl+Enter)
请遵守CSDN,不得违反国家法律法规。
转载文章请注明出自“CSDN(www.csdn.net)”。如是商业用途请联系原作者。

我要回帖

更多关于 matlab找不到c编译器 的文章

 

随机推荐