How do I capture all of my compiler's output to a file?

前端 未结 10 2427
無奈伤痛
無奈伤痛 2020-12-23 09:16

I\'m building an opensource project from source (CPP) in Linux. This is the order:

$CFLAGS=\"-g Wall\" CXXFLAGS=\"-g Wall\" ../trunk/configure --prefix=/some         


        
10条回答
  •  生来不讨喜
    2020-12-23 09:39

    Based on an earlier reply by @dmckee

    make | tee makelog.txt
    

    This gives you real-time scrolling output while compiling, and simultaneously write to the makelog.txt file.

提交回复
热议问题