Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add user defined C++ path to sublime text #966

Closed
Prateek0601 opened this issue Feb 10, 2018 · 12 comments
Closed

How to add user defined C++ path to sublime text #966

Prateek0601 opened this issue Feb 10, 2018 · 12 comments

Comments

@Prateek0601
Copy link

#I am using C++ Programming language.

#Windows 10 1709 (build 16299.192).

#GCC(g++)4.8.0.

#I want to use my own Modules to my Program so how could i add that library to sublime text 3.I tried to add the path to the 'Environment variables'but still shows error'.
check

check

@whackashoe
Copy link
Contributor

I think you might have better luck with stackoverflow.com for this one. It doesn't seem like this issue is specific to this library. If g++ had the flag -I F:\Workspace\Modules it should work.

@nlohmann
Copy link
Owner

I agree with @whackashoe. Beside that - can you compile your code outside Sublime?

@Prateek0601
Copy link
Author

No i can't tried in cmd showing me the same error @nlohmann

@nlohmann
Copy link
Owner

@Prateek0601 Did you try #966 (comment) ?

@Prateek0601
Copy link
Author

like this g++ F:/workspace/function_check.cpp

@nlohmann
Copy link
Owner

You need to pass -I F:\Workspace\Modules to gcc.

@Prateek0601
Copy link
Author

how to pass -I F:\Workspace\Modules to gcc ?

@nlohmann
Copy link
Owner

I have no idea how Sublime Text is executing GCC, so I have no idea how to pass include directories there. When you execute GCC in the shell, just add that parameter.

Note this all has nothing to do with this library...

@Prateek0601
Copy link
Author

Would you like to show me with a screenshot please ?

@nlohmann
Copy link
Owner

I am sorry, but I cannot provide this kind of guidance. Please open a question at StackOverflow for this.

@Prateek0601
Copy link
Author

Got the answer: "C++ does not support modular programming"

@OvermindDL1
Copy link

Got the answer: "C++ does not support modular programming"

Uh...what? o.O

That's what libraries 'are'... O.o

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants