Compiling multiple C files with gcc

后端 未结 4 1119
予麋鹿
予麋鹿 2020-12-06 00:08

I have two files, main.o and modules.o, and I\'m trying to compile them so that main.o can call functions in modules.o. I

4条回答
  •  孤城傲影
    2020-12-06 00:50

    You should be including .h files which are "headers". So if your main file is using modules then you should include module's header file.

提交回复
热议问题