C code to Executable fails

10 views
Skip to first unread message

Emelian Pugachev

unread,
Apr 30, 2024, 5:14:49 PMApr 30
to cython-users
Hello. I am new to Cython. I watched some tutorial videos and tried to follow all steps.

I need some help to find out best way to build standalone executables with Python.

This is how I do it now.

1. `cython -3 uc.py --embed`
2. `gcc uc.c -w -I"C:\Program Files\Python311\include" -L"C:\Program Files\Python311\libs" -lpython311 -o uc.exe`

This worked for simple hello script. But more complex scripts gives a same error everytime.

```
  426 |     enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
      |            ^~~~~~~~~~~~~~~~~~~~~~~~
```

 I will really appreciate any help.
Reply all
Reply to author
Forward
0 new messages