Compilation of programs in HMG 3.4.3

489 views
Skip to first unread message

Peter Armand Menon

unread,
Feb 8, 2017, 4:02:53 AM2/8/17
to Harbour Users
I am not able to compile anything. I get the error -

                    Resource compiler - 42 'Windres' is not recognised as an internal or external command

Any ideas? Any help would be appreciated
Peter

Serge Girard

unread,
Feb 8, 2017, 6:39:58 AM2/8/17
to Harbour Users
Go to HMGFORUM.COM for more information.
Serge

Op woensdag 8 februari 2017 10:02:53 UTC+1 schreef Peter Armand Menon:

Peter Armand Menon

unread,
Feb 8, 2017, 6:20:20 PM2/8/17
to harbou...@googlegroups.com
Serge, Thanks for the suggestion.

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-users+unsubscribe@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/wHM29RxV2TY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Peter Armand Menon

unread,
Feb 8, 2017, 10:41:11 PM2/8/17
to harbou...@googlegroups.com
Hello Serge,

I tried the HMG Forum and got some advice about refreshing the MINGW setup.
I also did some path settings in my Windows 10 setup
I am now getting a different error when trying to run the program - "unable to start the program (0cx000007b)

Any ideas?
Thanks in advance
Peter

s...@pass-sys.be

unread,
Feb 9, 2017, 9:34:16 AM2/9/17
to harbou...@googlegroups.com

Hello Peter,

Can you please send the piece (or whole( PRG which is causing this error?

Serge



Op 9/02/2017 om 4:41 schreef Peter Armand Menon:
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
Met vriendelijke groeten,

Serge Girard



Avast logo

Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
www.avast.com


CRajuP

unread,
Feb 9, 2017, 1:25:14 PM2/9/17
to Harbour Users
Hi Peter
Sorry to be off topic. I am having the same problem while trying to build for 64 bits(32 bits works ok)
Could you register yourself on the HMGforum ? How ? I did not find any "Sign in" button.
Did you contact someone by email ? I sent them an email sometime back (through "Contact us" button) but got no reply.
Pls help
Thanks 
Rajeev Chavan

Peter Armand Menon

unread,
Feb 9, 2017, 7:11:26 PM2/9/17
to harbou...@googlegroups.com
Hello Serge,

I am attaching a sample program that gives the error after compilation & linking.

BTW - I get the same error when I try running c:\hmg.3.4.3\_BuildAllLib64.bat. In fact the compile sequences run correctly and the error comes at the end of all complile sequences.

From what I have been able to learn from searching for error "0xc000007b" it is a Windows error pointing to some error in the executable file header format.

I am using a Lenovo z50-75 with an AMD A10 processor with 8GB RAM and 1TB HDD.

I get the same error regardless of whether I compile 32bits or 64 bits

Kind regards
Peter


You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
Met vriendelijke groeten,

Serge Girard



Avast logo

Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
www.avast.com


--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-users+unsubscribe@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/wHM29RxV2TY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sample.prg

Peter Armand Menon

unread,
Feb 9, 2017, 7:15:31 PM2/9/17
to harbou...@googlegroups.com
Hi Rajeev,

I am having trouble with both 32bits & 64bits.
I too want to register on the HMGForum but there is no "Register" button.
I too used the Contact Us twice, but no response so far.
Sorry I am not in a position to help :(( I too am feeling stuck
Will share anything I learn.
Kind regards
Peter


--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-users+unsubscribe@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/wHM29RxV2TY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Peter Armand Menon

unread,
Feb 9, 2017, 7:17:17 PM2/9/17
to harbou...@googlegroups.com
P.S. Serge,

I get the same error regardless of which of the sample programs I try to compile and run.

Peter

SSingh

unread,
Feb 9, 2017, 9:10:46 PM2/9/17
to Harbour Users
Hi Peter,


>>From what I have been able to learn from searching for error "0xc000007b" it is a Windows error pointing to some error in the executable file header format.

This error appears when the system does not have the correct  "Microsoft Visual C++ Redistributable Packages".
https://www.reddit.com/r/Windows10/comments/3gc25p/is_there_an_error_0xc000007b_fix_for_windows_10/
http://answers.ea.com/t5/Origin/Windows-10-Origin-start-up-error-0xc000007b/td-p/4699279

For me it was VC++ 2010 (it was not a HMG program). http://www.microsoft.com/en-us/download/details.aspx?id=5555

I have HMG 3.4.0 (I don't use it), and your sample compiles and runs just fine under Win7x64.

-SSingh

Peter Armand Menon

unread,
Feb 10, 2017, 3:26:12 AM2/10/17
to harbou...@googlegroups.com
Hi SSingh,

Thanks for the suggestion.
I tried your solution but still have a problem.
If I run "i686-w64-mingw32-c++.exe" - or - "i686-w64-mingw32-g++.exe" - or - "i686-w64-mingw32-gcc.exe" directly I get the same error.
There seems to be something wrong with my C Runtime setup that your solution does not solve.

Thanks for the help
Kind regards
Peter


--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-users+unsubscribe@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/wHM29RxV2TY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Peter Armand Menon

unread,
Feb 10, 2017, 3:28:00 AM2/10/17
to harbou...@googlegroups.com
Hi Rajeev,

There is now a "Register" button on HMGForum

Kind regards
Peter

On 9 February 2017 at 23:55, CRajuP <rpc2...@gmail.com> wrote:

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-users+unsubscribe@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/wHM29RxV2TY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

SSingh

unread,
Feb 10, 2017, 3:51:44 AM2/10/17
to Harbour Users
If you are using the x64 edition of windows then sometimes it helps to install both x86 and x64 VC++ Redistributable Packages,
I had to do that in one such case.

-SSingh

Serge Girard

unread,
Feb 10, 2017, 3:57:48 AM2/10/17
to Harbour Users
Now you can register on HMGFORUM !
I compiled sample without any problems, so I suggest to ask the HMGFORUM.


Serge

Op woensdag 8 februari 2017 10:02:53 UTC+1 schreef Peter Armand Menon:
I am not able to compile anything. I get the error -

Peter Armand Menon

unread,
Feb 10, 2017, 4:20:34 AM2/10/17
to harbou...@googlegroups.com
Hi SSingh

Thanks for the suggestion.
I Downloaded both x86 & x64 VC++ Redistributable Packages and installed them.

No change in status. The problem persists :((

Kind regards
Peter

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-users+unsubscribe@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/wHM29RxV2TY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

CRajuP

unread,
Feb 10, 2017, 1:50:40 PM2/10/17
to Harbour Users
Thanks for informing. I already got registered.


On Friday, February 10, 2017 at 1:58:00 PM UTC+5:30, Peter Armand Menon wrote:
Hi Rajeev,

There is now a "Register" button on HMGForum

Kind regards
Peter
On 9 February 2017 at 23:55, CRajuP <rpc2...@gmail.com> wrote:
Hi Peter
Sorry to be off topic. I am having the same problem while trying to build for 64 bits(32 bits works ok)
Could you register yourself on the HMGforum ? How ? I did not find any "Sign in" button.
Did you contact someone by email ? I sent them an email sometime back (through "Contact us" button) but got no reply.
Pls help
Thanks 
Rajeev Chavan


On Wednesday, February 8, 2017 at 2:32:53 PM UTC+5:30, Peter Armand Menon wrote:
I am not able to compile anything. I get the error -

                    Resource compiler - 42 'Windres' is not recognised as an internal or external command

Any ideas? Any help would be appreciated
Peter

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.

Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/wHM29RxV2TY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Dušan D. Majkić

unread,
Feb 10, 2017, 5:37:32 PM2/10/17
to Harbour Users
> Resource compiler - 42 'Windres' is not recognised as an internal or
> external command

Windres.exe is mingw resource compiler which is located in the same
directory where compiler is, it should be something like mingw\bin.

Check your mingw installation.
Try to add your mingw/bin to PATH before compiling.

If you are using hbmk2, and hb instalalation with mingw compiler in hb/comp/
it should work out of the box.

Peter Armand Menon

unread,
Feb 10, 2017, 8:28:26 PM2/10/17
to harbou...@googlegroups.com
Hello Dusan,

Thank you for your suggestion which I have already done. Once I set the PATH correctly the problem was solved.

I am now facing a new problem

I am having trouble running the MINGW Compiler - both 32bit an 64bit
I get the error "0xc000007b"

As a result I cannot compile and run any code
Any help would be highly appreciated.

Kind regards
Peter

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.

Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/wHM29RxV2TY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

rpc

unread,
Feb 11, 2017, 5:05:54 AM2/11/17
to harbou...@googlegroups.com
Hi Peter and Dusan
I have windres.exe at correct path C:\hmg.3.4.3\MINGW\bin still I get error 'windres' is not recognized as an internal or external command...
I am using HMG_IDE for compiling.
Can you pls advice what I might be doing wrong.
Thanks

Peter Armand Menon

unread,
Feb 11, 2017, 6:16:14 AM2/11/17
to harbou...@googlegroups.com
Hi rpc

In my setup I have windres.exe at two locations. Please check

C:\hmg.3.4.3\MINGW\mingw64\bin
C:\hmg.3.4.3\MINGW\bin

There is a difference in size of the .exe files at both locations.

Please check.

Peter

Serge Girard

unread,
Feb 11, 2017, 6:55:49 AM2/11/17
to Harbour Users
Peter, I strongly suggest to post this at the hmgforum.com, you are a member allready?

Serge

Op woensdag 8 februari 2017 10:02:53 UTC+1 schreef Peter Armand Menon:
I am not able to compile anything. I get the error -

rpc

unread,
Feb 11, 2017, 2:07:45 PM2/11/17
to harbou...@googlegroups.com
Hi Peter
I do not have 
C:\hmg.3.4.3\MINGW\mingw64\bin folder
There is only 1 windres.exe(925 KB) at C:\hmg.3.4.3\MINGW\bin
Can you pls provide the link from where you downloaded hmg.3.4.3 ?
Thanks

Peter Armand Menon

unread,
Feb 11, 2017, 7:51:17 PM2/11/17
to harbou...@googlegroups.com
Hi rpc,

The link is on the HMG Forum home page

https://drive.google.com/file/d/0B668xI6MaUpKRDNTdDZrSEd6bVk/view

Peter

rpc

unread,
Feb 12, 2017, 5:25:03 AM2/12/17
to harbou...@googlegroups.com
Hi Peter
Thanks for the link.
I have downloaded from the same link but I haven't got windres for 64bits files, I wonder why ?
Any clues ?
Thanks

rpc

unread,
Feb 12, 2017, 4:26:58 PM2/12/17
to harbou...@googlegroups.com
Hi Peter
Thanks for your guidance I can get 64bits working with additional help from posts in HMG forum.
Dr Claudio Soto has done an amazing job.
How about your problem ? Could you solve it ?
You must post your problem at HMG Forum. 
There are some geniuses sitting out there :D 

Peter Armand Menon

unread,
Feb 12, 2017, 7:49:13 PM2/12/17
to harbou...@googlegroups.com
Hi rpc,

Good to know that you have got your system working.
What are you using - CDP, OS etc?
I am using a Lenovo AMD Laptop, AMD A10 CPU, 8GB PAM, 1TB HDD

I am not even ably to compile and run the test sample programs
I also have trouble trying to create a new project. I get the attached error message

Peter
Harbour Err Mgs.JPG

rpc

unread,
Feb 14, 2017, 3:39:16 AM2/14/17
to harbou...@googlegroups.com
Hi Peter
Sorry to reply late.
I have Win 7 with intel processor with 8 gb RAM
I also had the same error msg as you have shown because I was trying to compile the program in c:\hmg.3.4.3 directory.
HMG doesnt compile if there are spaces or special characters,"." , in the path.
See if changing your program file location helps.
I am not a programmer but just somehow gets things done :)

Reply all
Reply to author
Forward
0 new messages