Compilation error on Win XP PC

HMG Unicode versions 3.1.x related

Moderator: Rathinagiri

Post Reply
mahfuzmurshed
Posts: 10
Joined: Wed Jul 05, 2017 5:14 am
DBs Used: DBF

Compilation error on Win XP PC

Post by mahfuzmurshed »

Hi,

I am facing compilation error every time I try to compile any code after function main() line!

The same program compiles properly on Windows 10 PC.

Can any one help to overcome the error?

Best Regards

Mahfuz
Attachments
error.JPG
error.JPG (62.28 KiB) Viewed 5300 times
mahfuzmurshed
Posts: 10
Joined: Wed Jul 05, 2017 5:14 am
DBs Used: DBF

Re: Compilation error on Win XP PC

Post by mahfuzmurshed »

Sorry,

Error occurs during run time not in compile time.
edk
Posts: 909
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: Compilation error on Win XP PC

Post by edk »

Try to use "Procedure main" instead "Function main()". :?:
mahfuzmurshed
Posts: 10
Joined: Wed Jul 05, 2017 5:14 am
DBs Used: DBF

Re: Compilation error on Win XP PC

Post by mahfuzmurshed »

Thanks for replay,

But there is no change in the error message.

Best Regards

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

Re: Compilation error on Win XP PC

Post by serge_girard »

Mahfuz,

Which errormessage you get? I tried it and it works well.

Serge
There's nothing you can do that can't be done...
User avatar
serge_girard
Posts: 3161
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Compilation error on Win XP PC

Post by serge_girard »

Mahfuz,

By the way: welcome to our HMGforum!

Serge/Belgium
There's nothing you can do that can't be done...
mahfuzmurshed
Posts: 10
Joined: Wed Jul 05, 2017 5:14 am
DBs Used: DBF

Re: Compilation error on Win XP PC

Post by mahfuzmurshed »

It also works for me when I compile and run it in Windows 10.

I have already send screen shot which I have got when I try to run the program. The interesting thing that any thing I write after function main() it stops there and show the screen I already send.

There is no error message I found! Simply the program stops at that line and if I click on Step button the a message "Invalid code" with the line number appears!

I am very confused what can I do to overcome this problem.

Best Regards

Mahfuz
edk
Posts: 909
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: Compilation error on Win XP PC

Post by edk »

It's on hmg 3.4.4? You have compiled with debugger. Try without debugger.
mahfuzmurshed
Posts: 10
Joined: Wed Jul 05, 2017 5:14 am
DBs Used: DBF

Re: Compilation error on Win XP PC

Post by mahfuzmurshed »

It is hmg 3.4.3 and I compile it with command line :
build aTest

I have tried with /d switch and without /d switch.

But get to same result.
mahfuzmurshed
Posts: 10
Joined: Wed Jul 05, 2017 5:14 am
DBs Used: DBF

Re: Compilation error on Win XP PC

Post by mahfuzmurshed »

Hi,
At last I have found the solution!!!

I found in the build.bat file the following line:
Build [ /n ] [ /d ] [ /c ] <program.prg> | <project.hbp> [<hbmk2 params>]

Then I studied the switches of hbmk2 and found a switch -b[-] which will enable/disable the debugger.

So, I use -b- switch at the end of my command line e.g. build /n /c test -b-

Thanks everyone who try to help me and also I think my solution may help others to overcome run time debugger problem.

Best Regards
Mahfuz
Post Reply