How to handle redefinition of a MACRO

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

How to handle redefinition of a MACRO

shreeganesh hegde
My C code is like bellow.

// file.c
#define value 10
#define value 20

void  func()

My Interface file is like bellow.

%module sample
           #include "func.c"
%include "func.c"

When I run the command  "swig -python sample.i", I am getting the error like bellow.
Macro 'value' redefined. The previous declaration for  'value'  is there.

How to handle this?

Thank You

Check out the vibrant tech community on one of the world's most
engaging tech sites,!
Swig-user mailing list
[hidden email]