>
>
> C is binary compatible in a sense that there is no name mangling, but
> different compilers may need different C runtimes, specially if there is
> memory allocation/deallocation across the libraries it will be a disaster.
>

This is especially true if you are on Windows.  Each version of Visual
Studio will link against a different runtime.  Even debug and release are
different runtimes.

The most important thing to ensure is that memory allocation and freeing
are done in the same runtime.  Also file opens and closes.  Otherwise you
will get bugs that are very difficult to track down.

Dana
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to