News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

pocc v13 error messages

Started by TimoVJL, April 07, 2025, 12:23:27 PM

Previous topic - Next topic

TimoVJL

#if 'A' == '\301'
# define SQLITE_EBCDIC 1
#else
# define SQLITE_ASCII 1
#endif
sqlite3.c(14757): error #1032: Character constant is out of range.
32-bit project
Building mutex_w32.obj.
C:\code\PellesC13b\Include\Win\winnt.h(4008): error #2119: Redeclaration of '__memory_barrier', previously declared at C:\code\PellesC13b\Include\intrin.h(152).

May the source be with you

Pelle

Quote from: TimoVJL on April 07, 2025, 12:23:27 PM[/code]
sqlite3.c(14757): error #1032: Character constant is out of range.
Looks like you need the /J compiler option...

Quote from: TimoVJL on April 07, 2025, 12:23:27 PMC:\code\PellesC13b\Include\Win\winnt.h(4008): error #2119: Redeclaration of '__memory_barrier', previously declared at C:\code\PellesC13b\Include\intrin.h(152).
Can you please check if changing line 4008 in <winnt.h>
from
void _ReadWriteBarrier(void)
to
void __cdecl _ReadWriteBarrier(void)
makes a difference?

/Pelle

TimoVJL

#2
void __cdecl _ReadWriteBarrier(void) worked

SQLite seems to have a bugSQLITE_PRIVATE int sqlite3ShadowTableName(sqlite3 *db, const char *zName){
  char *zTail;                  /* Pointer to the last "_" in zName */
  Table *pTab;                  /* Table that zName is a shadow of */
  zTail = strrchr(zName, '_');
  if( zTail==0 ) return 0;
  *zTail = 0;
with this:const char *zName
May the source be with you