Update problems: Undefined symbol 'ModuleFakeDyn'

Update problems: Undefined symbol 'ModuleFakeDyn'

Postby gkuhnert » Tue Jun 27, 2017 2: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: Select all  Expand view
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
User avatar
gkuhnert
 
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands

Re: Update problems: Undefined symbol 'ModuleFakeDyn'

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Update problems: Undefined symbol 'ModuleFakeDyn'

Postby gkuhnert » Thu Jun 29, 2017 1: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
User avatar
gkuhnert
 
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands

Re: Update problems: Undefined symbol 'ModuleFakeDyn'

Postby Antonio Linares » Fri Jun 30, 2017 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Update problems: Undefined symbol 'ModuleFakeDyn'

Postby gkuhnert » Fri Jun 30, 2017 8: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
User avatar
gkuhnert
 
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands


Re: Update problems: Undefined symbol 'ModuleFakeDyn'

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 117 guests