Compiling

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
asharpham
Posts: 55
Joined: Sat Mar 24, 2018 2:48 pm
DBs Used: DBF

Compiling

Post by asharpham » Wed Mar 28, 2018 9:57 am

This is a very basic question which will tell you of my competency: Why does "..\build" only work in my "MySourceCode" subdirectory? How can I get the compiler to work in other folders so I can keep my test projects separate?

Alan

User avatar
serge_girard
Posts: 2093
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Compiling

Post by serge_girard » Wed Mar 28, 2018 10:25 am

Alan,

Use the HMG IDE (drive:\HMG.3.4.4\IDE\IDE.EXE) to compile and then no worries about build!

Serge

User avatar
dragancesu
Posts: 560
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: Compiling

Post by dragancesu » Wed Mar 28, 2018 11:28 am

Or add your hmg directory in PATH (...;c:\hmg.3.4.4 )

Or search on forum topic with utility SET_HMGPATH and do it

User avatar
mustafa
Posts: 677
Joined: Fri Mar 20, 2009 11:38 am
Location: Alicante - Spain

Re: Compiling

Post by mustafa » Wed Mar 28, 2018 4:40 pm

Alan
I am working with this simple BAT inside the folder where
I have the new amplication I put the main file
Example Main.prg and OK

build.3.4.4_64.bat

@ECHO OFF
call c:\hmg.3.4.4_64\build64.bat Main.prg % *

Sorry that no English
Regards
Mustafa

asharpham
Posts: 55
Joined: Sat Mar 24, 2018 2:48 pm
DBs Used: DBF

Re: Compiling

Post by asharpham » Thu Mar 29, 2018 4:10 am

Thanks Mustafa. I guess I'm still struggling with why we have to use "..\" before the "build" command. Some sort of DOS thing.

Alan

User avatar
bpd2000
Posts: 1024
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Compiling

Post by bpd2000 » Thu Mar 29, 2018 5:05 am

asharpham wrote:
Thu Mar 29, 2018 4:10 am
Thanks Mustafa. I guess I'm still struggling with why we have to use "..\" before the "build" command. Some sort of DOS thing.

Alan
"..\" is used to represent previous directory path short cut, instead you can use c:\hmg.3.4.4_64\build64.bat Main.prg
BPD
Convert Dream into Reality through HMG

asharpham
Posts: 55
Joined: Sat Mar 24, 2018 2:48 pm
DBs Used: DBF

Re: Compiling

Post by asharpham » Thu Mar 29, 2018 8:08 am

Ok that makes sense. Thanks for the lesson. I'm amazed at how much DOS & Clipper I've forgotten!

Alan

User avatar
serge_girard
Posts: 2093
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Compiling

Post by serge_girard » Thu Mar 29, 2018 10:13 am

Me too !

Serge

Post Reply