fork download
  1. #include <stdio.h>
  2.  
  3. #define SEARCH_PATH /home/user/ordner/bla/
  4.  
  5. #define STR(X) #X
  6. #define STR2(X) STR(X)
  7. #define CONCAT(X,Y) X##Y
  8. #define EXPAND(x) x
  9.  
  10. #define MAKE_PATH(x) STR2(EXPAND(SEARCH_PATH)x)
  11. #define MAKRO(x) MAKE_PATH(x)
  12.  
  13. #include MAKRO(fileA.hpp)
  14.  
  15. int main(void) {
  16. printf("%s", MAKRO(fileA.hpp));
  17. return 0;
  18. }
  19.  
Compilation error #stdin compilation error #stdout 0s 2156KB
stdin
Standard input is empty
compilation info
prog.c:13:26: fatal error: /home/user/ordner/bla/fileA.hpp: No such file or directory
compilation terminated.
stdout
Standard output is empty