
Hi,
I think the code maintainers can add it in smi.h, instead of expecting the library users to add it.
#ifdef __cplusplus extern "C" { #endif
extern int smiInit(const char *tag); ....... ......
#ifdef __cplusplus } #endif
#endif /* _SMI_H */
"Ashok Kumar [ GVG DDF ]" wrote:
Hi, of course you should use extern c , to build in c++ regards ashok -----Original Message-----
From: Ramesh Natarajan [mailto:ramesh@motorola.com] Sent: Monday, May 27, 2002 11:41 AM To: libsmi@ibr.cs.tu-bs.de Subject: [libsmi] extern "C" missing in smi.h
Hi all,
Currently it is not possible to use libsmi in c++ program. I think extern "C" must be specified in smi.h for the apis so that C++ programs can link libsmi
Any suggestions??
Regds, Ramesh
--
!! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to libsmi-request@ibr.cs.tu-bs.de !! or look at https://www.ibr.cs.tu-bs.de/mailman/listinfo/libsmi.