Skip to content

How to add include folder to PATH + mongo/platform/basic.h NOT FOUND #2

@chfakht

Description

@chfakht

Hi,
i'm trying to run an example found here
https://github.com/mongodb/mongo-cxx-driver/wiki/Tutorial
Firstly , i have to replace all files into their correct folder like replacing #include "mongo/pch.h" by #include "/opt/mongo/include/pch.h" in every file ,
so how can i add the /opt/mongo/include/ foder to the PATH variable
i tried several methods but on them works
PATH=$PATH:~/opt/mongo/include/

PATH=~/opt/mongo/include/:$PATH

CPLUS_INCLUDE_PATH=/opt/mongo/include

export CPLUS_INCLUDE_PATH

export PATH=$PATH:/opt/mongo/include

nano /etc/ld.so.conf

added the include path

/opt/mongo/include

sudo ldconfig

Another thing is that i can't find the file mongo/platform/basic.h in pch.h 👎 am i missing something ? i have re-installed mongodb but still haven't found this file

i appreciate all your work guys , thanks

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