Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 08:14 Go to next message
ISA ISA is currently offline ISA ISAFriend
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 Go to previous message
David VavraFriend
Messages: 1405
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

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


Current Time: Wed Dec 01 04:32:53 GMT 2021

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

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

Back to the top