Skip to content

A problem found in compile standalone excutable #3

@NKUCodingCat

Description

@NKUCodingCat

I am in Linux Mint 18 (base on Ubuntu 16.04), and I try the code in Page 27 which is

gcc $(python-config --cflags) $(python-config --ldflags) ./irrationals.c

gcc raise dozens of error like Undefined reference to ‘Py_Initialize’, when I change code to

gcc $(python-config --cflags) ./irrationals.c $(python-config --ldflags)

Everything works well. So is it a version specific bug?

Python v 2.7.12
Cython v 0.24.1
gcc v 5.4.0 (20160609)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions