TheSwamp

Code Red => ARX Programming => Topic started by: Kerry on December 23, 2009, 11:58:11 PM

Title: Treat me gently please
Post by: Kerry on December 23, 2009, 11:58:11 PM

I hope there aren't too many posts like this.

Building a solution
getting
fatal error C1083: Cannot open include file: 'arxHeaders.h':

The ..\inc path is on the  environment variable PATH
The File exists

I've tried both
#include "arxHeaders.h"
and
#include <arxHeaders.h>

any ideas ??
Title: Re: Treat me gently please
Post by: Kerry on December 24, 2009, 12:22:42 AM

Resolved I think

In the Tools->Options Dialog I needed to change the 'Show directories for' combo to 'Include Files"
ie Corresponds to environment variable INCLUDE.
I had them set in the  'Executable Files'
ie Corresponds to environment variable PATH.

Title: Re: Treat me gently please
Post by: Kerry on December 24, 2009, 12:28:07 AM
1>TestARX_01 - 0 error(s), 3 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========


Now I'm really dangerous  :lol:
Title: Re: Treat me gently please
Post by: owenwengerd on December 24, 2009, 01:05:35 AM
I recommend against adding the ObjectARX folders to your global settings, as it prevents you from targeting multiple AutoCAD versions. Add them to your project settings instead, so that you can specify different paths for different project configurations. Also, use environment variables:
http://www.manusoft.com/Resources/ARXTips/Main.stm#MSVCEnvironment (http://www.manusoft.com/Resources/ARXTips/Main.stm#MSVCEnvironment)
Title: Re: Treat me gently please
Post by: It's Alive! on December 24, 2009, 01:19:16 AM
You should avoid adding paths globally and add them at the project level. see pics
I use system variable but you can just add the paths directly
Title: Re: Treat me gently please
Post by: It's Alive! on December 24, 2009, 01:25:03 AM
oops, do it as sifu Owen does  :laugh:
Title: Re: Treat me gently please
Post by: It's Alive! on December 24, 2009, 01:25:58 AM
1>TestARX_01 - 0 error(s), 3 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========


Now I'm really dangerous  :lol:

Welcome to the club  :lol:
Title: Re: Treat me gently please
Post by: Kerry on December 24, 2009, 02:01:32 AM

Thanks Owen,
Thanks Daniel