473,324 Members | 2,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

partial link

Hello all,

This is a C++ linker question.

I'm trying to build an obj file, say foo.obj so that it is pre-linked
with its dependencies. However I do not want to generated an executable
right away. Some people call this "partial linking". Note that
packaging all dependent objs into a library is not an option. All I
want is really one obj file whose dependencies have all been pre-linked
with it, so when I link the final executable file I won't have to
provide foo.obj's dependencies at that time.

In linux I know this can be done using "ld -r -o", so I'm assuming
there's got to be an equivalent way to do this with link.exe.

Regards,

Eric

Nov 22 '06 #1
3 1435
>I'm trying to build an obj file, say foo.obj so that it is pre-linked
>with its dependencies. However I do not want to generated an executable
right away. Some people call this "partial linking". Note that
packaging all dependent objs into a library is not an option. All I
want is really one obj file whose dependencies have all been pre-linked
with it, so when I link the final executable file I won't have to
provide foo.obj's dependencies at that time.
Eric,

I suspect that what you're looking for is #pragma comment (lib,..)

Dave
Nov 23 '06 #2

"David Lowndes" <Da****@example.invalidwrote in message
news:ki********************************@4ax.com...
I'm trying to build an obj file, say foo.obj so that it is pre-linked
with its dependencies. However I do not want to generated an executable
right away. Some people call this "partial linking". Note that
packaging all dependent objs into a library is not an option. All I
want is really one obj file whose dependencies have all been pre-linked
with it, so when I link the final executable file I won't have to
provide foo.obj's dependencies at that time.

Eric,

I suspect that what you're looking for is #pragma comment (lib,..)
The final project would still need the dependent libraries available.

However, making a DLL would act in the fashion desired, unless you are
trying to avoid that when you say "I do not want to generate an executable
right away".
>
Dave

Nov 24 '06 #3
>I'm trying to build an obj file, say foo.obj so that it is pre-linked
>>>with its dependencies. However I do not want to generated an executable
right away. Some people call this "partial linking". Note that
packaging all dependent objs into a library is not an option. All I
want is really one obj file whose dependencies have all been pre-linked
with it, so when I link the final executable file I won't have to
provide foo.obj's dependencies at that time.

Eric,

I suspect that what you're looking for is #pragma comment (lib,..)

The final project would still need the dependent libraries available.
That's true. I'd read the question more as "I wouldn't have to specify
foo.obj's dependencies at that time"

Dave
Nov 24 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: nospam | last post by:
I just read on Slash Dot about partial types. Now, is it possible to have a code behind split over two pages but still referencing the same .aspx file??? If so, that would be really nice as...
9
by: Gomaw Beoyr | last post by:
Two question about the "partial classes" (in the next wersion of ..NET). Question 1 ========== Will partial classes (in the next version of C#) have to be declared "partial" in ALL places. ...
16
by: pawel.pabich | last post by:
Hajo, I would like to have 2 my own partial classes. For example: Default.aspx.cs Default2.aspx.cs and they both will relate to Default.aspx page.
10
by: ptass | last post by:
Hi In asp.net 2.0 an aspx files .cs file is a partial class and all works fine, however, I thought Iā€™d be able to create another class file, call it a partial class and have that compile and...
2
by: dexterbot | last post by:
Hi... I need help in finding a way to capture a partial URL link and then store that as a variable so that I can use it as part of a hyperlink. I was hoping Javascripting would allow me to do...
2
by: Steeler | last post by:
This is the weirdest thing I've ever come across but I assume I'm missing something simple. I have an Access application. I update the front end (FE) occasionally and then have an automatic...
3
by: Eric | last post by:
Hello all, This is a C++ linker question. I'm trying to build an obj file, say foo.obj so that it is pre-linked with its dependencies. However I do not want to generated an executable right...
2
by: SQL Learner | last post by:
Hi All, I need to link two tables using partial word match. How can I write a SQL statement to do so? (I am using MS-Access.) Table One: 123 ABC Street 124 ABC Street 125 ABC Street
5
by: SQL Learner | last post by:
Hi Alex (Kuznetsov) and All, This is to follow up with my last post, "Link two tables using partial word match". How can I UPDATE table using partial word match? How can I write a SQL statement...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.