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.htmlbecause 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