Relative Content

Tag Archive for c++g++

Installing c++ standard library files on ubuntu

To give a background, there was a tuple file in /usr/include/c++ which got corrupted. So my compiler used to give input/output error. I downloaded tuple file from web from c++ library and replaced it with my corrupted file. But now error was different. My professor asked me to reinstall my library. So for that i removed /usr/include/c++ folder that had all library files. Now when i reinstalled g++ i thought it would automatically get the header files i.e /usr/include/c++ folder but i was wrong. It does not get installed. I have tried to find solution and people saying install -dev version etc but i could not find the commands to install those header files. Kindly help.

Expected ‘)’ before ‘*’ in constructor even though there’s no reason a ‘)’ should be there in c++

I’m writing a small game engine project and I’m having trouble with this constructor. For some weird reason g++ says I need to add a ‘)’ in a spot where there’s no reason to add one. Neither I nor Visual Studio Code see anything wrong with it and I’ve been looking at this for 20 minutes trying to see if something is wrong. The error is occurring in the PhysicsObject and Renderable constructors.