MingW makefile

Post Reply
Roberto Parisi
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

MingW makefile

Post by Roberto Parisi »

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

Thx in advance,
Roberto Parisi
Roberto Parisi
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Re: MingW makefile

Post by Roberto Parisi »

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

Regards,
Roberto Parisi
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: MingW makefile

Post 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
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: MingW makefile

Post by Otto »

May I ask what MingW is?
Thanks in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: MingW makefile

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
Roberto Parisi
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Re: MingW makefile

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: MingW makefile

Post by Antonio Linares »

Roberto,

What files are failing to compile ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
Roberto Parisi
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Re: MingW makefile

Post 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
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: MingW makefile

Post by Silvio »

Sorry Antonio for the questions,

this Mingw we can compile with fwh ?

it is good than borland cc++ ?
Best Regards, Saludos

Falconi Silvio
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: MingW makefile

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Roberto Parisi
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Re: MingW makefile

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: MingW makefile

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Roberto Parisi
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Re: MingW makefile

Post by Roberto Parisi »

Ok Antonio.

Many thx.

Roberto Parisi
Post Reply