It is currently Wed Feb 22, 2012 10:50 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 [ 1 post ] 
Author Message
 Post subject: External Elements
PostPosted: Tue Nov 29, 2011 9:59 am 

Joined: Fri Oct 14, 2011 8:48 am
Posts: 3
Dear all,
I am a new user of Rhapsody and I'm using Rhapsody 7.6.. I am studying the integration of Rhapsody C++ and external source code.
In order to reach my task, I use the approach described in the rhapsody manual http://publib.boulder.ibm.com/infocenter/rhaphlp/v7r6/index.jsp?topic=%2Fcom.ibm.rhp.uml.diagrams.doc%2Ftopics%2Frhp_c_dm_extnl_elmts.html
because the source code is still being modified.
My source code is composed by a list of C files .h and .c containing types, constants and functions.

After the creation of the ExternalModel, I created a new DevelopmentModel and added the ExternalModel to it selecting its all the top-most packages and the component so as described in the help.
Unfortunately the following information prompts when I try to build my project.

===========================
Linking DefaultComponent.exe
Main.obj : error LNK2019: unresolved external symbol "double __cdecl random()" (?random@@YAXE@Z) referenced in function ....
===========================

(NB the function random() is the only function that actually I'm using in the DevelopmentModel)

Have you got this problem ever before?
How can I solve this problem?

It's necessary to set the component of ExternalModel like a Library? In order to create a file .lib from the ExternalModel , I noticed that I have to add to the scope of the ExternalModel component a null Package and Class. Is there a way so this ones aren't required?

Thanks to all


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

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