从零开始,学习windows编程(6)--改换entry,link错误的简单分析
还是那个hello.c程序,我们将其小修改一下,来开始今天的话题。
1 #include <stdio.h>2 3 int myentry()4 {5 printf("hello world");6 return 0;7 }
可以看到,我将原来main的位置换成了myentry,这会有什么结果发生呢?
D:\test>cl /c hello.c
http://www.cyqdata.cn/cnblogs/article-detail-40391