求助?openwrt编译求助
在openwrt编译的时候,
Makefile在openwrt/package/pop3client/目录下面,
include $(TOPDIR)/rules.mk
PKG_NAME:=pop3client
PKG_RELEASE:=1
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/pop3client
SECTION:=utils
CATEGORY:=Utilities
TITLE:=pop3client -- prints a snarky message
DEPENDS:=+libstdcpp
endef
define Package/pop3client/description
If you can't figure out what this program does, you're probably
brain-dead and need immediate medical attention.
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
define Package/pop3client/install
$(INSTALL_DIR) $(1)/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pop3client $(1)/bin/
endef
$(eval $(call BuildPackage,pop3client))
工程在openwrt/package/tools/src/目录下,
其中,工程的源代码.cpp放在openwrt/package/pop3client/src/src/目录下,
工程编译的结果放在.cpp的上层目录,也就是openwrt/package/pop3client/src/。
在执行编译的时候 出错。
src/pop3session.o:(.rodata._ZTIN11Pop3Session11ServerErrorE[typeinfo for Pop3Session::ServerError]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
collect2: ld returned 1 exit status