From: Temp, G. m. <Gar...@ph...> - 2008-06-30 09:46:30
|
Hi I have an issue adding an additional function, i.e. it gets compiled and linked as local function instead of global. The following notes in the make indicate this i.e. BE AWARE that NOT ALL gp_* FUNCTIONS ARE CONSIDERED PUBLIC. How do I ensure my functions are public. Notes about the list of exported symbols: # gp_* also contains internal symbols which are intended for # INTERNAL USE ONLY and should be converted into gpi_* symbols # gpi_* are for libgphoto2/camlib internal use only # NEVER USE gpi_* in frontends! # gp_* gphoto2 API, used in # - frontends # BE AWARE that NOT ALL gp_* FUNCTIONS ARE CONSIDERED PUBLIC. # # Yes, this is messy, but we are going to clean this up. mips2_fp_le-readelf.exe -W -a /cygdrive/N/space/__gphoto_MontaVistaMips32_Debug/o arget/usr/lib/libgphoto2.so |grep gp_camera_fil 11: 000074b4 940 FUNC GLOBAL DEFAULT 10 gp_camera_file_delete 36: 000085bc 1048 FUNC GLOBAL DEFAULT 10 gp_camera_file_get_info 38: 000081f4 968 FUNC GLOBAL DEFAULT 10 gp_camera_file_set_info 224: 00007d34 1216 FUNC GLOBAL DEFAULT 10 gp_camera_file_get 118: 00007860 1236 FUNC LOCAL DEFAULT 10 gp_camera_file_get_partial How can I make this gloabal? 156: 000074b4 940 FUNC GLOBAL DEFAULT 10 gp_camera_file_delete 208: 00007d34 1216 FUNC GLOBAL DEFAULT 10 gp_camera_file_get 230: 000085bc 1048 FUNC GLOBAL DEFAULT 10 gp_camera_file_get_info 237: 000081f4 968 FUNC GLOBAL DEFAULT 10 gp_camera_file_set_info Regards Gary Software Developer Philips Consumer Lifestyle, Lead Innovation Site High-End Displays Pathoekeweg 11, 8000 Brugge, Belgium. Phone +32 50 455 394 |