Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: List of runtime packages, how do I access that? (XE8 enterprise)


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 4 - Last Post: Dec 19, 2016 10:13 AM Last Post By: Remy Lebeau (Te... Threads: [ Previous | Next ]
Jan Dijkstra

Posts: 206
Registered: 11/4/99
List of runtime packages, how do I access that? (XE8 enterprise)  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 16, 2016 1:37 AM
Like subject states.

In the old CBuilder5, when you go into the project options, select the "Packages" tab, there is an option for specifying runtime packages. You can enable or disable it, and below this checkbox there is a full listing of all the packages that will be used at runtime. Any function you use in a project that is in a package but not listed here, is statically linked. You can list any package you like, whether you use them in your project or not. The linker is smart enough to not include any package you don't actually use.

In XE 8, I also have a tab "Packages" in the project options. It still has the checkbox to enable or disable the use of runtime packages. However, what is lacking is CBuilder5's listing of which packages are on the runtime packages list.

Why is this relevant?

XE8's IDE still maintains a list of which runtime packages to use, and updates it to what it thinks is correct. However, I have no visual feedback on what that list is, unlike in CBuilder5

Just now, I ran into trouble in a test project. I used a data structure and some member functions that are exported from one of my packages. First up, I got link errors. Those went away when I manually added a #pragma link line to my project .cpp file, specifying the unit name these entries are exported from. Building again, I got a link error, specifying that the unit.obj file could not be found. Clearly an indication that the linked was attempting a static link. Despite having "Build with runtime packages" checked in the options.

Then I proceeded to place a component which is defined/exported from that same package onto my form. Now the build went without any errors. The IDE had added a few extra #pragma link lines to my project in response to placing this component, but nothing else visibly has been altered. Neither in the unit source or the project options.

But since the linker now was able to link against the runtime package, where before it attempted a static link, obviously something else in the project options has changed.

My question is: How do I make this visible? I want to be able to view, and edit, this list of runtime packages. Just as I was able to in CBuilder5
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: List of runtime packages, how do I access that? (XE8 enterprise)  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 16, 2016 3:32 PM   in response to: Jan Dijkstra in response to: Jan Dijkstra
Jan wrote:

In XE 8, I also have a tab "Packages" in the project options. It still
has the checkbox to enable or disable the use of runtime packages.
However, what is lacking is CBuilder5's listing of which packages are
on the runtime packages list.

That list still exists:

Project > Options > Packages > Runtime Packages

There is a "Link with runtime packages" checkbox, and an editable "Runtime
packages" list.

See "Deciding Which Runtime Packages to Use" (http://docwiki.embarcadero.com/RADStudio/en/Deciding_Which_Runtime_Packages_to_Use)
for more details.

XE8's IDE still maintains a list of which runtime packages to use,
and updates it to what it thinks is correct. However, I have no
visual feedback on what that list is, unlike in CBuilder5

Not true. The list is viewable and editable.

--
Remy Lebeau (TeamB)
Jan Dijkstra

Posts: 206
Registered: 11/4/99
Re: List of runtime packages, how do I access that? (XE8 enterprise)  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 17, 2016 10:41 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Remy Lebeau (TeamB) wrote:
Jan wrote:

In XE 8, I also have a tab "Packages" in the project options. It still
has the checkbox to enable or disable the use of runtime packages.
However, what is lacking is CBuilder5's listing of which packages are
on the runtime packages list.

That list still exists:

Project > Options > Packages > Runtime Packages

There is a "Link with runtime packages" checkbox, and an editable "Runtime
packages" list.

See "Deciding Which Runtime Packages to Use" (http://docwiki.embarcadero.com/RADStudio/en/Deciding_Which_Runtime_Packages_to_Use)
for more details.

XE8's IDE still maintains a list of which runtime packages to use,
and updates it to what it thinks is correct. However, I have no
visual feedback on what that list is, unlike in CBuilder5

Not true. The list is viewable and editable.

--
Remy Lebeau (TeamB)

Well, then there is a problem. Because in my XE8 version, that list on the options tab is totally empty. It's not listing the packages that are being used at runtime.
Johannes Weinert

Posts: 90
Registered: 7/19/02
Re: List of runtime packages, how do I access that? (XE8 enterprise) [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 19, 2016 12:43 AM   in response to: Jan Dijkstra in response to: Jan Dijkstra
I'm personally not using runtime packages, but in my XE4 and 10.1 Berlin
the "Runtime package import libraries" option is empty only if the
target is not set to a specific platform.

Did you try the option on a new project?

Regards

Hans

Am 18.12.2016 um 07:50 schrieb Jan Dijkstra:
Remy Lebeau (TeamB) wrote:
Jan wrote:

In XE 8, I also have a tab "Packages" in the project options. It still
has the checkbox to enable or disable the use of runtime packages.
However, what is lacking is CBuilder5's listing of which packages are
on the runtime packages list.

That list still exists:

Project > Options > Packages > Runtime Packages

There is a "Link with runtime packages" checkbox, and an editable "Runtime
packages" list.

See "Deciding Which Runtime Packages to Use" (http://docwiki.embarcadero.com/RADStudio/en/Deciding_Which_Runtime_Packages_to_Use)
for more details.

XE8's IDE still maintains a list of which runtime packages to use,
and updates it to what it thinks is correct. However, I have no
visual feedback on what that list is, unlike in CBuilder5

Not true. The list is viewable and editable.

--
Remy Lebeau (TeamB)

Well, then there is a problem. Because in my XE8 version, that list on the options tab is totally empty. It's not listing the packages that are being used at runtime.
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: List of runtime packages, how do I access that? (XE8 enterprise)[Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 19, 2016 10:13 AM   in response to: Jan Dijkstra in response to: Jan Dijkstra
Jan wrote:

Well, then there is a problem. Because in my XE8 version, that list
on the options tab is totally empty. It's not listing the packages
that are being used at runtime.

That means no runtime packages are being used. Since the field is editable,
add whatever packges you need to it.

--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02