Re: Is there a difference between gcc and g++ for COPRTHR?
Posted:
Wed Apr 27, 2016 11:37 pm
by nickoppen
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
Re: Is there a difference between gcc and g++ for COPRTHR?
Posted:
Fri Apr 29, 2016 2:17 am
by nickoppen
All good. As soon as I read "name mangling" it all came flooding back. It is looking for a C++ style name in the library but reporting an error using the "human readable" name used in the code.
Thank you for you help.
nick