using types from other projects

Hey guys I have been trying to fix this problem for over an hour now,I have researched it and tried some solutions which I mainly found on stack overflow but none of them work

first I copied and pasted the Date.h and Year.h headers from the include directory I made for my project Date into the include directory in Book the project I'm using now

didn't work tells me it couldn't find the file

next I tried going into build options and manually including the path to the header files there

didn't work

next I tried including the full path


1
2
 
#include <"C:\Users\User\DateTwo\include\Date.h"> 


didn't work

got this error

C:\Users\User\Book\main.cpp|2|fatal error: C:/Program Files (x86)/CodeBlocks/MinGW/lib/gcc/mingw32/4.9.2/include/c++/"C:/Users/User/DateTwo/include/Date.h": Invalid argument|

as above I am using codeblocks IDE with mingW suite

thanks
#include "C:/Users/User/DateTwo/include/Date.h"
Last edited on
thanks repeater,I forgot the <> brackets are used for the compilers include folder

it worked but when I tried adding it it have me an error saying it couldn't find Year.h

Year.h is also in the Dates project and it is #included in the Date.h header

I tried also including Year.h but to no avail
1
2
#include "C:/Users/User/DateTwo/include/Year.h"
#include "C:/Users/User/DateTwo/include/Date.h" 


thanks

Topic archived. No new replies allowed.