The easy solution is not to mix these two libraries, or
at least to use date functions from only one of them.

The difficult solution is to move each colliding functions
into separate source files. But even this may not solve
user problems, as it will be difficult to control which one
is actually used in final app.

Renaming / deleting them is not an option as both libs
implement existing functions with these exact names, but
with different (and incompatible) functionality.

Brgds,
Viktor

On 2009 Sep 17, at 14:53, Chen Kedem wrote:

Just forwarding this from the SF bug tracker.

 Chen.


________________________________________
From: SourceForge.net [nore...@sourceforge.net]
Sent: 17 September 2009 15:45
To: nore...@sourceforge.net
Subject: [ harbour-project-Bugs-2860643 ] Duplicated functions in Harbour libs

Bugs item #2860643, was opened at 2009-09-17 12:45
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100681&aid=2860643&group_id=681

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Other
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Duplicated  functions in Harbour libs

Initial Comment:
Hi, guys. After compiling my MiniGUI application I get this output:
c:\hmg\Harbour\lib/libhbct.a(dattime2.o):dattime2.c:(.text+0x2b0): multiple definition of `HB_FUN_DMY' c:\hmg\Harbour\lib/libhbclipsm.a(date.o):date.c:(.text+0x120): first defined here c:\hmg\Harbour\lib/libhbct.a(dattime2.o):dattime2.c:(.text+0x520): multiple definition of `HB_FUN_MDY' c:\hmg\Harbour\lib/libhbclipsm.a(date.o):date.c:(.text+0x0): first defined here c:\hmg\Harbour\lib/libhbct.a(dattime2.o):dattime2.c:(.text+0x720): multiple definition of `HB_FUN_ADDMONTH' c:\hmg\Harbour\lib/libhbclipsm.a(date.o):date.c:(.text+0x2f0): first defined here

The duplicated functions are both within Harbour libraries. It's possible to delete the functions of one of the referred libraries to solve the problem?
Thanks so much by your attention!
Regards,
Jorge.

----------------------------------------------------------------------
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to