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 »

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: 3165
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Compiling

Post by serge_girard »

Alan,

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

Serge
There's nothing you can do that can't be done...
User avatar
dragancesu
Posts: 921
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: Compiling

Post by dragancesu »

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

Re: Compiling

Post by mustafa »

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 »

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: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Compiling

Post by bpd2000 »

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 »

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: 3165
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Compiling

Post by serge_girard »

Me too !

Serge
There's nothing you can do that can't be done...
Post Reply