A file called test.cpp in ~/test code is
#include <stdio.h>
#include "add.h"
int main(){
printf("%d\n",add(1,2));
}
file add.h is in ~/test/1, which is just a subdirctory
code is
int add(int a, int b){return a+b;}
then i use export
export PATH=$PATH:~/test/1
Is there any way to fix that?
not using #include "1/test"
any help is much appreciated