Szakáts Viktor wrote:
>
>
> The problem is that bgd.dll is compiled using MSVC with stdcall,
> so name mangling is underscore + func name + @ + params size
> in bytes. Unfortunately BCC is not able to create the same kind
> of name decoration however I tried. (I just can hope the BCC stdcall
> call convention is the same as MSVCs.)
>
> As a next step I generated a .def file from the .dll (using Borland
> impdef), edited the .def file by prepending an underscore to the
> function names (in the first column), then created a .lib file out of
> the .def (using Borland implib). The resulting .lib links okay, and
> test apps finally run.
>
> Now gdtest.exe would print the lib version correctly, then runs
> into a series of GPFs and exits without any more results.
>
> Reading the FAQ on libgd.org, there are some serious problems
> listed when using the .dll from anything compiled with BCC, with
> some proposed workarounds.
>
>
Viktor, I not understand why it works in xHarbour+BCC.
Szakáts Viktor wrote:
>
> [ BTW the whole thing works okay with MSVS 2005. I'll post one
> correction to bin\bld.bat to fix building tests. ]
>
I have also tried to compile with MSVC 7.10
I add in contrib\mtpl_vc.mak this lines
!ifndef HB_VISUALC_VER
HB_VISUALC_VER = 71
!endif
and replace in test\bld_vc.bat
set HB_USER_LIBS=hbgd.lib bgd.lib hbct.lib =>
set HB_USER_LIBS=%HB_LIB_INSTALL%\hbgd.lib %HB_LIB_INSTALL%\bgd.lib
%HB_LIB_INSTALL%\hbct.lib
works fine, but i got
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other
libs; use /NODEFAULTLIB:library
no LNK4033 warning :)
Regards,
Petr
--
View this message in context:
http://www.nabble.com/Unrecoverable-error-9022%3A-Memory-buffer-overflow-tp17457392p17498914.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour