Harbour MiniGUI IDE 2.6.4 and Vista 32bit

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
PRINCEMERCURE
Posts: 3
Joined: Wed Nov 26, 2008 3:46 pm
Location: Belgium

Harbour MiniGUI IDE 2.6.4 and Vista 32bit

Post by PRINCEMERCURE »

Hello,
I have installed "Harbour MiniGUI 2.0.031 (2007.06.26)" on my c:\hmg... and installed "Harbour MiniGUI IDE 2.6.4" on my c:\HmgIde...

I have followed the first tuto "Quick start", the example with the "Helloworld".

When I use Ide, I have 11 files on my C:\HmgIde\test\;
_temp.o
_temp.rc
Helloworld.Hpj
Helloworld.hpp
Helloworld.hpx
HELLOWORLD.o
Helloworld.Prg
Main.Fmg
MAIN.O
Main.Prg
MAIN.Rc

When I "run" the module, I receive this message ;

C:\HmgIde\Test\MAIN.o:MAIN.c:(.text+0x39): multiple definition of `HB_FUN_MAIN'
C:\HmgIde\Test\HELLOWORLD.o:HELLOWORLD.c:(.text+0x39): first defined here
ld: cannot find -lgui
..
100
200
numbers and numbers...

Lines 11235, Functions/Procedures 1
Generating C source output to 'C:\HmgIde\Test\MAIN.c'... Done.
Harbour Beta build 0.99-3 Intl.
Copyright 1999-2007, http://www.harbour-project.org/
HMG build 2.0.031 - http://harbourminigui.googlepages.com/
Compiling 'HELLOWORLD.prg'...
100
200
numbers and numbers....

Do you think that "Harbour MiniGUI IDE 2.6.4" is compatible with Windows Vista 32bits ?

Best regards.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Harbour MiniGUI IDE 2.6.4 and Vista 32bit

Post by esgici »

PRINCEMERCURE wrote:Hello,

When I "run" the module, I receive this message ;

C:\HmgIde\Test\MAIN.o:MAIN.c:(.text+0x39): multiple definition of `HB_FUN_MAIN'
C:\HmgIde\Test\HELLOWORLD.o:HELLOWORLD.c:(.text+0x39): first defined here
ld: cannot find -lgui
...
100
200
numbers and numbers...

...

Do you think that "Harbour MiniGUI IDE 2.6.4" is compatible with Windows Vista 32bits ?

Best regards.
Bonjour PRINCE,

Soyez bien venu :)

IMHO You have a compatibility issue, but no between HMG and OS (Vista); between HMG and HMG-IDE.
Please use latest releases of both: HMG 2.6.7 and HMG-IDE 2.6.4.

Regarding to error: may be you have two "Main" procedure/function; f.e. one in Main.prg and one in HelloWord.prg. The rule is simple : every HMG project must have one and only one "Main" module ( function or procedure ).

Regards

--

esgici
Viva INTERNATIONAL HMG :D
PRINCEMERCURE
Posts: 3
Joined: Wed Nov 26, 2008 3:46 pm
Location: Belgium

Re: Harbour MiniGUI IDE 2.6.4 and Vista 32bit

Post by PRINCEMERCURE »

Merci Esgici pour votre réponse.
Thank you Esgici for your answer.

I have installed « Harbour MiniGUI 2.6.7 (2008.10.09) » on my c:\HMG... and « Harbour MiniGUI IDE 2.6.4 » on my c:\HmgIde.

I have a little problem when I follow your first tuto “Quick start” with the example “Helloworld”.

In the program « IDE », as soon as I click on the [Save] button for the file “Helloworld.Hpj”, a new file « Main.prg » appears with some codes;
----------------------------------------------------
#include <minigui.ch>

Function Main

Load Window Main
Main.Center
Main.Activate

Return
--------------------------------------------------------

Apparently, I have to work in this file « Main.prg ». It's not possible for me to create a new module or to save « Main.prg » with an other name (like Helloworld.prg).

In other words, it's not possible for me to follow your tuto.

I have noticed that 2 others files are automatically generated;
Main.Fmg
MAIN.RC

Thank you for you “welcome” in French.

Best regards,

Good evening and good week-end.
Bonsoir et bon week-end.

Princemercure
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Harbour MiniGUI IDE 2.6.4 and Vista 32bit

Post by esgici »

Salut Prince :)
PRINCEMERCURE wrote: I have noticed that 2 others files are automatically generated;
Main.Fmg
MAIN.RC
That is correct, this feature added with HMG-IDE 2.5.8 at 20 Aug 2008.
...
Apparently, I have to work in this file « Main.prg ». It's not possible for me to create a new module or to save « Main.prg » with an other name (like Helloworld.prg).
Don't panic :!:

HMG is a HIGHLY user-friendly project and has many possibilities :D

Simply :

- Select by clicking "main.fmg" in Project Browser windows
- Select "Exclude Item" from "Project" Menu

Repeat this for "Main.prg"

That is all; you have now a "clean" project and you can easly follow examples and tutors.

Moreover, for following a sample/tutor it's not mandatory using file (project, module, form ) names exactly. You can apply "Helloword" sample by using "main.prg" instead of "HelloWord.prg"

...
In other words, it's not possible for me to follow your tuto.
Again, don't panic :!:

This conflict is only my personal fault :( I haven't idle time for corrections on tutors after "automatically created a new main module, main form" feature added to HMG.

You may want to read related topic in our forum.

Good HMG'ing :)

Regards

--

esgici
Viva INTERNATIONAL HMG :D
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Harbour MiniGUI IDE 2.6.4 and Vista 32bit

Post by esgici »

esgici wrote: ...
This conflict is only my personal fault :( I haven't idle time for corrections on tutors after "automatically created a new main module, main form" feature added to HMG.
...
Corrected : You may read in here or here.

Regards

--

esgici
Viva INTERNATIONAL HMG :D
PRINCEMERCURE
Posts: 3
Joined: Wed Nov 26, 2008 3:46 pm
Location: Belgium

Re: Harbour MiniGUI IDE 2.6.4 and Vista 32bit

Post by PRINCEMERCURE »

Thank you for explanation.

Regards,

Princemercure.
Post Reply