0

I read, that the best way to place functions is to create .h file with function prototypes, some .c file with those functions (including their bodies) and normal .c file with main(). This is how my simple project looks: Project it works properly, but how Visual Studio knows how to link them properly? In GCC I can control the order while linking.

4

1 回答 1

1

您不需要控制顺序 - 编译器会这样做。如果文件在项目中,链接器将完成它的工作。

于 2013-05-20T12:47:56.417 回答