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
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
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
Did you ever get this resolved?
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?
I'll start a new thread...similar problem, but different environment.