Liste des Groupes | Revenir à cl c |
On 10/14/2024 5:36 PM, Mike Terry wrote:https://github.com/plolcott/x86utm/blob/master/x86utm.slnOn 15/10/2024 00:33, Chris M. Thomasson wrote:Ahhhh.... Let me try again for x86 in MSVC. Well:On 10/14/2024 4:14 PM, tTh wrote:>On 10/14/24 04:57, olcott wrote:>>>
*Fully operational code is here*
https://github.com/plolcott/x86utm/blob/master/Halt7.c
This program does not compile, so it cannot be executed.
Halting problem solved.
>
Shit happens. A lot of things. I cannot get it to compile at all. MSVC, GCC, whatever...
>
>
>
>
>
main.c: In function ‘Decide_Halting0’:
main.c:239:32: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
239 | PushBack(*execution_trace, (u32)*decoded, sizeof(Decoded_Line_Of_Code));
| ^
You're trying to compile it as 64 bit code. PO's x86utm.exe expects 32- bit.
_______________________
Severity Code Description Project File Line Suppression State Details
Error (active) E0140 too many arguments in function call ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1177
Error (active) E0140 too many arguments in function call ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1239
Error (active) E0140 too many arguments in function call ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1320
Error (active) E0167 argument of type "void (*)(u32 N)" is incompatible with parameter of type "ptr" (aka "void (*)()") ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1262
Error (active) E0167 argument of type "ptr2" (aka "int (*)()") is incompatible with parameter of type "ptr" (aka "void (*)()") ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1311
Error (active) E0167 argument of type "ptr2" (aka "int (*)()") is incompatible with parameter of type "ptr" (aka "void (*)()") ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1311
Error (active) E0167 argument of type "int (*)(int (*M)())" is incompatible with parameter of type "int (*)()" ct_thread_playground D:\ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1376
Error (active) E0167 argument of type "int (*)()" is incompatible with parameter of type "ptr" (aka "void (*)()") ct_thread_playground D:\ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1230
Error (active) E0167 argument of type "int (*)()" is incompatible with parameter of type "ptr" (aka "void (*)()") ct_thread_playground D:\ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1251
Error (active) E0167 argument of type "int (*)()" is incompatible with parameter of type "ptr" (aka "void (*)()") ct_thread_playground D:\ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1302
Error (active) E0167 argument of type "int (*)()" is incompatible with parameter of type "ptr" (aka "void (*)()") ct_thread_playground D:\ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1349
Error (active) E0167 argument of type "int (*)()" is incompatible with parameter of type "ptr" (aka "void (*)()") ct_thread_playground D:\ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1349
Error (active) E0167 argument of type "int (*)()" is incompatible with parameter of type "ptr" (aka "void (*)()") ct_thread_playground D:\ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1369
Error (active) E0167 argument of type "int (*)()" is incompatible with parameter of type "ptr" (aka "void (*)()") ct_thread_playground D:\ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1369
Error (active) E0167 argument of type "const char *" is incompatible with parameter of type "char *" ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 102
Error (active) E0167 argument of type "const char *" is incompatible with parameter of type "char *" ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 106
Error (active) E0167 argument of type "const char *" is incompatible with parameter of type "char *" ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 107
Error (active) E0167 argument of type "const char *" is incompatible with parameter of type "char *" ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 248
Error (active) E0167 argument of type "const char *" is incompatible with parameter of type "char *" ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 250
Error (active) E0167 argument of type "const char *" is incompatible with parameter of type "char *" ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 252
Error (active) E0167 argument of type "const char *" is incompatible with parameter of type "char *" ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1093
Error (active) E0167 argument of type "const char *" is incompatible with parameter of type "char *" ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1094
Error (active) E0167 argument of type "const char *" is incompatible with parameter of type "char *" ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1095
Error (active) E0167 argument of type "const char *" is incompatible with parameter of type "char *" ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1100
Error (active) E0167 argument of type "const char *" is incompatible with parameter of type "char *" ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1117
Error (active) E0167 argument of type "const char *" is incompatible with parameter of type "char *" ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1118
Error (active) E0167 argument of type "const char *" is incompatible with parameter of type "char *" ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1119
Error (active) E0167 argument of type "const char *" is incompatible with parameter of type "char *" ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1124
Error (active) E0167 argument of type "const char *" is incompatible with parameter of type "char *" ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1337
Error (active) E0167 argument of type "const char *" is incompatible with parameter of type "char *" ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1376
Error C2664 'void OutputString(char *)': cannot convert argument 1 from 'const char [49]' to 'char *' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 250
Error C2664 'void OutputString(char *)': cannot convert argument 1 from 'const char [48]' to 'char *' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1100
Error C2664 'void OutputString(char *)': cannot convert argument 1 from 'const char [48]' to 'char *' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1124
Error C2664 'void OutputString(char *)': cannot convert argument 1 from 'const char [44]' to 'char *' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 248
Error C2664 'void OutputString(char *)': cannot convert argument 1 from 'const char [41]' to 'char *' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 252
Error C2664 'void OutputString(char *)': cannot convert argument 1 from 'const char [25]' to 'char *' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1337
Error C2664 'void Output(char *,u32)': cannot convert argument 1 from 'const char [51]' to 'char *' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1093
Error C2664 'void Output(char *,u32)': cannot convert argument 1 from 'const char [50]' to 'char *' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1117
Error C2664 'void Output(char *,u32)': cannot convert argument 1 from 'const char [34]' to 'char *' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 106
Error C2664 'void Output(char *,u32)': cannot convert argument 1 from 'const char [34]' to 'char *' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 107
Error C2664 'void Output(char *,u32)': cannot convert argument 1 from 'const char [15]' to 'char *' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1094
Error C2664 'void Output(char *,u32)': cannot convert argument 1 from 'const char [14]' to 'char *' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1118
Error C2664 'void Output(char *,u32)': cannot convert argument 1 from 'const char [12]' to 'char *' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 102
Error C2664 'u32 H_prior(ptr,void *)': cannot convert argument 1 from 'void (__cdecl *)(u32)' to 'ptr' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1262
Error C2664 'u32 H_prior(ptr,void *)': cannot convert argument 1 from 'int (__cdecl *)(void)' to 'ptr' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1251
Error C2664 'u32 H_prior(ptr,void *)': cannot convert argument 1 from 'int (__cdecl *)(void)' to 'ptr' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1302
Error C2664 'u32 H0(ptr)': cannot convert argument 1 from 'int (__cdecl *)(void)' to 'ptr' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1230
Error C2664 'u32 H(ptr,ptr)': cannot convert argument 1 from 'ptr2' to 'ptr' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1311
Error C2664 'u32 H(ptr,ptr)': cannot convert argument 1 from 'int (__cdecl *)(void)' to 'ptr' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1349
Error C2664 'u32 H(ptr,ptr)': cannot convert argument 1 from 'int (__cdecl *)(void)' to 'ptr' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1369
Error C2664 'u32 Decide_Halting0(char *,u32 *,Decoded_Line_Of_Code **,u32,Registers **,Registers **,u32 **,u32,u32)': cannot convert argument 1 from 'const char [5]' to 'char *' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1095
Error C2664 'u32 Decide_Halting0(char *,u32 *,Decoded_Line_Of_Code **,u32,Registers **,Registers **,u32 **,u32,u32)': cannot convert argument 1 from 'const char [4]' to 'char *' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1119
Error C2197 'ptr': too many arguments for call ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1177
Error C2197 'ptr': too many arguments for call ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1239
Error C2197 'ptr': too many arguments for call ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1320
Error C2664 'int D(int (__cdecl *)(void))': cannot convert argument 1 from 'int (__cdecl *)(int (__cdecl *)(void))' to 'int (__cdecl *)(void)' ct_thread_playground D: \ct_dev\projects\ct_thread_playground\ct_thread_playground\ct_main.cpp 1376
_______________________
Les messages affichés proviennent d'usenet.