I have the following folders inside /usr/include/c++:
4.6
4.7
4.8
4.9
I want to run a program but that program gives me an error while it uses 4.6. I want it to use 4.9, therefore, I removed 4.6. Now I am getting this error:
'iostream' file not found
How do I fix this? How do I use 4.9? I am using Ubuntu 12.04.
have you tried adding
export CPATH=/usr/include/c++/4.9:$CPATH
in your ~/.bashrc file?
because I think this might be a problem with your include path not containing your /usr/include/c++/4.9 folder
Related
I create a pytorch extention, followed by this link
but it throws out the error that
fatal error: torch/extension.h: No such file or directory.
ubuntu 18.04
code::blocks 17.04
gcc 7.4.0
#include <torch/extension.h>
I expect the code to run.
Is there any document to fix this problem?
is the canonical header file that create Python bindings for C++/Cuda extensions.
So Try upgrading the version of Pytorch if it's not in newest version.
I Installed protobuffer 3.3.0 form a source code instead of version 2.6.1 used "make" to make caffe, tested it, and tried to compile faster_rcnn_cplusplus
Unfortunately it gives ma an error:
/home/adzhus/Workspace/Faster-RCNN-CPP-1/faster_rcnn_cplusplus/py-faster-rcnn/caffe-fast-rcnn/include/caffe/proto/caffe.pb.h:17:2: error: #error This file was generated by an older version of protoc which is...
Path is seems to be correct.
I also checked protoc --version which gives me libprotoc 3.3.0, but for some reason apt-get upgrade libprotobuf-dev gives me ibprotobuf-dev is already the newest version (2.6.1-1.3).
Could someone,please, advice how to fix the compilation error ?
Problem is solved for me.
I just copied caffe.pb.h from ...caffe-fast-rcnn/build/src/caffe/proto to ...caffe-fast-rcnn/include/caffe/proto
While trying to set up OF on eclipse (linux mint 17), I keep getting the following error :
g++: error: unrecognized command line option ‘-std=c++14’
I cannot find a solution online. I have tried updating my g++, replacing my libs/frameworks/video files with the latest on github, but nothing seems to work.
Though this issue has been closed here, i am unable to solve mine.
Is there a way to change the make file so that it builds successfully?
g++ doesn't support -std=c++14 until 4.9
See (for example) https://askubuntu.com/questions/428198/getting-installing-gcc-g-4-9-on-ubuntu for how to install 4.9 on Ubuntu
I use g++ (GCC) 4.7.2. on Windows 7, 64-bit version.
downloaded from http://nuwen.net/mingw.html
I tried to use the "-fopenmp" flag and got the error:
g++: error: libgomp.spec: No such file or directory
I can't find the file anywhere on my system. Do I need to re-install something? Can I just throw a file somewhere?
You could try installing TDM-GCC, which looks as though it includes OpenMP.
There's also Sezero's personal build.
I had a similar problem. I got it working installing one of the version at the following discussion.
Which version of MinGW should I use
I don't have access to my windows machine now so I don't know which version I used but I can check on Monday if you don't have it working by then.
It might have been this one.
http://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/
I just downloaded and installed Qt Creator.
I have not messed with the PATH or any other settings.
But when I try to run a Qt GUI Application project, it gives the following error:
cc1plus.exe:-1: error: error: unrecognized command line option "-fno-keep-inline-dllexport"
The output says:
Error while building/deploying project ProjectFirst (kit: Desktop Qt
5.0.1 MinGW 32bit) When executing step 'Make'
I don't understand why this is happening. I looked it up online a lot before asking, but couldn't find anything.
I've just found the problem on my friend's computer the same as yours.
Type g++ --version to see what g++ is taking by default from your path.
If it is 4.4.* (<= 4.7.2) then found that old g++ and remove it to the trash.
Usually it goes with Perl package, needed by Qt configure.
Then return to Console and try g++ --version again
if it not 4.7.2 then lookfor old g++ again and remove it.
If it is written g++ : command not found or something like that - change your PATH variable.
Don't forget to reboot your computer after changing it.
When you got g++ --version with 4.7.2, look forward to having success.
Try to use nmake, not mingw32-make
The problem is that you are using the wrong mingw32 installation (an older version).
In order to solve this, check that the Kit you use has detected the correct Mingw version (this should be 4.7, which is located inside the qt installation tools directory).