Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors Compiling (NULL Pointer Errors / Possible Solution) #6

Open
jossgamerYT156 opened this issue Aug 9, 2024 · 0 comments
Open

Comments

@jossgamerYT156
Copy link

Hi!
When compiling on Arch Linux through the make command, i would get this issue(also a warning, though i won't add it to make this message a bit shorter):

pcx.c:293:38: error: assignment to ‘int’ from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  293 |                         expr_lablcnt = NULL;

Something that can be solved simply by changing the NULL value to a 0 value, that way it will compile without a error.

it is probably not recommended, but it works to make it work properly when compiling with make

lines to change are just 293 from pcx.c from function pcx_get_args

Hope this helps someone out there, though still, I am sure the developer wouldn't recommend modifying NULL pointers randomly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant