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

fatal error C1083: Cannot open include file: 'type_traits': No such

19 REPLIES 19
Reply
Message 1 of 20
Anonymous
8661 Views, 19 Replies

fatal error C1083: Cannot open include file: 'type_traits': No such

Hi
I am trying to compile the provided sample ARXDBG after installing ObjectARX 2010. But gettings the following error:

fatal error C1083: Cannot open include file: 'type_traits': No such file or directory c:\objectarx 2010\inc\acarray.h 93 ArxDbg

Here is my configurations:
OS: Windows vista 32 bit.
IDE: Microsoft visual studio 2008.

Advance thanks for any feedback..

thx
Rashidul
19 REPLIES 19
Message 2 of 20
Anonymous
in reply to: Anonymous

You need to download and install the Service Pack for VS 2008.

Joe

wrote in message news:6230548@discussion.autodesk.com...
Hi
I am trying to compile the provided sample ARXDBG after installing ObjectARX
2010. But gettings the following error:

fatal error C1083: Cannot open include file: 'type_traits': No such file or
directory c:\objectarx 2010\inc\acarray.h 93 ArxDbg

Here is my configurations:
OS: Windows vista 32 bit.
IDE: Microsoft visual studio 2008.

Advance thanks for any feedback..

thx
Rashidul
Message 3 of 20
Anonymous
in reply to: Anonymous

Hi Joe
Thanks a lot. The problem is solved by installing SP but now its showing another series of problem.
First it showed
"Error 1 fatal error LNK1104: cannot open file 'acdb17.lib' Library Library"

I downloaded the library file from internet. Then it is again showing error:
"Error 1 fatal error LNK1104: cannot open file 'acge17.lib' Library Library"

Its quite absurd situation.

Can you/anyone help in this issue?

Thx
Rashidul
Message 4 of 20
Anonymous
in reply to: Anonymous

Rashidul,

I'm assuming (by the compiler) that you are trying to develop for AutoCAD
2010. The libraries for 2010 should be "18" instead of "17" ... acdb17.lib
should be acdb18.lib, etc. Make sure that the ObjectARX libraries for 2010
are installed and that you have added their path to either the global
compiler settings or the project settings. Then give it a go.

Joe

wrote in message news:6230714@discussion.autodesk.com...
Hi Joe
Thanks a lot. The problem is solved by installing SP but now its showing
another series of problem.
First it showed
"Error 1 fatal error LNK1104: cannot open file 'acdb17.lib' Library Library"

I downloaded the library file from internet. Then it is again showing error:
"Error 1 fatal error LNK1104: cannot open file 'acge17.lib' Library Library"

Its quite absurd situation.

Can you/anyone help in this issue?

Thx
Rashidul
Message 5 of 20
Anonymous
in reply to: Anonymous

Joe
Thanks a lot for very quick response.

You are correct that I am trying to develop for Autocad 2010 and also I have installed ObjectARX and
set the path for project settings as follows:
----------------------------------------------------------------------------------
Project -> Library properties-> Then

Left pane: C/C++
Right pane: Additional Include directories: [A folder contains the header files taken from
ObjectARX installation dir\ObjectARX 2010\inc
+ ObjectARX installation dir\ObjectARX 2010\inc-win32]

Left pane: Linker
Right pane: Additional library directories: [A folder contains the libraries taken from ObjectARX installation dir\ObjectARX 2010\lib-win32]
----------------------------------------------------------------------------------

Did I do any mistake? Do you find any clue from here..?

Thx
Rashidul
Message 6 of 20
Anonymous
in reply to: Anonymous

Those are correct. Now under your project properties -> Linker -> Input,
change any libraries with "17" in them to "18" in the Additional
Dependencies (acdb18.lib acge18.lib). Then it should link with no errors.

Joe

wrote in message news:6230932@discussion.autodesk.com...
Joe
Thanks a lot for very quick response.

You are correct that I am trying to develop for Autocad 2010 and also I have
installed ObjectARX and
set the path for project settings as follows:
----------------------------------------------------------------------------------
Project -> Library properties-> Then

Left pane: C/C++
Right pane: Additional Include directories: [A folder contains the header
files taken from

ObjectARX installation dir\ObjectARX 2010\inc

+ ObjectARX installation dir\ObjectARX 2010\inc-win32]

Left pane: Linker
Right pane: Additional library directories: [A folder contains the libraries
taken from ObjectARX installation dir\ObjectARX 2010\lib-win32]
----------------------------------------------------------------------------------

Did I do any mistake? Do you find any clue from here..?

Thx
Rashidul
Message 7 of 20
Anonymous
in reply to: Anonymous

Rashidul:

Just open the .sln file that gets installed with the ObjectARX 2010 SDK,
then build it. You do not need to change or add any settings; the file is
designed to build as-is when you open it from its installed location. 🙂
--
Owen Wengerd
President, ManuSoft <>
VP Americas, CADLock, Inc. <>
Message 8 of 20
Anonymous
in reply to: Anonymous

Hi Joe
I did the changes from 17 to 18 but it didn't help anymore...

I think there was a unintentional misconduct in the series of post/reply. Now I like to clarify it.
I had a application for Autocad 2008. Now it expected to make it compatible for Autocad 2010.
Thats why I tried to do so.

First I installed ObjectARX 2010 and tried to compile the application in VS 2008. But showed the errors as specified before 'type_traits':.
So I tried to compile the sample ARXDBG and got the same errors. Then I installed Service pack which solved the problem for sample
but not for my application that showed other errors.

--------------------------------------------------------------------------------
Error 1 fatal error C1189: #error : _WIN32_WINNT settings conflicts with _WIN32_IE setting c:\program files\microsoft sdks\windows\v6.0a\include\sdkddkver.h 217 Library

Error 2 error BK1506 : cannot open file '.\R2007\Debug\STDAFX.sbr': No such file or directory BSCMAKE Library

--------------------------------------------------------------------------------

Then one of my colleage asked to add StdAfx.h file in library folder and change there
#define WINVER 0x400
to
#define WINVER 0x500

Then it showed other fatal errors/can't open files ('acdb17.lib' .....) . After downloading one after another file it goes to a endless series of errors.

So I don't understand what should be the next step. As it was working smoothly for Autocad 2008 so its logical to
to also work with Autocad 2010 by putting the lib/inc files. But wondering why not working !!!

* If you think you can help me to compile by taking the source from me then I can send it to you.


Regards
Rashidul
Message 9 of 20
Anonymous
in reply to: Anonymous

Hi Owen
You are right about the sample. But I am having problem with my own application
which is working for Autocad 2008 but having problem to compile with ObjectARX 2010.
I have stated the complete history in the last reply of Joe. Hope you can get some clue from there.

Regards
Rashidul
Message 10 of 20
Anonymous
in reply to: Anonymous

Rashidul,

If you want to email me your entire project, I'll take a look at the
"acdb17.lib" problem.

Joe

wrote in message news:6231330@discussion.autodesk.com...
Hi Joe
I did the changes from 17 to 18 but it didn't help anymore...

I think there was a unintentional misconduct in the series of post/reply.
Now I like to clarify it.
I had a application for Autocad 2008. Now it expected to make it compatible
for Autocad 2010.
Thats why I tried to do so.

First I installed ObjectARX 2010 and tried to compile the application in VS
2008. But showed the errors as specified before 'type_traits':.
So I tried to compile the sample ARXDBG and got the same errors. Then I
installed Service pack which solved the problem for sample
but not for my application that showed other errors.

--------------------------------------------------------------------------------
Error 1 fatal error C1189: #error : _WIN32_WINNT settings conflicts with
_WIN32_IE setting c:\program files\microsoft
sdks\windows\v6.0a\include\sdkddkver.h 217 Library

Error 2 error BK1506 : cannot open file '.\R2007\Debug\STDAFX.sbr': No such
file or directory BSCMAKE Library

--------------------------------------------------------------------------------

Then one of my colleage asked to add StdAfx.h file in library folder and
change there
#define WINVER 0x400
to
#define WINVER 0x500

Then it showed other fatal errors/can't open files ('acdb17.lib' .....) .
After downloading one after another file it goes to a endless series of
errors.

So I don't understand what should be the next step. As it was working
smoothly for Autocad 2008 so its logical to
to also work with Autocad 2010 by putting the lib/inc files. But wondering
why not working !!!

* If you think you can help me to compile by taking the source from me then
I can send it to you.


Regards
Rashidul
Message 11 of 20
Anonymous
in reply to: Anonymous

Hi Joe
Can you plz give me your email address?
I like to give you the fresh copy of source that is working with Autocad 2008. Then I think it
will be easier for you to debug because I have tried with different ways in different times and the
current error is different than lib17 problem. If I can generate this error again then I will also send
you that version. In the mean time if you have time then shortly you can have a try with fresh code
with your expert hand.


Thx
Rashidul
Message 12 of 20
Anonymous
in reply to: Anonymous

Rashidul,

Just reply to me here instead of the group ...

Joe

wrote in message news:6231567@discussion.autodesk.com...
Hi Joe
Can you plz give me your email address?
I like to give you the fresh copy of source that is working with Autocad
2008. Then I think it
will be easier for you to debug because I have tried with different ways in
different times and the
current error is different than lib17 problem. If I can generate this error
again then I will also send
you that version. In the mean time if you have time then shortly you can
have a try with fresh code
with your expert hand.


Thx
Rashidul
Message 13 of 20
Anonymous
in reply to: Anonymous

Hi Joe
Here is the source code attached as zip. I didn't attached the libraries.

Have success !!

Thx
Rashidul
Message 14 of 20
Anonymous
in reply to: Anonymous

Rashidul,

This source code is not complete. It couldn't have been compiled even for
AutoCAD 2008. There is no Class definition (header file) for
"ESC_SlideLibrary". The implementation is there but it won't compile
without the header file. The project is referencing the right libraries
(acdb18.lib, etc) so I'm not sure what you were seeing or even how you got
to the linker.

Joe


wrote in message news:6231849@discussion.autodesk.com...
Hi Joe
Here is the source code attached as zip. I didn't attached the libraries.

Have success !!

Thx
Rashidul
Message 15 of 20
Anonymous
in reply to: Anonymous

Hi Joe
Sorry for bothering you.
Actually I am new in this project. This developed by someone else in my company and that is working already in production.
Now it is desired to make it compatible with Autocad 2010 and given the source code. As it is ensured that this workable with 2008
so I didn't try to compile with 2008. So I will try myself to compile with 2008 first. Then I will let you know...

One more thing:
I am not clear about "ESC_SlideLibrary" but
I have removed some files which are much bigger in size thinking that those are unnecessary like LIBRARY.ncb and R2007 directory (attachment shows the list of files in a image). Do you think these are necessary?

And including these exceeds max allowable size for attachment. So I could send you those files.

I am really grateful to you for spending a lot of your valuable time for me.

Thx
Rashidul
Message 16 of 20
Anonymous
in reply to: Anonymous

Hi Joe
I have fixed that problem by following this link.
http://discussion.autodesk.com/forums/thread.jspa?messageID=6233162᱊


But now its shows another error and that is

----------------------------------------------------------------
error LNK2001: unresolved external symbol _SetacrxPtp
----------------------------------------------------------------


Here is my definition file content
----------------------------------------------------------------

EXPORTS
acrxEntryPoint
_SetacrxPtp
acrxGetApiVersion
----------------------------------------------------------------

Do you have any idea about it?


Thx
Rashidul
Message 17 of 20
Anonymous
in reply to: Anonymous

Just remove that line from your definition file.

Joe

wrote in message news:6233164@discussion.autodesk.com...
Hi Joe
I have fixed that problem by following this link.
http://discussion.autodesk.com/forums/thread.jspa?messageID=6233162᱊


But now its shows another error and that is

----------------------------------------------------------------
error LNK2001: unresolved external symbol _SetacrxPtp
----------------------------------------------------------------


Here is my definition file content
----------------------------------------------------------------

EXPORTS
acrxEntryPoint
_SetacrxPtp
acrxGetApiVersion
----------------------------------------------------------------

Do you have any idea about it?


Thx
Rashidul
Message 18 of 20
Anonymous
in reply to: Anonymous

Hi Joe
Thanks for your quick reply.
But that line was also in our previous working version. But I don't know more anything about that because
the developers are not here in my company now. I guess it may refer to any dll/library, any idea?

I had tried by removing that line and then it compiled successfully. But when I was trying to load the arx file in
Autocad (Map 3D 2009) then it fails with error stating.

---------------------
Lib2010.arx is incompatible with this version of AutoCAD.
---------------------

Thats why I guess that definition might be necessary...

Any clue in overall?

Thx
Rashidul
Message 19 of 20
Anonymous
in reply to: Anonymous

Rashidul,

I think the SetAcrxPtp was for older versions of AutoCAD. It's not required
here (maybe someone else knows more about this). Is Lib2010.arx the file
that you compiled? Which AutoCAD version was it compiled for. Which
compiler did you use (VS2005 or VS2008)? Judging by the name, it was
compiled for AutoCAD 2010. If this is the case, it will not load in any
version below 2010 (Map 2009).

Joe

wrote in message news:6233305@discussion.autodesk.com...
Hi Joe
Thanks for your quick reply.
But that line was also in our previous working version. But I don't know
more anything about that because
the developers are not here in my company now. I guess it may refer to any
dll/library, any idea?

I had tried by removing that line and then it compiled successfully. But
when I was trying to load the arx file in
Autocad (Map 3D 2009) then it fails with error stating.

---------------------
Lib2010.arx is incompatible with this version of AutoCAD.
---------------------

Thats why I guess that definition might be necessary...

Any clue in overall?

Thx
Rashidul
Message 20 of 20
Anonymous
in reply to: Anonymous

Hi Joe
Thanks for your valuable feedbacks and important suggestions.
At last the problem is solved and indeed it seems 'SetAcrxPtp'
was for previous version of ObjectARX. Because now without this
export statements I have compiled the application and got the
functions in Autocad 2010. You are also correct it doesn't work
in Map 2009.

Keep it up to contribute in forum...
Thanks a lot again...

Regards
Rashidul

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

Post to forums  

Autodesk Design & Make Report

”Boost