Page 1 of 1

MingW makefile

Posted: Mon Mar 15, 2010 5:36 pm
by Roberto Parisi
Hi Antonio,
where can I find (if it exists) mingw makefile to build fivewin library?

Thx in advance,
Roberto Parisi

Re: MingW makefile

Posted: Sat Mar 20, 2010 9:16 am
by Roberto Parisi
Antonio, is it possible? I read about your tries, can we go with it?

Regards,
Roberto Parisi

Re: MingW makefile

Posted: Sat Mar 20, 2010 2:56 pm
by Antonio Linares
Roberto,

These are the rules to build it:

Code: Select all

.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
 

Re: MingW makefile

Posted: Sat Mar 20, 2010 6:38 pm
by Otto
May I ask what MingW is?
Thanks in advance
Otto

Re: MingW makefile

Posted: Sat Mar 20, 2010 6:50 pm
by Antonio Linares

Re: MingW makefile

Posted: Sun Mar 21, 2010 11:40 am
by Roberto Parisi
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

Re: MingW makefile

Posted: Sun Mar 21, 2010 1:01 pm
by Antonio Linares
Roberto,

What files are failing to compile ?

Re: MingW makefile

Posted: Sun Mar 21, 2010 2:22 pm
by Roberto Parisi
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

Re: MingW makefile

Posted: Mon Mar 22, 2010 12:51 pm
by Silvio
Sorry Antonio for the questions,

this Mingw we can compile with fwh ?

it is good than borland cc++ ?

Re: MingW makefile

Posted: Mon Mar 22, 2010 1:06 pm
by Antonio Linares
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.

Re: MingW makefile

Posted: Mon Mar 22, 2010 1:25 pm
by Roberto Parisi
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

Re: MingW makefile

Posted: Tue Mar 23, 2010 2:56 pm
by Antonio Linares
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.

Re: MingW makefile

Posted: Tue Mar 23, 2010 3:04 pm
by Roberto Parisi
Ok Antonio.

Many thx.

Roberto Parisi