Closed lighth7015 closed 5 years ago
Make sure you aren’t doing pointer arithmetic on pointers to void (gcc permits that, but it’s clearly non-standard).
Ah, okay! So what should they be instead, long
pointers?
If you have to ask that, you should consider improving your C skills. Some reading material.
Consider changing or casting the pointer to e.g. unsigned char*
.
I figured, and my skills are rusty because I'm stuck in PHP land all the time.
I see. Btw, you should be able to close resolved issues by yourself.
Yeah, I was just keeping it open while I sat on it, for a bit, but yeah- I can't see any issues here. I need to dive into this more. If I have any actual compiler questions, I'll just open another ticket. Most of my issues will be getting used to not relying on GNU compiler extensions. :p
Hi,
While compiling an ELF loader on Windows, I ran into the following errors:
The file (
elf-loader/elf-module.c
) is as follows:Line 38 is the function
elf_module_get_ptr
.