FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Update problems: Undefined symbol 'ModuleFakeDyn'
Posts: 274
Joined: Fri Apr 04, 2008 01:25 PM
Update problems: Undefined symbol 'ModuleFakeDyn'
Posted: Tue Jun 27, 2017 02:03 PM
hello all!

while trying an update from fwh1202 (with bcc5.82 and xHarbour with harbour.exe from 28.01.2012) to fwh1706 (with bcc7 and xHarbour 1.2.3.10172) I get some errors while compiling:

Error E2451 EHO.c 550: Undefined symbol 'ModuleFakeDyn'
Error E2141 EHO.c 550: Declaration syntax error
Error E2190 EHO.c 550: Unexpected }
Error E2040 EHO.c 550: Declaration terminated incorrectly
Error E2040 EHO.c 1050: Declaration terminated incorrectly
Error E2219 EHO.c 1149: Wrong number of arguments in call of macro 'HB_INIT_SYMBOLS_EX_END'
Error E2451 EHO.c 1152: Undefined symbol 'hb_vm_SymbolInit_EHO'


from EHO.c:
Code (fw): Select all Collapse
HB_INIT_SYMBOLS_BEGIN( hb_vm_SymbolInit_EHO )
{ "L2BIN", {HB_FS_PUBLIC}, {HB_FUNCNAME( L2BIN )}, NULL },
{ "DBFCDX", {HB_FS_PUBLIC}, {HB_FUNCNAME( DBFCDX )}, NULL },
{ "DIVERTCONSTRUCTORCALL", {HB_FS_PUBLIC | HB_FS_DEFERRED}, {NULL}, NULL },
{ "GETPROCADD", {HB_FS_PUBLIC}, {HB_FUNCNAME( GETPROCADD )}, NULL },
{ "TACTIVEX", {HB_FS_PUBLIC}, {HB_FUNCNAME( TACTIVEX )}, NULL },
{ "ERRORSYS", {HB_FS_PUBLIC}, {HB_FUNCNAME( ERRORSYS )}, NULL },
{ "MAIN", {HB_FS_PUBLIC | HB_FS_LOCAL | HB_FS_FIRST}, {HB_FUNCNAME( MAIN )}, &ModuleFakeDyn }, // <-- Line 550
{ "SPACE", {HB_FS_PUBLIC}, {HB_FUNCNAME( SPACE )}, NULL },
{ "NEW", {HB_FS_PUBLIC}, {NULL}, NULL },
{ "TFONT", {HB_FS_PUBLIC}, {HB_FUNCNAME( TFONT )}, NULL },
...
{ "NRGB", {HB_FS_PUBLIC}, {HB_FUNCNAME( NRGB )}, NULL },
{ "_L2010", {HB_FS_PUBLIC}, {NULL}, NULL },
{ "DIALOGTOOLTIP", {HB_FS_PUBLIC}, {HB_FUNCNAME( DIALOGTOOLTIP )}, NULL }, // <-- Line 1050
{ "_CTOOLTIP", {HB_FS_PUBLIC}, {NULL}, NULL },
{ "_NLEFTMARGIN", {HB_FS_PUBLIC}, {NULL}, NULL },
...
{ "CLOSE", {HB_FS_PUBLIC}, {NULL}, NULL },
{ "(_INITSTATICS00023)", {HB_FS_INITEXIT}, {hb_INITSTATICS}, &ModuleFakeDyn },
{ "GETPVPROFS", {HB_FS_PUBLIC | HB_FS_LOCAL}, {HB_FUNCNAME( GETPVPROFS )}, NULL }
HB_INIT_SYMBOLS_EX_END( hb_vm_SymbolInit_EHO, __PRG_SOURCE__,  0x000a ) // <-- Line 1149

#if defined( HB_PRAGMA_STARTUP )
   #pragma startup hb_vm_SymbolInit_EHO // <-- Line 1152
#elif defined( HB_DATASEG_STARTUP )
   #define HB_DATASEG_BODY    HB_DATASEG_FUNC( hb_vm_SymbolInit_EHO )
   #include "hbiniseg.h"
#endif


As the same source code still works perfectly with the old FWH-Combination, I guess something else must be wrong. Has someone an idea?
Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Update problems: Undefined symbol 'ModuleFakeDyn'
Posted: Tue Jun 27, 2017 10:57 PM

Gilbert,

Please go to FWH\samples and try this:

buildx.bat tutor02

Let me know if it builds fine, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 274
Joined: Fri Apr 04, 2008 01:25 PM
Re: Update problems: Undefined symbol 'ModuleFakeDyn'
Posted: Thu Jun 29, 2017 01:36 PM

Antonio,

that works fine (if I change the buildx.bat like I described here: viewtopic.php?f=16&t=34254&start=0#p203142).
I also can compile projects without a call to nmake. Only our big project with a mak-file and call to nmake.exe has this issue. I'm still trying to isolate the problem and will respond once I have more details or when it is solved.
Thanks for your help.

Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Update problems: Undefined symbol 'ModuleFakeDyn'
Posted: Fri Jun 30, 2017 04:56 AM

Gilbert,

ModuleFakeDyn is declared in include\hbinit.h

Please check that you are using the right hbinit.h and not an older version of it

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 274
Joined: Fri Apr 04, 2008 01:25 PM
Re: Update problems: Undefined symbol 'ModuleFakeDyn'
Posted: Fri Jun 30, 2017 08:53 AM

Antonio,

thanks for the info.

In my xharbour\include\hbinit.h (12429 Bytes) ModuleFakeDyn is defined, however in my bcc\include\hbinit.h ModuleFakeDyn (11.094 Bytes) is not defined. Is there a mix-up between these files or is it ok, that this file is in both directories?

Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Update problems: Undefined symbol 'ModuleFakeDyn'
Posted: Fri Jun 30, 2017 09:24 AM
Yes, you have a "mix-up". Please download BCC from this page:

http://xharbour.org/index.asp?page=download/windows/required_win

EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Update problems: Undefined symbol 'ModuleFakeDyn'
Posted: Fri Jun 30, 2017 10:25 AM

Gilbert,

> bcc\include\hbinit.h

That file should not be there.

Please delete it

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion