|
It is currently Thu Feb 09, 2012 12:03 am
|
View unanswered posts | View active topics
| 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. |
 |
|
 |
|
| Author |
Message |
|
vierkreis
|
Post subject: Add inlcude-path to project Posted: Mon Feb 15, 2010 7:50 am |
Joined: Mon Jan 11, 2010 9:17 am Posts: 16 Location: Braunschweig
|
|
Good morning,
I have to add an external lib to my rhapsody-project.
So I have to add the sources and the build lib. I found a way to tell rhapsody that my class has to include the headerfiles (Features -> CPP_CG -> SpecIncludes). But how do I tell Rhapsody where these files are and where the lib is?
|
|
|
|
 |
|
Fred
|
Post subject: Re: Add inlcude-path to project Posted: Mon Feb 15, 2010 12:24 pm |
Joined: Wed Oct 31, 2007 10:00 pm Posts: 45
|
|
you can use the dialog fields in the component
| Attachments: |
File comment: Screenshot

pic1.jpg [ 58.22 KiB | Viewed 447 times ]
|
|
|
|
|
 |
|
shanz
|
Post subject: Re: Add inlcude-path to project Posted: Mon Feb 15, 2010 6:04 pm |
Joined: Wed May 07, 2008 3:50 pm Posts: 148 Location: Horsham, W Sussex, England
|
|
|
|
 |
|
vierkreis
|
Post subject: Re: Add inlcude-path to project Posted: Tue Feb 16, 2010 6:50 am |
Joined: Mon Jan 11, 2010 9:17 am Posts: 16 Location: Braunschweig
|
|
I've never done that before. That sounds interesting.
And I can define all linked libs and search directories for the compiler and the linker with a component diagram?
|
|
|
|
 |
|
shanz
|
Post subject: Re: Add inlcude-path to project Posted: Tue Feb 16, 2010 8:42 am |
Joined: Wed May 07, 2008 3:50 pm Posts: 148 Location: Horsham, W Sussex, England
|
|
Yes, Executable can have <<Usage>> dependencies to libraries and the include paths are just set as normal in the dialog field. Drag the executable and libraries onto the diagram.
|
|
|
|
 |
|
Farquad
|
Post subject: Re: Add inlcude-path to project Posted: Tue Feb 16, 2010 3:23 pm |
Joined: Thu Sep 13, 2007 7:34 pm Posts: 397 Location: London
|
|
|
|
 |
|
vierkreis
|
Post subject: Re: Add inlcude-path to project Posted: Mon Feb 22, 2010 10:13 am |
Joined: Mon Jan 11, 2010 9:17 am Posts: 16 Location: Braunschweig
|
|
OK,... I am still having problems linking an external "lib" to my rhapsody-project.
I tell Rhapsody in the "Components" >> "Features" >> "General" >> "Libraries" field to add my libs, don't I?
In which Syntax do I do so? Lets suppose I want to link the Lib "X.lib" unter the path "C:\folder\libs\". Do I just enter "C:\folder\libs\"?
|
|
|
|
 |
|
Fred
|
Post subject: Re: Add inlcude-path to project Posted: Mon Feb 22, 2010 12:21 pm |
Joined: Wed Oct 31, 2007 10:00 pm Posts: 45
|
|
you have to enter the file name or path + file name additional you can specify the LIB path as compiler/linker flag (depending on your compiler) please look at the generated makefile how the settings in Rhapsody affect the makefile variables
|
|
|
|
 |
|
|
 |
|
 |
|
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
|
|