Hi! I did C 17 years ago and just started to play with it again. I have these to program: main.c and a boot.h. Both program are written in C/C++. Whem compiled it (using a make file), I got the following errors:
make g++ -I/usr/include/elf -I/usr/include/common -I/usr/include/triton -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -fno-stack-protector -fpic -fshort-wchar -mno-red-zone -Wall -DEFI_FUNCTION_WRAPPER -c main.c -o main.o In fileTue 5:33 PM
make
g++ -I/usr/include/elf -I/usr/include/common -I/usr/include/triton -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -fno-stack-protector -fpic -fshort-wchar -mno-red-zone -Wall -DEFI_FUNCTION_WRAPPER -c main.c -o main.o
In file included from main.c:13:0:
/usr/include/boot.h:62:23: error: ‘vm’ has not been declared
/usr/include/boot.h:66:15: error: ‘vm’ does not name a type
/usr/include/boot.h:73:15: error: ‘vm’ does not name a type
In file included from /usr/include/efi/efi_sys.h:35:0,
from main.c:17:
/usr/include/efi/efibind.h:54:9: error: expected ‘;’ before ‘typedef’
main.c:47:1: error: invalid conversion from ‘const wchar_t*’ to ‘CHAR16* {aka short unsigned int*}’ [-fpermissive]
main.c: In function ‘void WaitDebugger()’:
main.c:97:57: error: invalid conversion from ‘const wchar_t*’ to ‘CHAR16* {aka short unsigned int*}’ [-fpermissive]
In file included from main.c:18:0:
/usr/include/efi/efilib.h:389:1: error: initializing argument 1 of ‘UINTN Print(CHAR16*, ...)’ [-fpermissive]
main.c:98:57: error: invalid conversion from ‘const wchar_t*’ to ‘CHAR16* {aka short unsigned int*}’ [-fpermissive]
In file included from main.c:18:0:
/usr/include/efi/efilib.h:389:1: error: initializing argument 1 of ‘UINTN Print(CHAR16*, ...)’ [-fpermissive]
main.c:99:37: error: invalid conversion from ‘const wchar_t*’ to ‘CHAR16* {aka short unsigned int*}’ [-fpermissive]
In file included from main.c:18:0:
/usr/include/efi/efilib.h:389:1: error: initializing argument 1 of ‘UINTN Print(CHAR16*, ...)’ [-fpermissive]
main.c:103:24: error: invalid conversion from ‘const wchar_t*’ to ‘CHAR16* {aka short unsigned int*}’ [-fpermissive]
In file included from main.c:18:0:
/usr/include/efi/efilib.h:389:1: error: initializing argument 1 of ‘UINTN Print(CHAR16*, ...)’ [-fpermissive]
main.c: In function ‘EFI_STATUS ProcessOptions(CHAR16*, UINT32)’:
main.c:148:46: error: invalid conversion from ‘const wchar_t*’ to ‘CHAR16* {aka short unsigned int*}’ [-fpermissive]
NOTE = I will continue posting the error message in a separate posting. TKS
|
I will put the code of each program in separate postings. Thank you!
|