Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
すべての c/cpp ファイルは、他のモジュールで定義された関数を呼び出すことができ、リンク フェーズのみがそれらを解決します。これらの c/cpp ファイルは、コンパイル シーケンスに関して相互に依存しません。
私の質問は、ある c/cpp ファイルが別のファイルに依存する必要がある場合があるので、SConstruct で次のように指定する必要があるかどうかです。
hello=Program("hello.c") Depends(hello,'other_file')
ありがとう!