Waitrud Weber’s blog

things and reminders for memories

Analyzer: text: We are going to create text info and ...

They can indicate "previous specification" as note.
"previous specification" is compiled well and is now commented out of under the function name.
We cannot use the default setting like match="---" in the head of function in mingw32-c++.exe compilation.

1 - > mingw32-c++.exe -c .\schema-003.cpp
.\schema-003.cpp:8:105: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
TEXTINFO_001* baselootin_000 (TEXTINFO_001 *textinfo, char* match="---", char* filename, char* filetime );
^
.\schema-003.cpp:8:15: error: default argument missing for parameter 3 of 'TEXTINFO_001* baselootin_000(TEXTINFO_001*, c
har*, char*, char*)'
TEXTINFO_001* baselootin_000 (TEXTINFO_001 *textinfo, char* match="---", char* filename, char* filetime );
^~~~~~~~~~~~~~
.\schema-003.cpp:8:15: error: default argument missing for parameter 4 of 'TEXTINFO_001* baselootin_000(TEXTINFO_001*, c
har*, char*, char*)'
.\schema-003.cpp:11:106: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
TEXTINFO_001* baselootin_000 (TEXTINFO_001 *textinfo, char* match="---", char* filename, char* filetime ) {
^
.\schema-003.cpp: In function 'TEXTINFO_001* baselootin_000(TEXTINFO_001*, char*, char*, char*)':
.\schema-003.cpp:11:106: error: default argument given for parameter 2 of 'TEXTINFO_001* baselootin_000(TEXTINFO_001*, c
har*, char*, char*)' [-fpermissive]
.\schema-003.cpp:8:15: note: previous specification in 'TEXTINFO_001* baselootin_000(TEXTINFO_001*, char*, char*, char*)
' here
TEXTINFO_001* baselootin_000 (TEXTINFO_001 *textinfo, char* match="---", char* filename, char* filetime );
-  -
 

 

     
 

.\textinfo_001.h Sat Jul 31 07:35:27 2021

1 :#ifndef _TEXTINFO_001_H_
2 :#define _TEXTINFO_001_H_
3 :
4 :class TEXTINFO_001 {
5 :
6 :public:
7 : TEXTINFO_001( char* keyword, char* filename, char* filetime ){}
8 :
9 :
10 :};
11 :
12 :#endif