VC 2010 ms linker uses objects from original lib instead from the
modified one, even if libpaths are correct and the modified lib is
listed before the original one ( note that bcc works as expected but I
cannot check with mingw ).
hbmk2 -trace output seems ok according to the doc and using the
VERBOSE output I could manually fix the dependencies but is difficult
to be sure that every dependence is respected and using
/INCREMENTAL:NO doesn't help.
Any idea?
best regards,
Lorenzo
> It'd be worth verifying if the replacement object (or objects)
> from the replacement lib contains the exact same set of
> public symbols as the original one. If not, it may create
> such problem.
Yes they are exactly the same prg with "internal" modifications like
add members, methods and change the way to calculate the row,col
position.
Note that EXACTLY the same code build correctly with bcc simply
changing the library names in fwh.hbc and setting the path.
So it seems to be the different linker strategy to resolve functions.
best regards,
Lorenzo
> It'd be worth verifying if the replacement object (or objects)Yes they are exactly the same prg with "internal" modifications like
> from the replacement lib contains the exact same set of
> public symbols as the original one. If not, it may create
> such problem.
add members, methods and change the way to calculate the row,col
position.
Note that EXACTLY the same code build correctly with bcc simply
changing the library names in fwh.hbc and setting the path.
> It doesn't mean anything. Linkers work differently, bcc being
> among the more (most) "allowing" ones (pbly that's one reason
> why some users prefer it). This property is nice at first, but it makes
> bcc very unpredictable and it can hide real problems.
In fact when I used mingw I found two function with the same name in
different sources.
However it seems I've found a working solution adding some
dependencies in the modified lib and swapping the lib position.
hbmk2's trace + /VERBOSE gives a very detailed information so at least
I found a way to debug.
Many thanks for the attention.
best regards,
Lorenzo
> It doesn't mean anything. Linkers work differently, bcc beingIn fact when I used mingw I found two function with the same name in
> among the more (most) "allowing" ones (pbly that's one reason
> why some users prefer it). This property is nice at first, but it makes
> bcc very unpredictable and it can hide real problems.
different sources.
However it seems I've found a working solution adding some
dependencies in the modified lib and swapping the lib position.
hbmk2's trace + /VERBOSE gives a very detailed information so at least
I found a way to debug.
Many thanks for the attention.