Thanks sebraa, it's been a long time since I wrote any C and I was never any good at it.
My source code compiles now but I get a linker error. It can't find any of the coprthr libraries. I've got /usr/local/browndeer/lib in the linker search path where all of those libraries live. I seem to recall (from a past life) that there was a thing called extern "C" or something similar. Do I have to do something different for the linker?
Sorry about these dumb questions. It's been 15 years since I wrote code professionally. I'm in the mining industry and the most technical thing I do is Excel spreadsheets.
nick