FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Pardon double post - Mutliple Definitions using Harbour
Posts: 9
Joined: Sat Dec 03, 2016 10:29 PM
Pardon double post - Mutliple Definitions using Harbour
Posted: Sun Dec 04, 2016 01:46 AM

Sorry but I posted first in Clipper forum but believe it might be more appropriate here.

am helping out a friend who has an old Clipper app that I am trying to rebuild with Harbour. It has 10 .prg files, all of which compile cleanly, but then the noise starts. Line after line on the console that first names a function like HB_FUN_MENUSETP as multiple definition followed by a line that says fir defined here. This is repeated many times for each .prg file.

I am using

hbmk2 -oappname .prg .c

as the command line. All of the .prg files compile successfully.

I stumbled across a few posts here related to multiple definitions but I was not really able to discern how the problem was solved, or even exactly what it is. Is it a command line option, something needed in the source code, libraries to be included or excluded? The execution of hbmk2 suppresses commands it seems, so I am not completely certain what it is executing (which compiler, linker, e.g.). It was a standard install for Windows (10).

Would really appreciate any guidance. Thanks in advance.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Pardon double post - Mutliple Definitions using Harbour
Posted: Sun Dec 04, 2016 08:10 AM

What C compiler are you using ?

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion