I want to include header files in my library project in OpenSSL's way. But I can't make it work.
Suppose my library project looks like this:
C:\MYLIB
├─ A
│ ├─A.h
│ └─A.c
├─ B
│ ├─B.h
│ └─B.c
├─ C
│ ├─C.h
│ └─C.c
└─ include
└─mylib
├─A.h
├─B.h
└─C.h
Now I have a new project which includes the header files in mylib. I have added C:\MYLIB\include to the additional include directories. The include statement in my new project are:
#include <mylib\a.h>
#include <mylib\b.h>
where mylib\a.h contains only one line to direct to the real A\A.h:
../../A/A.h
and mylib\b.h contains:
../../B.B.h
Just like the OpenSSL's way. However, my VS2010 is complaining "error C2059: syntax error:'.', while the error leads to first '.' in mylib\a.h.
Does these include make sense? How should I include those header files from mylib correctly?