LibBSD | C++ undefined reference when using rtems/bsd/iface.h functions (#57)

Katherine Rocha (@krocha) gitlab at rtems.org
Thu Sep 11 23:45:53 UTC 2025



Katherine Rocha created an issue: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/57



## Summary
Compiler error (undefined reference) when using `rtems_bsd_iface_link_state` with `#include <rtems/bsd/iface.h>` in C++. Fixed locally by wrapping `#include` in `extern "C" {}`.


## Steps to reproduce
Call `rtems_bsd_iface_link_state` with `#include <rtems/bsd/iface.h>` in C++.

### Pre-set options

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/57
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250911/f7ad1171/attachment-0001.htm>


More information about the bugs mailing list