Leon Anavi
IT Tips && Tricks

Administration

Created: 18.08.2009 12:29 Last Modified: 18.08.2009 17:25 Views: 9895
Keywords: Boost, Fedora, g++, gcc, Linux, troubleshooting

Troubleshooting Boost C++ Libraries and g++ under Linux

Problem: Unable to compile C++ files

Description

An error occurs when C++ files are compiled.
gcc: error trying to exec 'cc1plus': execvp: No such file or directory

Solution

To fix the problem log as root user and install gcc-c++. Fedora users can do it by executing the following command:
yum install gcc-c++

Problem: Using Boost Libraries

Description

Unable to locate and use Boost files.
error: boost/shared_ptr.hpp: No such file or directory
error: ‘boost’ has not been declared

Solution

Log as root and install Boost libraries.
yum install boost*


  Home | About | Contact | Disclaimer | Sitemap © 2009-2022 Leon Anavi. All rights reserved.