How can I compile my cnet protocol source files?
You do not need to compile your protocol files yourself. Simply executing cnet TOPOLOGY will cause cnet to locate and compile your C source files and produce a shared object file in your working directory (e.g. protocol.cnet). This shared object is then dynamically linked with the cnet simulator at run-time. The system’s standard C compiler is used, preferably GNU’s gcc. All C error messages are reported by the compiler (not cnet). All fatal and warning messages should be eliminated before your protocol code can be considered syntactically correct. You will probably receive many more error messages than you’ve experienced before – the reason being that the compiler is invoked with extra compilation switches to be very pedantic (this is good for your soul and in fact is how you should always compile C code).