1

Topic: To replace function with stages (VS)

Let's admit, there is an indirect static library which exports a certain function (export "C" void Func (...)) and  in DLL. Also, in same DLL  my static library with the same function. Whether there are regular methods to specify  that it forcedly would use my version of function (it is desirable under VS2013). If is not present, that advise? Interests as to substitute the version, instead of how to resolve the conflict.

2

Re: To replace function with stages (VS)

Hello, Videoman, you wrote: V> It is admissible, there is an indirect static library which exports a certain function (export "C" void Func (...)) and  in DLL. Also, in same DLL  my static library with the same function. Whether V> there are regular methods to specify  that it forcedly would use my version of function (it is desirable under VS2013). If is not present, that advise? Interests as to substitute the version, instead of how to resolve the conflict. I would look aside lib.exe: https://msdn.microsoft.com/ru-ru/library/e17b885t.aspx still can help dumpbin: https://docs.microsoft.com/ru-ru/cpp/bu … in-options it is not assured that works, but it is possible to try

3

Re: To replace function with stages (VS)

Hello, Videoman, you wrote: V> It is admissible, there is an indirect static library which exports a certain function (export "C" void Func (...)) and  in DLL. Also, in same DLL  my static library with the same function. Whether V> there are regular methods to specify  that it forcedly would use my version of function (it is desirable under VS2013). If is not present, that advise? Interests as to substitute the version, instead of how to resolve the conflict. Very simply add in link an option/force:multiple and who was the first in the list  that and it will be caused.

4

Re: To replace function with stages (VS)

Hello, uzhas, you wrote: U> I would look aside lib.exe: https://msdn.microsoft.com/ru-ru/library/e17b885t.aspx U> still can help dumpbin: https://docs.microsoft.com/ru-ru/cpp/bu … in-options U> it is not assured that works, but it is possible to try Thanks, but me such variant with a patch if I correctly understood, does not approach. The library is tightened by several projects. Though, there is a thought, can be it makes sense to make two versions. It is necessary to think.

5

Re: To replace function with stages (VS)

Hello, kov_serg, you wrote: _> very simply add in link an option/force:multiple and who was the first in the list  that and it will be caused. It will be necessary to try, but the following problem sees: this option, most likely, will operate not selectively on all conflicts. Interesting, really it is impossible to specify precisely the necessary characters, well or names  in  which it is necessary to ignore in a specific configuration.

6

Re: To replace function with stages (VS)

Hello, Videoman, you wrote: V> Thanks, but me such variant with a patch if I correctly understood, does not approach. The library is tightened by several projects. Though, there is a thought, can be it makes sense to make two versions. It is necessary to think. Can be  "on the fly" a copy and substitute it ?

7

Re: To replace function with stages (VS)

Hello, Videoman, you wrote: V> Hello, kov_serg, you wrote: _>> very simply add in link an option/force:multiple and who was the first in the list  that and it will be caused. V> it will be necessary to try, but the following problem sees: this option, most likely, will operate not selectively on all conflicts. Interesting, really it is impossible to specify precisely the necessary characters, well or names  in  which it is necessary to ignore in a specific configuration. Not so I understand for what you endure all conflicts it from discharge error translates in warning. So you equally see all of them. What confuses, not academism of a method?

8

Re: To replace function with stages (VS)

Hello, kov_serg, you wrote: _> So you equally see all of them. For idea of thanks. If at all there will be no "direct" variants that it will be possible . _> That confuses, not academism of a method? Yes. After all, like, the library is known, functions are known... Confuses that in the code with  I struggle, and here it is necessary to close eyes. And still, from experience, always I try to avoid things which depend on the order of switching-on of titles or libraries. In the future very easily casually to change the order and to receive not the worker dll in .

9

Re: To replace function with stages (VS)

Videoman: V> It is admissible, there is an indirect static library which exports a certain function (export "C" void Func (...)) and  in DLL. Also, in same DLL  my static library with the same function. Whether V> there are regular methods to specify  that it forcedly would use my version of function (it is desirable under VS2013). If is not present, that advise? Interests as to substitute the version, instead of how to resolve the conflict. , at export it is possible to set new names for characters and even to rename. It is possible to be played with compiler keys, , c def-files with #pragma comment. , the task solved. . Recalled two more methods of the job  . 1. An ASM-file c public, extrn and EQU (or "="?). 2. Sorcery with  scripts gcc, but it as a last resort...

10

Re: To replace function with stages (VS)

Hello, Videoman, you wrote: V> Hello, kov_serg, you wrote: _>> So you equally see all of them. V> for idea of thanks. If at all there will be no "direct" variants that it will be possible . Direct variants long and less beautiful. Namely  obj files - to rename or delete functions inside  (the blessing of checksums there is not present) https://support.microsoft.com/ru-ru/hel … ormat-coff http://wiki.osdev.org/COFF http://www.benf.org/other/wumpbin/index.html regular dumpbin/editbin so are not able. But hands it is possible. _>> That confuses, not academism of a method? V> yes. After all, like, the library is known, functions are known... Confuses that in the code with  I struggle, and here it is necessary to close eyes. To you  or to go. V> and still, from experience, always I try to avoid things which depend on the order of switching-on of titles or libraries. In the future very easily casually to change the order and to receive not the worker dll in . Not so I understand and here . But the order does not exchange if explicitly to specify  with substitution as the first parameter at link link/force:multiple hack.obj... The remaining...