An inline function, if it is to be used in several translation units, should be declared and defined as "static inline" (plain C) or "inline" (C++) in the header file. This is the only correct and portable way of doing it, as far as I know.Steve Maughan wrote:Hi James,
Thanks. They are already in "procs.h". Apologies for the newbie questions but can I ask where you put them so that it compiled? Also, what environment did you use to compile it?
Thanks,
Steve
If MSVC accepts things like "extern inline" , or even an inline function declared and defined in bitboard.c but used in another translation unit without even being declared external, then the compiler is at fault and should reject this code with an error message.
