In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
What is the opinion and help of VS2003 makefile? I believe that many inexperienced people are at a loss about it. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
The following is a "HelloWorld!" for beginners. The level of makefile cannot deny the complexity and power of the advanced features of VS2003makefile.
The makefile that I can understand so far is just a batch program. (like the shell file under Linux) the key processing step of makefile is to call the compiler to perform the compilation, while under windows it is cl,Linux +. The make program under Windows is make under nmake.exe,Linux. To perform compilation, under windows, under cl,Linux, it is glossy +. The make program under Windows is make under nmake.exe,Linux.
Let's write a simple C program first:
# include int main () {printf ("hello world!\ n"); getchar (); return 1;}
Save this program as test.cpp.
Perform compilation under WINDOWS (execute c:\ programe files\ vs2003\ Vc7\ bin\ vcvars32.bat first): cl test.cpp
Perform compilation under Linux: Gmail + test.cpp
It's very simple! Then write the makefile file:
Anyname: cl test.cpp # under linux, the previous line is written as cl + test.cpp # Note the line cl: the indentation in front of it is a tab key, and it must be tab. The anyname of the line can be any name, but with a colon.
Compile using NMAKE under WINDOWS (execute c:\ programe files\ vs2003\ Vc7\ bin\ vcvars32.bat first): nmake.exe
Compile with MAKE under Linux: VS2003makefile
Oh, it's easy, isn't it? In fact, most of the VS2003makefile is the definition of variables, and eventually the values of these variables are used as parameters of cl or gathers +.
After reading the above, have you mastered the insight and help of VS2003 makefile? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.