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

前端 未结 10 2418
無奈伤痛
無奈伤痛 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:40

    In a bourne shell:

    make > my.log 2>&1

    I.e. > redirects stdout, 2>&1 redirects stderr to the same place as stdout

提交回复
热议问题