Sep 5

SWIG, Directors, and G++ optimization on RHEL 5.4

Category: Uncategorized

I couldn’t find anyone else who had this problem so in the event you are having a problem where your directors all have cPtr values of 0, I found on RHEL 5.4 that if you use directors and compile with optimization level above -01 suddenly (at least with target java) the swig objects representing the director classes will always have a null cPtr.

Please note that only the file has to be compiled with optimization off to fix the problem.

Comments are off for this post

Comments are closed.