Compilation error on Win XP PC
Moderator: Rathinagiri
-
- Posts: 10
- Joined: Wed Jul 05, 2017 5:14 am
- DBs Used: DBF
Compilation error on Win XP PC
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
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 (62.28 KiB) Viewed 5593 times
-
- Posts: 10
- Joined: Wed Jul 05, 2017 5:14 am
- DBs Used: DBF
Re: Compilation error on Win XP PC
Sorry,
Error occurs during run time not in compile time.
Error occurs during run time not in compile time.
Re: Compilation error on Win XP PC
Try to use "Procedure main" instead "Function main()".
-
- Posts: 10
- Joined: Wed Jul 05, 2017 5:14 am
- DBs Used: DBF
Re: Compilation error on Win XP PC
Thanks for replay,
But there is no change in the error message.
Best Regards
Mahfuz
But there is no change in the error message.
Best Regards
Mahfuz
- serge_girard
- Posts: 3178
- 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
Mahfuz,
Which errormessage you get? I tried it and it works well.
Serge
Which errormessage you get? I tried it and it works well.
Serge
There's nothing you can do that can't be done...
- serge_girard
- Posts: 3178
- 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
Mahfuz,
By the way: welcome to our HMGforum!
Serge/Belgium
By the way: welcome to our HMGforum!
Serge/Belgium
There's nothing you can do that can't be done...
-
- Posts: 10
- Joined: Wed Jul 05, 2017 5:14 am
- DBs Used: DBF
Re: Compilation error on Win XP PC
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
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
Re: Compilation error on Win XP PC
It's on hmg 3.4.4? You have compiled with debugger. Try without debugger.
-
- Posts: 10
- Joined: Wed Jul 05, 2017 5:14 am
- DBs Used: DBF
Re: Compilation error on Win XP PC
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.
build aTest
I have tried with /d switch and without /d switch.
But get to same result.
-
- Posts: 10
- Joined: Wed Jul 05, 2017 5:14 am
- DBs Used: DBF
Re: Compilation error on Win XP PC
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
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