[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Parallella Community • View topic - Is there a difference between gcc and g++ for COPRTHR?
Page 1 of 1

Is there a difference between gcc and g++ for COPRTHR?

PostPosted: Wed Apr 27, 2016 11:41 am
by nickoppen

Re: Is there a difference between gcc and g++ for COPRTHR?

PostPosted: Wed Apr 27, 2016 12:48 pm
by sebraa

Re: Is there a difference between gcc and g++ for COPRTHR?

PostPosted: 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?

PostPosted: Thu Apr 28, 2016 12:31 pm
by sebraa

Re: Is there a difference between gcc and g++ for COPRTHR?

PostPosted: 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

Re: Is there a difference between gcc and g++ for COPRTHR?

PostPosted: Fri Apr 29, 2016 12:30 pm
by sebraa
You're welcome. ;-)