Interactive PowerBasic Forum

IT-Consultant: Charles Pegge => OxygenBasic => Topic started by: James C. Fuller on April 04, 2025, 02:14:29 PM

Title: version 0.9.0 2025-04-04 issues
Post by: James C. Fuller on April 04, 2025, 02:14:29 PM
Charles,
  The attached compiles fine with 0.9.0 2025-04-04 but the output is not correct.
Compiled with 0.9.0 2025-04-01 the output is correct.

James
Title: Re: version 0.9.0 2025-04-04 issues
Post by: Roland Stowasser on April 04, 2025, 04:13:30 PM
I do not know if this is helpful, but I used co2.exe 32-bit to create the 64-bit exe file (I had to add: $filename "pcre_test.exe" at the start of the program) This exe seems to work correctly.


Title: Re: version 0.9.0 2025-04-04 issues
Post by: Charles Pegge on April 04, 2025, 04:31:55 PM
I found the source of the problem, which emerged when I converted console print from a function to a macro

print g_S(1) space(30-len(g_S(1))) " >> " g_S(2) cr

updated here:
https://forum.it-berater.org/index.php/topic,6897.msg28636/topicseen.html#msg28636
Title: Re: version 0.9.0 2025-04-04 issues
Post by: Roland Stowasser on April 05, 2025, 09:56:15 AM
When studying the code of pcre_test.o2bas I found that I missed some innovations.
"uses pcre_test.res" is an interesting option.

It also seems to be possible to create an executable without using $filename "Name". I will keep this procedure. But what command can I use to create pcre_test.exe without using $filename?
Title: Re: version 0.9.0 2025-04-04 issues
Post by: Zlatko Vid on April 05, 2025, 11:01:52 AM
and what is NOW wrong with $ filename "name"  :o
do we must complicate things without reason.
Title: Re: version 0.9.0 2025-04-04 issues
Post by: Charles Pegge on April 05, 2025, 11:09:13 AM
I think James was compiling from the command line.
Title: Re: version 0.9.0 2025-04-04 issues
Post by: James C. Fuller on April 05, 2025, 02:49:25 PM
I actually compile from within RadAsm3 ( I should clean my implementation and post here).
I ONLY work with 64bit

cO2m64 -m -64 pcre_test

James
Title: Re: version 0.9.0 2025-04-04 issues
Post by: Roland Stowasser on April 05, 2025, 06:11:39 PM
Thank you, James. I now understand the purpose of the -32 / -64 option.