You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run gcc -o test test.c minIni.c at minIni-1.5/dev, it says as follow.
In file included from test.c:8:
minIni.h:54:24: error: unknown type name ‘TCHAR’
54 | int ini_putbool(const TCHAR *Section, const TCHAR *Key, int Value, const TCHAR *Filename);| ^~~~~
minIni.h:54:46: error: unknown type name ‘TCHAR’
54 | int ini_putbool(const TCHAR *Section, const TCHAR *Key, int Value, const TCHAR *Filename);| ^~~~~
minIni.h:54:75: error: unknown type name ‘TCHAR’
54 | int ini_putbool(const TCHAR *Section, const TCHAR *Key, int Value, const TCHAR *Filename);| ^~~~~
In file included from minIni.c:33:
minIni.h:54:24: error: unknown type name ‘TCHAR’
54 | int ini_putbool(const TCHAR *Section, const TCHAR *Key, int Value, const TCHAR *Filename);| ^~~~~
minIni.h:54:46: error: unknown type name ‘TCHAR’
54 | int ini_putbool(const TCHAR *Section, const TCHAR *Key, int Value, const TCHAR *Filename);| ^~~~~
minIni.h:54:75: error: unknown type name ‘TCHAR’
54 | int ini_putbool(const TCHAR *Section, const TCHAR *Key, int Value, const TCHAR *Filename);| ^~~~~
minIni.c:961:5: error: conflicting types for ‘ini_putbool’; have ‘int(const char *, const char *, int, const char *)’
961 | int ini_putbool(const TCHAR *Section, const TCHAR *Key, int Value, const TCHAR *Filename)
| ^~~~~~~~~~~
minIni.h:54:6: note: previous declaration of ‘ini_putbool’ with type ‘int(const int *, const int *, int, const int *)’
54 | int ini_putbool(const TCHAR *Section, const TCHAR *Key, int Value, const TCHAR *Filename);| ^~~~~~~~~~~
I noticed that I changed line 54 of the minIni.h file and the compling is OK. Is this a code error?
- int ini_putbool(const TCHAR *Section, const TCHAR *Key, int Value, const TCHAR *Filename);
+ int ini_putbool(const mTCHAR *Section, const mTCHAR *Key, int Value, const mTCHAR *Filename);
The text was updated successfully, but these errors were encountered:
When I run
gcc -o test test.c minIni.c
atminIni-1.5/dev
, it says as follow.I noticed that I changed line 54 of the minIni.h file and the compling is OK. Is this a code error?
The text was updated successfully, but these errors were encountered: