I read up on the object files and a bit more on the compiling and linking process. To understand things better, I am using a commandline .bat file to explicitly compile and link. I will study the command line options. My current understanding is that I have two options:
- link the object files into one executable
- keep the executable (in this case testMessaging2.exe) separate from messaging.o but this will require this file in order to be able to run testMessaging2.exe
One question though: In the .c file, there is a struct like this:
Code:
struct order {
int ID;
char dir[3];
int actual_size;
int filled_size;
float price;
char instr[5];
};
From what I read here and there, I should declare this in the .h file as
Is that correct?
Thanks for the help above, going to give it a try.