Skip to content

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

@gongzelong0718

Description

@gongzelong0718
#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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions