Very good Viktor!
This text will be really very helpfull to many people!
Brgds
Leandro



--------------------------------------------------
From: "Viktor Szakáts" <harbour...@syenar.hu>
Sent: Monday, February 08, 2010 8:27 PM
To: "Harbour Project Main Developer List." <harbour@harbour-project.org>
Subject: Re: [Harbour] How to build and use pCode DLL with hbmk2

Hi Przemek,

  to create PCODE dll simply use:

     hbmk2 -shared -strip -hbdyn dllcode.prg -n -w -es2

  and dllcode.dll is generated, if you are using other then MinGW C
  compiler then you should add -cflag=-DHB_DYNLIB (to force exporting
  public functions inside .prg code - only MinGW supports auto export
  feature) and -implib switches (to create import library - only MinGW
  supports direct DLL usage by linker),

Minor note: -cflag=-DHB_DYNLIB is automatically enabled for non-mingw
compilers when -hbdyn is used, so it's not necessary to add it manually.

I believe the rest of this nice description should definitely go into
doc/pcodedll.txt. You can even commit as is.

Brgds,
Viktor

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to