Pardon double post - Mutliple Definitions using Harbour

Pardon double post - Mutliple Definitions using Harbour

Postby lmheimendinger » Sun Dec 04, 2016 1: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.
lmheimendinger
 
Posts: 9
Joined: Sat Dec 03, 2016 10:29 pm

Re: Pardon double post - Mutliple Definitions using Harbour

Postby Antonio Linares » Sun Dec 04, 2016 8:10 am

What C compiler are you using ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41323
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 13 guests

cron