Using G++ to compile multiple .cpp and .h files

前端 未结 11 841
耶瑟儿~
耶瑟儿~ 2020-11-22 09:43

I\'ve just inherited some C++ code that was written poorly with one cpp file which contained the main and a bunch of other functions. There are also .h files th

11条回答
  •  死守一世寂寞
    2020-11-22 10:24

    I used to use a custom Makefile that compiled all the files in current directory, but I had to copy it in every directory I needed it, everytime.

    So I created my own tool - Universal Compiler which made the process much easier when compile many files.

提交回复
热议问题