[wxCL-devel] Re: wxc patches for linux
Status: Alpha
Brought to you by:
efuzzyone
From: Paul V. <pa...@ca...> - 2006-03-21 14:23:28
|
Using the 'nm' command under linux you can see which items are available in a shared library. Running this on libwxc.so tells me that wxEVENT_GRID_EDITOR_CREATED is available in the library, so I guess the declarations worked correctly. As far as I am aware you don't need to do anything special to export symbols. This is definately the case with functions. To export something in the so file, however, it does have to be mentioned in the link list (as you can see from my last patch). Hope that answers the question. Paul Surendra Singhi wrote: > In eljevent.cpp, there is code like shown below > > extern "C" > { > EWXWEXPORT_VAR int* wxEVENT_GRID_EDITOR_CREATED = (int*) > &wxEVT_GRID_EDITOR_CREATED; } > > where > #define EWXWEXPORT_VAR > for Linux/Mac. Is this sufficient for exporting variables in .so files? > > Also, if I were to just declare a global variable (without any extern > directive), will it be automatically exported in the .so file? > > Paul, thanks for your patches I have committed them. > > Cheers. |