pCode DLL Sample
Posted: Mon May 30, 2022 9:53 am
hi,
i try to run Code from this Sample
https://harbour.wiki/index.asp?page=Pub ... 8267913849
i have copy Code into DllCode.PRG
and run
but i get Error
did someone have a working Sample, need help
i try to run Code from this Sample
https://harbour.wiki/index.asp?page=Pub ... 8267913849
i have copy Code into DllCode.PRG
Code: Select all
/*** dllcode.prg ***/
DYNAMIC QOUT, PROCNAME
// added to inform compiler and linker that
// references to above functions have to be
// resolved dynamically at runtime
proc MY_PROC()
? PROCNAME() + ": hello !!!"
return
init proc start
? "INIT PROC", PROCNAME()
return
exit proc end
? "EXIT PROC", PROCNAME()
return
Code: Select all
hbmk2 -shared -strip -hbdyn dllcode.prg -n -w -es2
so what do i missR:/Temp/hbmk_vujesp.dir/dllcode.o:dllcode.c:(.text+0x14): undefined reference to `hb_vmExecute'
R:/Temp/hbmk_vujesp.dir/dllcode.o:dllcode.c:(.text+0x34): undefined reference to `hb_vmExecute'
R:/Temp/hbmk_vujesp.dir/dllcode.o:dllcode.c:(.text+0x54): undefined reference to `hb_vmExecute'
R:/Temp/hbmk_vujesp.dir/dllcode.o:dllcode.c:(.text.startup+0x2c): undefined reference to `hb_vmProcessSymbols'

did someone have a working Sample, need help