Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » environment variables to #define(environment variables to #define)
environment variables to #define [message #1844347] Fri, 10 September 2021 04:14 Go to next message
Eclipse UserFriend
Hi,
on my eclipse project, in C++Build, in Environment, I have variables, for examples a variable name SDK_VERSION that has value X.X.X
I would like to retrieve this variable in my c++ project, is it possible?
I Mean, I can push it in a .h file, with a #define, but I was looking for something that does it automatically.
Would it be possible?
Thanks
Re: environment variables to #define [message #1844367 is a reply to message #1844347] Sat, 11 September 2021 05:13 Go to previous message
Eclipse UserFriend
This is off-topic for this forum.

You are essentially asking
1. How do I get my program to use environment variables?
2. Knowing the answer to (1), how do I get Eclipse to help me?

The answer to (2) depends on the specifics for (1) which
boils down to how do I write my program? Unsurprisingly,
there are a number of ways to do this. You should investigate
them and pick one.

Questions of type (1) should be directed to
stackoverflow.com and others. This forum isn't
about programming.

Come back once you know what you specifically want Eclipse to do.


[Updated on: Sat, 11 September 2021 05:58] by Moderator

Previous Topic:Unknown Referenced Nature
Next Topic:error
Goto Forum:
  


Current Time: Fri Jul 25 18:39:59 EDT 2025

Powered by FUDForum. Page generated in 0.05003 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top