0

does anyone know why an error like this ?? .

#warning Trying to use Windows header on Android is not wise ^ /storage/emulated/0/C++/Latihan.cpp:116:20: error: invalid operands to binary expression ('char *' and 'datasiswa') if (namaFile== siswa[i]){ ~~~~~~~~^ ~~~~~~~~ 1 error generated.

11th May 2020, 5:48 AM
Hillario Praswara
Hillario Praswara - avatar
5 Answers
- 1
This happens when you use a header file that was actually meant for use on Windows, but you use it on Android. There are a lot of headers available for use only on Windows, for example the windows.h header for the windows API. So if you don't want to get this sorts of errors, check which header files you are using and see if they are platform specific
11th May 2020, 5:54 AM
Ahnaf
Ahnaf - avatar
0
If I use Android, what header files can I use to succeed.
11th May 2020, 6:01 AM
Hillario Praswara
Hillario Praswara - avatar
0
What do you want to make in Android? If I don't know that, I can't specify which header files to use
11th May 2020, 6:04 AM
Ahnaf
Ahnaf - avatar
0
I just want to make a small report program assignment that can save files, with C ++ language material material files, input, output, sorting, and searcing. Thank you for the advice.
11th May 2020, 6:09 AM
Hillario Praswara
Hillario Praswara - avatar
0
No problem, but I will tell you the answer in DM since the forum is not a place for chatting
11th May 2020, 6:13 AM
Ahnaf
Ahnaf - avatar