[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?

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

Moderator: dar

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

Postby nickoppen » Wed Apr 27, 2016 11:41 am

Sharing is what makes the internet Great!
User avatar
nickoppen
 
Posts: 266
Joined: Mon Dec 17, 2012 3:21 am
Location: Sydney NSW, Australia

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

Postby sebraa » Wed Apr 27, 2016 12:48 pm

sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm

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

Postby nickoppen » Wed Apr 27, 2016 11:37 pm

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
Sharing is what makes the internet Great!
User avatar
nickoppen
 
Posts: 266
Joined: Mon Dec 17, 2012 3:21 am
Location: Sydney NSW, Australia

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

Postby sebraa » Thu Apr 28, 2016 12:31 pm

sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm

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

Postby nickoppen » Fri Apr 29, 2016 2:17 am

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
Sharing is what makes the internet Great!
User avatar
nickoppen
 
Posts: 266
Joined: Mon Dec 17, 2012 3:21 am
Location: Sydney NSW, Australia

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

Postby sebraa » Fri Apr 29, 2016 12:30 pm

You're welcome. ;-)
sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm


Return to OpenCL

Who is online

Users browsing this forum: No registered users and 7 guests

cron