Merge C++ files into a single source file

后端 未结 7 1629
慢半拍i
慢半拍i 2020-12-10 01:27

I have a c++ project with multiple source files and multiple header files. I want to submit my project for a programming contest which requires a single source file. Is the

7条回答
  •  半阙折子戏
    2020-12-10 02:02

    well, this is possiable, I have seen many project combine source files to single .h and .c/.cpp, such as sqlite

    but the code must have some limits, such as you should not have static global variable in one of your source codes.

    there may not have a generic tool for combine sources.you should write one base on your code.

    here is some examples

    gaclib source pack tool

提交回复
热议问题