zhedahht / CodingInterviewChinese2

《剑指Offer:名企面试官精讲典型编程面试题》第二版源代码
Other
5.32k stars 2.17k forks source link

How to build and run CommonParentInTree.cpp on macOS? #93

Open gongzelong0718 opened 1 year ago

gongzelong0718 commented 1 year ago
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (/Users/gongzelong/Algorithm/SwordToOffer/official_Cplusplus/68_CommonParentInTree/CommonParentInTree.cpp).C/C++(1696)
cannot open source file "..\Utilities\Tree.h"C/C++(1696)
/Users/gongzelong/Algorithm/SwordToOffer/official_Cplusplus/68_CommonParentInTree/CommonParentInTree.cpp:19:10: fatal error: '..\Utilities\Tree.h' file not found
#include "..\Utilities\Tree.h"
         ^~~~~~~~~~~~~~~~~~~~~
1 error generated.
[Finished in 1.0s with exit code 1]
[cmd: ['bash', '-c', "g++  '/Users/gongzelong/Algorithm/SwordToOffer/official_Cplusplus/68_CommonParentInTree/CommonParentInTree.cpp' -std=c++11 -stdlib=libc++ -o '/Users/gongzelong/Algorithm/SwordToOffer/official_Cplusplus/68_CommonParentInTree/CommonParentInTree' && '/Users/gongzelong/Algorithm/SwordToOffer/official_Cplusplus/68_CommonParentInTree/CommonParentInTree'"]]
[dir: /Users/gongzelong/Algorithm/SwordToOffer/official_Cplusplus/68_CommonParentInTree]
[path: /usr/bin:/bin:/usr/sbin:/sbin]