Fix # includes <> for GCC (Code :: Blocks)

I am working with some code written for another compiler / linker and it includes such files:

#include <Engine/Graphics/Sprite.h>

from anywhere in the project.

The project contains such a file on this path (from the root of the project), but when I create, I get a file that was not found.

How can I fix all this without going over and doing it all manually?

+3
source share
4 answers

I'm not quite sure if I understand your explanation of what you mean "from the root of the project." But good...

#include < > , , , -I.

Project- > Build Options- > Search Directories- > Compiler

, "".

http://msdn.microsoft.com/en-us/library/36k2cdd4(v=vs.71).aspx

: - #include "path/somefile.h" #include <pathsomefile.h>

+10

,

#include "Engine/Graphics/Sprite.h"

( ).

#include , /, , (,/usr/include), .

, , #include, , Engine/.... , include -I.

+3

, #include <filename> . . #include "filename" .

?

+1

, , .

+1

All Articles