So I recently installed MinGW via the latest version of nuwen's MinGW distribution that includes the boost C++ libraries. Specifically, I was after the scoped_ptr that the boost library provides. However, when I try to include the scoped_ptr (#include <boost/scoped_ptr.hpp>
) in my header, the compiler throws
error: boost/scoped_ptr.hpp: No such file or directory
Makefile:
compile:
g++ -o gen/cavestory src/**.cc
run:
gen/cavestory
Also, I added a back version of SDL to MinGW's include directory under SDL/**. All of the header files are there, I've checked, and the compiler throws a similar error on my include SDL/SDL.h>
.
Things I've tried:
Every variation of <>
and ""
in my include statements
Removing the .h
and .hpp
Setting the compiler flags to specifically search the directories containing the headers with g++ -I
This code was compiling with an earlier version of MinGW, and the author of the MinGw distrobution specifically states that he changed the g++ compiler options to default to C++11, so I think it's very likely that it's something to do with that. My google-fu has not yeilded results, though.