Home > Back-end >  Codeblocks how to add external header file
Codeblocks how to add external header file

Time:09-26

Use codeblocks is nearly a year, has been written by a single code program, establish a project to write directly knelt today, a total of six files, three CPP file (a include the header file, two class files), the three header files, I built after the project, build option path also added to the header file, source files are added to the project, but can't get at the end of the file, online to find along while method also useless, could you tell me the three source file is executed only contains the main function with respect to OK? What a great god taught here and thank you very much

CodePudding user response:

C + + source code is compiled separately, the execution time again from the beginning of the main function, if you are right, engineering and code can try again next to the compiler.
Before I use dev is only compile a single file, the result is your mingw has a problem,
For reference only
  • Related