It is currently Wed Feb 08, 2012 6:17 pm

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 4 posts ] 
Author Message
 Post subject: error c2011
PostPosted: Wed Jan 13, 2010 6:25 am 

Joined: Wed Jan 13, 2010 6:18 am
Posts: 10
Location: New Delhi
hi friends,

i am trying to execute the handset example and getting the following error.........

Building ------------ Simulate.exe ------------
Executing: ""C:\Program Files\IBM\Rational\Rhapsody\7.5.1\Share"\etc\msmake.bat Simulate.mak rebuild "
Setting environment for using Microsoft Visual C++ tools.
Cleanup
MMI.cpp
Network.cpp
In.cpp
Out.cpp
ConnectionManagement.cpp
DataLink.cpp
MobilityManagement.cpp
AnalysisPkg.cpp
ArchitecturePkg.cpp
SubsystemPkg.cpp
MobilityManagement.h(688) : error C2011: 'OMAnimatedRegistration_C' : 'class' type redefinition
NMAKE : fatal error U1077: 'cl' : return code '0x2'


Stop.

Build Done
.....


please help me out.



_________________
Thanks and Regards
Satyam
New Delhi
Offline
 Profile  
 
 Post subject: Re: error c2011
PostPosted: Mon Jan 18, 2010 3:28 pm 
User avatar

Joined: Wed Oct 31, 2007 10:00 pm
Posts: 45
http://msdn.microsoft.com/en-us/library/sksadsda.aspx

Visual C++ Concepts: Building a C/C++ Program
Compiler Error C2011
Error Message
'identifier' : 'type' type redefinition

The identifier was already defined as type. You may also get C2011 if you import a type library more than once into the same file.
The following sample generates C2011:

// C2011.cpp
// compile with: /c
struct S;
union S; // C2011
union S2; // OK


Offline
 Profile  
 
 Post subject: Re: error c2011
PostPosted: Wed Jan 20, 2010 4:52 am 

Joined: Wed Jan 13, 2010 6:18 am
Posts: 10
Location: New Delhi
thanks Fred,

but friend i got this error in rhapsody, can you please tell me how to edit code generated by rhapsody.

thanks in advance



_________________
Thanks and Regards
Satyam
New Delhi
Offline
 Profile  
 
 Post subject: Re: error c2011
PostPosted: Wed Jan 20, 2010 12:36 pm 
User avatar

Joined: Wed Oct 31, 2007 10:00 pm
Posts: 45
I understand what you mean but the error message is not caused by Rhapsody, it is caused by the compiler.
So first you have to check the generated code and identify what type is defined twice. Depending on this you can check if the double definition occurs in the same source file or in different source files and then try to find the belonging Rhapsaody elements .... there are a lot of possibilies and it is difficult to advise without having the model.
Please also check if the definition comes from your Rhapsody model or from the framework. Try to generate code without animation first.

Fred


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

cron

suspicion-preferred