Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Inclusion of cxxabi.h and iostream causes compile failure

steveireJan 1 2015 — edited Jan 20 2015

stephen@hal:/tmp$ cat test.cpp

#include <iostream>

#include <cxxabi.h>

int main()

{

  return 0;

}

stephen@hal:/tmp$ /home/stephen/solaris-studio/SolarisStudio12.4-linux-x86-bin/solarisstudio12.4/bin/CC -std=c++03 -Wp,-I/usr/include/x86_64-linux-gnu/ -c test.cpp

"/home/stephen/solaris-studio/SolarisStudio12.4-linux-x86-bin/solarisstudio12.4/lib/compilers/CC-gcc/include/c++/4.8.2/cxxabi.h", line 131: Error: Only one of a set of overloaded functions can be extern "C".

1 Error(s) detected.

This happens on at least ubuntu and fedora.

This post has been answered by Steve.Clamage-Oracle on Jan 2 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 17 2015
Added on Jan 1 2015
7 comments
1,795 views