Note that there are some explanatory texts on larger screens.

plurals
  1. POCython: Tutorial cannot find external symbols that are never referenced
    text
    copied!<p>So I am completely new to programming in C on a computer (I once compiled code in college, but that is it) so when I was trying to learn Cython I was hopeful I wouldn't have to REALLY learn any C. Maybe I was too hopeful?</p> <p>Anyway, i am doing the tutorial <a href="http://docs.cython.org/src/tutorial/clibraries.html" rel="nofollow">here</a> and encountering issues with the generated C code. Namely, it is giving the following errors:</p> <pre><code>___pyx_pf_5queue_5Queue___dealloc__ queue.obj : error LNK2019: unresolved external symbol _queue_new referenced in function ___pyx_pf_5queue_5Queue___cinit__ \\Vs1\fs2\Operations\Software\VixarFiles_Dev\Playground\cython\tutorial and calgorithms src\queue.pyd : fatal error LNK1120: 2 unresolved externals </code></pre> <p>I don't know where it is getting an "_" in front of those names, it must be writing them itself somewhere when it creates teh C code (it's nowhere in my code). Any help or hints would be appreciated.</p> <p>Possible causes of the problem: - Ok, I didn't follow the tutorial PERFECTLY. I haven't built or installed the library, I simply threw the source code into the same folder as my python files (and named them differently to ensure it didn't overwrite the *.c files). From what I did in C++ class, this should be fine. Is there any reason it might not be? If so, I have no clue how to build a C file normally.</p> <p>I would like to know if anyone has any idea what I'm doing wrong or of a good steps I might take to find out how to solve it. Thanks!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload