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
Has thanked: 14 times

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: 2166
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 472 times
Been thanked: 108 times
Contact:

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: 582
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia
Has thanked: 16 times
Been thanked: 111 times

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: 723
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Been thanked: 91 times
Contact:

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
Has thanked: 14 times

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: 1035
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 170 times
Been thanked: 83 times

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
Has thanked: 14 times

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: 2166
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 472 times
Been thanked: 108 times
Contact:

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

Me too !

Serge

Post Reply