简体   繁体   中英

build a c++ program with makefile in windows

I wrote a little c++ program with visual studio. I have to build that program with a shell script. For that I installed cygwin. How can I build a program, that uses an environment variable for the boost-library?

  1. Install boost from http://www.boost.org/users/download/
  2. I'm not sure of the system that you use to compile C++ but thing is for sure, you need to create a makefile for your program.
  3. After makefile is created, add to the flags the following:

    -lboost_system -lboost_locale

Good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM