-
Notifications
You must be signed in to change notification settings - Fork 97
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
mlx_new_window segfault, mlx_init returns 0 #40
Comments
When I execute the test program included in the minilibx : ./mlx-test Seems like mlx_init returns 0 |
In case it's still a problem, the The reason why it works this way in your case depends on system: do you use pure Linux/VM/WSL? |
Hello, |
Hi !
My code :
int main(int ac, char **av)
{
void *mlx;
void *win;
}
makefile commands :
gcc -Wall -Wextra -Werror -O3 -c test.c -o test.o
gcc -o test test.o lib/libmlx_Linux.a lib/libft.a -L/usr/lib -lXext -lX11 -lm -lz
I do valgrind ./test
It returns :
==4182== Process terminating with default action of signal 11 (SIGSEGV)
==4182== Access not within mapped region at address 0x20
==4182== at 0x10CA33: mlx_new_window (in /mnt/c/Users/nicol/OneDrive/Bureau/projets/fdf/test)
==4182== by 0x10A697: main (in /mnt/c/Users/nicol/OneDrive/Bureau/projets/fdf/test)
==4182== If you believe this happened as a result of a stack
==4182== overflow in your program's main thread (unlikely but
==4182== possible), you can try to increase the size of the
==4182== main thread stack using the --main-stacksize= flag.
==4182== The main thread stack size used in this run was 8388608.
Any idea ?
The text was updated successfully, but these errors were encountered: