Quantcast

C# generated global property?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

C# generated global property?

Jeremy Cowles
Something is generating a spurious global property that has the same name as a C++ class (CSharp_pxr_UsdStage_get, CSharp_pxr_UsdStage_set) -- is there an easy way to determine why that's being generated and from what source file?

Thanks!

--
Jeremy

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Swig-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swig-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: C# generated global property?

William S Fulton


On 3 May 2017 at 20:09, Jeremy Cowles <[hidden email]> wrote:
Something is generating a spurious global property that has the same name as a C++ class (CSharp_pxr_UsdStage_get, CSharp_pxr_UsdStage_set) -- is there an easy way to determine why that's being generated and from what source file?

SWIG should warn if there are duplicate symbols giving the location of the ignored symbol. If not, try search the preprocessed resulting from using 'swig -E'.

William


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Swig-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swig-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: C# generated global property?

Jeremy Cowles
Thanks William!

I figured it out -- it was a macro that wasn't defined and swig was interpreting it as type for a global variable.


On May 3, 2017 12:21 PM, "William S Fulton" <[hidden email]> wrote:


On 3 May 2017 at 20:09, Jeremy Cowles <[hidden email]> wrote:
Something is generating a spurious global property that has the same name as a C++ class (CSharp_pxr_UsdStage_get, CSharp_pxr_UsdStage_set) -- is there an easy way to determine why that's being generated and from what source file?

SWIG should warn if there are duplicate symbols giving the location of the ignored symbol. If not, try search the preprocessed resulting from using 'swig -E'.

William



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Swig-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swig-user
Loading...