FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour MingW makefile
Posts: 116
Joined: Thu Oct 13, 2005 05:14 PM
MingW makefile
Posted: Mon Mar 15, 2010 05:36 PM

Hi Antonio,
where can I find (if it exists) mingw makefile to build fivewin library?

Thx in advance,
Roberto Parisi

Posts: 116
Joined: Thu Oct 13, 2005 05:14 PM
Re: MingW makefile
Posted: Sat Mar 20, 2010 09:16 AM

Antonio, is it possible? I read about your tries, can we go with it?

Regards,
Roberto Parisi

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: MingW makefile
Posted: Sat Mar 20, 2010 02:56 PM
Roberto,

These are the rules to build it:
Code (fw): Select all Collapse
.PRG.O:
   c:\harbour\bin\harbour.exe $< /L /N /W /Oobjg\ /I.\include;c:\harbour\include
   c:\mingw\bin\gcc -c -Ic:\harbour\include -Ic:\mingw\include -oobjg\$&.o $&.c
   c:\mingw\bin\ar rc .\lib\FiveHG.lib objg\$&.o

.C.O:
  c:\mingw\bin\gcc -c -D__FLAT__ -D__HARBOUR__ -Ic:\mingw\include -Ic:\harbour\include -Ic:\fwh\include -oobjgc\$&.o $&.c
  c:\mingw\bin\ar rc .\lib\FiveHGC.lib objgc\$&.o

.CPP.O:
  c:\mingw\bin\gcc -c -D__FLAT__ -D__HARBOUR__ -Ic:\mingw\include -Ic:\harbour\include -Ic:\fwh\include -oobjgc\$&.o $&.cpp
  c:\mingw\bin\ar rc .\lib\FiveHGC.lib objgc\$&.o
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: MingW makefile
Posted: Sat Mar 20, 2010 06:38 PM

May I ask what MingW is?
Thanks in advance
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: MingW makefile
Posted: Sat Mar 20, 2010 06:50 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 116
Joined: Thu Oct 13, 2005 05:14 PM
Re: MingW makefile
Posted: Sun Mar 21, 2010 11:40 AM

Thx Antonio.

I have still problems with inline asm... mingw seems want asm("...") instead _asm {...} sintax.

Have you already solved this issue?

Thx in advance,
Roberto Parisi

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: MingW makefile
Posted: Sun Mar 21, 2010 01:01 PM

Roberto,

What files are failing to compile ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 116
Joined: Thu Oct 13, 2005 05:14 PM
Re: MingW makefile
Posted: Sun Mar 21, 2010 02:22 PM

I've got errors on CallDll.c

Another question... I know there are internal functions for fivehc.lib, how to make a working fivehc.lib with mingw?

Regards,
Roberto Parisi

Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: MingW makefile
Posted: Mon Mar 22, 2010 12:51 PM

Sorry Antonio for the questions,

this Mingw we can compile with fwh ?

it is good than borland cc++ ?

Best Regards, Saludos



Falconi Silvio
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: MingW makefile
Posted: Mon Mar 22, 2010 01:06 PM

Roberto,

If you need the libraries we can build them here for you.

Silvio,

Most of the different C compilers are very good. gcc is open source and free. Thats the main difference.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 116
Joined: Thu Oct 13, 2005 05:14 PM
Re: MingW makefile
Posted: Mon Mar 22, 2010 01:25 PM

Yes Antonio, many thx.

I think it's the time to change to a more modern, fast and portable compiler against old and not updated bcc, so I want to test if mingw do the work without problems.

Regards,
Roberto Parisi

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: MingW makefile
Posted: Tue Mar 23, 2010 02:56 PM

Roberto,

In FWH 8.10 we already published a MingW version but there was little interest about it,

Anyhow we are building it again and we will announce when it becomes available again as we have to recompile all modules using gcc and ususally there are compatibily issues.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 116
Joined: Thu Oct 13, 2005 05:14 PM
Re: MingW makefile
Posted: Tue Mar 23, 2010 03:04 PM

Ok Antonio.

Many thx.

Roberto Parisi

Continue the discussion