Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Must be possible to build project on C-file basis #11

Open
powerbroker opened this issue Jun 21, 2023 · 0 comments
Open

Must be possible to build project on C-file basis #11

powerbroker opened this issue Jun 21, 2023 · 0 comments

Comments

@powerbroker
Copy link

to compile e.g. AutoCheck.c it is necessary to set up a context where "TransistorTester.h" is forcibly-included and MAIN_C macro(from main.c) is defined. otherwise compilation fails and build does not accomplish.

by default, c project is compiled on compilation unit('.c'-file) basis, and linked from compiled objects into executable. so, separate compiling of each compilation unit('.c'-file) is possible.

required header files - e.g. "Transistortester.h" - must be explicitly referenced from compilation units("AutoCheck.c") with "#include" directive. there must be no artificial obstacles preventing compilation of e.g. ("AutoCheck.c") out of another compilation unit - "main.c" context, like "#if defined (MAIN_C) ... #endif" in referenced "Transistortester.h"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant