Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unreferenced function HB_FUN___DBGENTRY

64 views
Skip to first unread message

rajko

unread,
May 25, 2013, 3:46:54 AM5/25/13
to
Hi I tried to compile my project with latest xharbour compiled with mingw 4.7.1 but compiler throws me HB_FUN___DBGENTRY unrefrenced massage, I suppose it's part of libvm and that lib is included in project. All that I googled about this massage is that I should not use HARBOUR_USER_FLAG -b option but I didn't see this flag nowhere in my .bc file.Any suggestion is appriciated.Rajko

Enrico Maria Giordano

unread,
May 25, 2013, 5:21:47 AM5/25/13
to
Rajko,

> Hi I tried to compile my project with latest xharbour
> compiled with mingw 4.7.1 but compiler throws me
> HB_FUN___DBGENTRY unrefrenced massage,

Did you link debug.lib in?

EMG

--
EMAG Software Homepage: http://www.emagsoftware.it
The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum
The Best of Spectrum Games: http://www.emagsoftware.it/tbosg
The EMG Music page: http://www.emagsoftware.it/emgmusic


rajko

unread,
May 25, 2013, 5:51:31 AM5/25/13
to
> Did you link debug.lib in?

No I didn't and thank you, that solved that error but there are few more, I probably didn't include some other libraries as well. Output is:


C:\Tools\mingw\bin\gcc @makefile.lnk
C:/Tools/xharbour/lib/librtl.a(tone.o):tone.c:(.text+0xf1): undefined reference
to `_imp__waveOutOpen@24'
C:/Tools/xharbour/lib/librtl.a(tone.o):tone.c:(.text+0x179): undefined reference
to `_imp__waveOutPrepareHeader@12'
C:/Tools/xharbour/lib/librtl.a(tone.o):tone.c:(.text+0x277): undefined reference
to `_imp__waveOutWrite@12'
C:/Tools/xharbour/lib/librtl.a(tone.o):tone.c:(.text+0x2bb): undefined reference
to `_imp__waveOutUnprepareHeader@12'
c:/tools/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.1/../../../../i686-w64-mingw3
2/lib/../lib/libmingw32.a(lib32_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0
x39): undefined reference to `WinMain@16'
collect2.exe: error: ld returned 1 exit status

librtl is included (2 times actually but I don't understand why).Rajko


Enrico Maria Giordano

unread,
May 25, 2013, 6:05:02 AM5/25/13
to
Rajko,

> C:/Tools/xharbour/lib/librtl.a(tone.o):tone.c:(.text+0xf1): undefined
> reference
> to `_imp__waveOutOpen@24'

Try to link mmsystem.h from Windows SDK.

Saulius

unread,
May 25, 2013, 6:10:12 AM5/25/13
to
> Try to link mmsystem.h from Windows SDK.

or link mingw 4.7.1 compiler winmm lib in.

Saulius


rajko

unread,
May 25, 2013, 6:31:55 AM5/25/13
to
>
> or link mingw 4.7.1 compiler winmm lib in.

Thank you that really saved me :) because I didn't know how to link mmsystem.h from Windows SDK.
One last (hopefully) massage is left and that is:

Enrico Maria Giordano

unread,
May 25, 2013, 8:20:10 AM5/25/13
to
Saulius,

> > Try to link mmsystem.h from Windows SDK.
>
> or link mingw 4.7.1 compiler winmm lib in.

Ops, sorry, I did mean that. :-)

Enrico Maria Giordano

unread,
May 25, 2013, 8:22:01 AM5/25/13
to
Rajko,

> c:/tools/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.1/../../../../i686-w64-mingw3
> 2/lib/../lib/libmingw32.a(lib32_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0
> x39): undefined reference to `WinMain@16'

You have to link a start up code from MinGW (something.o). I don't use
MinGW, sorry.

rajko

unread,
May 25, 2013, 2:40:07 PM5/25/13
to
>
> You have to link a start up code from MinGW (something.o). I don't use
>
> MinGW, sorry.

Thanks for the effort, I will open new topic with more correct title, maybe someone else will know.
0 new messages