Author Topic: Possible bug?  (Read 1533 times)

RMeyer

  • Newbie
  • *
  • Posts: 9
    • View Profile
Possible bug?
« on: December 02, 2020, 02:14:31 PM »
Hi,

the (BCX-Help) code snippet for the INSTRREV function cannot be
compiled with BCX 7.6.2 and PellesC 9.0 32 bit. 
The error does not occur if BC.Bas line 25339 is changed ( '_stricmp in stricmp).
'_stricmp' can also be found in these lines:
27149, 27153, 27157, 27161,27191,27195,27199,27203,30524,30529.

RMeyer


MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1885
    • View Profile
Re: Possible bug?
« Reply #1 on: December 02, 2020, 05:13:57 PM »
Hi,

the (BCX-Help) code snippet for the INSTRREV function cannot be
compiled with BCX 7.6.2 and PellesC 9.0 32 bit. 
The error does not occur if BC.Bas line 25339 is changed ( '_stricmp in stricmp).
'_stricmp' can also be found in these lines:
27149, 27153, 27157, 27161,27191,27195,27199,27203,30524,30529.

RMeyer

Hi Richard,

The sample compiles and runs fine with Pelles C v10.

stricmp is non-standard and ISO compliance requires the underscore: _stricmp

If compiling with a batch file, you can include the Pelles compiler switch /Go
(/Go                Define compatibility names )

The compiler switch should work with previous versions of Pelles C.



RMeyer

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Possible bug?
« Reply #2 on: December 04, 2020, 12:45:58 PM »
Hi Kevin,
Thanks for your feedback. Sorry, I was stupid and had
accidentally used a LCC compiler bat file for for the test.
LCC (2017-01-27) and not PelleC generates an error message .
RMeyer

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1885
    • View Profile
Re: Possible bug?
« Reply #3 on: December 04, 2020, 12:52:26 PM »
Richard,

No worries ... we are all entitled to a mulligan every now and then  ;D

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1885
    • View Profile
Re: Possible bug?
« Reply #4 on: December 07, 2020, 09:33:59 AM »
Hi Kevin,
Thanks for your feedback. Sorry, I was stupid and had
accidentally used a LCC compiler bat file for for the test.
LCC (2017-01-27) and not PelleC generates an error message .
RMeyer

Hello again Richard,

In the interest of full disclosure ...

Normally, LCC-Win32 compiles the current version of BCX perfectly for 32-bit. 

Today I discovered that Lcc-Win32 will not compile BCX version 7.62.

This relates directly with your bug report.

Future versions of BCX will emit the following line and restore Lcc-Win32's ability to compile BCX:

#define _strnicmp  strnicmp