Static library

R

rahul

Hi,

I am working on developing a C++ application and caught with a strange
issue:

I am having 4 dynamic libraries for e.g. a.dll, b.dll, c.dll and d.dll.
Each of these is linked with a static library called msg.lib.

Now in all but one (d.dll) dynamic libraries there is a function called
"LOGTOFILE". In d.dll this function is replaced with function called
"LOGTEXT". Now the static library msg.lib which is linked with these
libraries also has call to the function "LOGTOFILE". Now I want that on
runtime when d.dll uses msg.lib, the calls to the function LOGTOFILE in
msg.lib should be replaced with function LOGTEXT.

I am not sure if this can be achieved using the makefile options.
Please suggest how can I resolve this issue.

Thanks,
Rahul
 
V

Victor Bazarov

rahul said:
I am working on developing a C++ application and caught with a strange
issue:

I am having 4 dynamic libraries for e.g. a.dll, b.dll, c.dll and d.dll.
Each of these is linked with a static library called msg.lib.

Nothing so far has anything to do with C++ _language_.
Now in all but one (d.dll) dynamic libraries there is a function called
"LOGTOFILE". In d.dll this function is replaced with function called
"LOGTEXT". Now the static library msg.lib which is linked with these
libraries also has call to the function "LOGTOFILE". Now I want that on
runtime when d.dll uses msg.lib, the calls to the function LOGTOFILE in
msg.lib should be replaced with function LOGTEXT.

I am not sure if this can be achieved using the makefile options.
Please suggest how can I resolve this issue.

Recompile your 'd.dll' after replacing all LOGTOFILE to LOGTEXT in its
source code. If that's not an option, then your problem falls out of
C++ domain and you need to find a different newsgroup. Perhaps one for
your compiler or your OS...

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,144
Latest member
KetoBaseReviews
Top