Adding include folder to textpad
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Adding include folder to textpad
Hey! I want to add a folder of includes to textpad. How to I do this so I can use the includes?
-
- Posts: 18
- Joined: Sun Feb 15, 2009 12:50 pm
Re: Adding include folder to textpad
Hi thereNasaGuru wrote:Hey! I want to add a folder of includes to textpad. How to I do this so I can use the includes?
You haven't said what version of TextPad you are using, but assuming the most recent (or at least TextPad 5.*), what you need is to set up an appropriate include environment variable for your compiler under Configure | Preferences | Environment Variables.
Again, you haven't mentioned what compiler the includes are required for, so you'll need to check the documentation to see what exactly should be set. As an example, to use the Visual C++ compiler in TextPad, you would need to have the full include path (including your own includes) set somewhere using:
Code: Select all
INCLUDE="C:\MyIncludes;C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE;C:\Program Files\Microsoft SDKs\Windows\v6.0A\include"
Code: Select all
INCLUDE="C:\MyIncludes;%INCLUDE%"