ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

arxheaders.h

5 REPLIES 5
Reply
Message 1 of 6
cadproman
1873 Views, 5 Replies

arxheaders.h

I discovered that if I include arxheaders.h, then all of the headers included in the SDK are included. However, when I try to compile, I get the following error (among others):

c:\objectarx 2008\inc\AcValue.h(91) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

 

pointing to line 91 in the AcValue.h file:

static bool           isValidDataType           (const VARIANT& var);

 

I would really like to be able to include all of the header files until I am more familiar with which ones I really need. When I build an empty project with the ObjectARX Wizard, it uses the include statement and the project compiles. What needs to be done to correct this in a project NOT built with the wizard in order to get it to compile?

 

I'm using VS 2005 and AutoCAD 2008

 

TIA,

Ralph

5 REPLIES 5
Message 2 of 6
ow
Contributor
in reply to: cadproman

Try adding these:

 

axdb.lib

acad.lib

acedapi.lib

acui17.lib

adui17.lib

acdb17.lib

acge17.lib

 

as additional depenancies in project properties/Linker//Input

Message 3 of 6
cadproman
in reply to: ow

Thanks for replying. I tried adding the additional lib files, but I am still getting the errors when I try to use only the arxheaders.h file. Lots of unknown identifier and undeclared stuff. In addition to the missing type specifier - int assumed in line 91 of the acvalue.h file, I also get the following:

 

1>c:\objectarx 2008\inc\acvalue.h(91) : error C2143: syntax error : missing ',' before '&'

1>c:\objectarx 2008\inc\acvalue.h(111) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\objectarx 2008\inc\acvalue.h(111) : error C2143: syntax error : missing ',' before '&'

1>c:\objectarx 2008\inc\acvalue.h(146) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\objectarx 2008\inc\acvalue.h(146) : error C2143: syntax error : missing ',' before '&'

1>c:\objectarx 2008\inc\acvalue.h(169) : error C2061: syntax error : identifier 'VARIANT'

1>c:\objectarx 2008\inc\acvalue.h(192) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\objectarx 2008\inc\acvalue.h(192) : error C2143: syntax error : missing ',' before '&'

1>c:\objectarx 2008\inc\acfield.h(185) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\objectarx 2008\inc\acfield.h(185) : error C2143: syntax error : missing ',' before '&'

1>c:\objectarx 2008\inc\acprofile.h(100) : error C2061: syntax error : identifier 'IUnknown'

1>c:\objectarx 2008\inc\acprofile.h(102) : error C2061: syntax error : identifier 'IUnknown'

1>c:\objectarx 2008\inc\acprofile.h(104) : error C2061: syntax error : identifier 'IUnknown'

1>c:\objectarx 2008\inc\acpublishuireactors.h(154) : error C2061: syntax error : identifier 'IUnknown'

1>c:\objectarx 2008\inc\acpublishuireactors.h(175) : error C2065: 'IUnknown' : undeclared identifier

1>c:\objectarx 2008\inc\acpublishuireactors.h(175) : error C2065: 'pUnk' : undeclared identifier

1>c:\objectarx 2008\inc\acpublishuireactors.h(176) : error C2065: 'pInfo' : undeclared identifier

1>c:\objectarx 2008\inc\acpublishuireactors.h(176) : error C2275: 'AcPublishUIReactorInfo' : illegal use of this type as an expression

1> c:\objectarx 2008\inc\acpublishuireactors.h(45) : see declaration of 'AcPublishUIReactorInfo'

1>c:\objectarx 2008\inc\acpublishuireactors.h(177) : error C2448: 'AcPublishUIReactor::OnInitPublishOptionsDialog' : function-style initializer appears to be a function definition

 

Message 4 of 6
dave.wolfe
in reply to: cadproman

Did you ever get this resolved?

Dave Wolfe
Isaiah 57:15



Tips and Tricks on our blog: ASTI blog
EXPERT ELITE MEMBER
Plant 3D Wish list
Message 5 of 6
Nick1983
in reply to: cadproman

I hope your VS2005 has SP1?

Did you add arx include and library folders to VS (Tools / Options / Projects and Solutions / VC++ Directories) or to your project?  

---
#define QUESTION(b) (2*b)||(!(2*b)) © William Shakespeare
Message 6 of 6
dave.wolfe
in reply to: Nick1983

I'll start a new thread...similar problem, but different environment.

Dave Wolfe
Isaiah 57:15



Tips and Tricks on our blog: ASTI blog
EXPERT ELITE MEMBER
Plant 3D Wish list

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost