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

Warning LNK4254 with ObjectARX2015

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
patr93
1301 Views, 5 Replies

Warning LNK4254 with ObjectARX2015

Hello,

I have installed ObjectARX2015 and VS2012 with update 4 and recompiled my app.

I have the following Warning:

"rxapi.lib(nullobid.obj) : warning LNK4254: section 'rxapi' (C0000040) merged into '.rdata' (40000040) with different attributes"

 

All was OK with ObjectARX2013 and VS2010.

 

Is there anyone having a solution to this problem ?

Thanks in advance.

Patrice

 

5 REPLIES 5
Message 2 of 6
Balaji_Ram
in reply to: patr93

Hi Patrice,

 

I had seen a similar warning while migrating one of the samples and had forwarded a similar query to our engineering team.

 

The feedback that I received from our engineering team is :

 

<<<

 

This warning can be safely ignored.

 The code that causes this warning is an optimization for creating a global variable and there has not been any change around it in the AutoCAD 2015 release. I suppose the change in the C++ compiler used with AutoCAD 2015 is flagging it as a warning while the previous compiler versions ignored it.

 

>>>

 

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

Message 3 of 6
patr93
in reply to: patr93

Thank you for your quick answer

Message 4 of 6
mjwelch
in reply to: patr93

I was able to get rid of this message by removing all references to
AcDbObjectId::kNull and replacing them with the AcDbObjectId::setNull() and AcDbObjectId::isNull() functions.
Message 5 of 6
patr93
in reply to: mjwelch

Thank you.

but I have no references to AcDbObjectId::kNull.

Message 6 of 6
Anodl
in reply to: patr93

Patrice, to get rid of this warning, just add "/IGNORE:4254" to the linker options (project properties -> linker -> command line -> additional options) Arnold

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

Post to forums  

Autodesk Design & Make Report

”Boost