In C or C++ if I have a program with the following structure:
..includes..
..defines..
void function_one(int i) {
...
}
void function_two(const char * str) {
...
}
int main(int argc, char *argv[]) {
...
}
Saved as main.c/cpp
.
How can I write a new file test.c/cpp
where I can make calls to the functions in the main.c/cpp
?
How am I am doing it now:
Compiler flag: -etest_main
Files to compile: main.c test.c
Running test output: Blank no errors
My test main prints "here" but im not sure why the test executable isnt.