python - SWIG function not printing output -


i'm having prblem in executing function i've written in c. i've made , interface file given below:

%module cnode %{ #include "cnode.h" %} %include "cnode.h" 

and here c program :

#include <stdio.h> #include "cnode.h" void kill(void) { printf("method executed\n"); } 

the header file:

void kill(void); 

when i'm trying execute in python interpreter, don't output. there problem declarations or bug?

figured out, kill() predefined function won't work. changing name of function works fine.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -