environment variables to #define [message #1844347] |
Fri, 10 September 2021 08:14 |
ISA ISA Messages: 1 Registered: September 2021 |
Junior Member |
|
|
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 09:13 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
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 09:58] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02729 seconds