Archive for the 'Uncategorized' Category
SWIG, Directors, and G++ optimization on RHEL 5.4
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 wrapper.cc file has to be compiled with optimization off to fix the problem.
No commentsPI Day!
This isn’t strictly computer engineering, but at least it is math. Today, 3/14, is PI Day!. Enjoy.
No comments