想要实现编码转换,然而编译错误 undefined reference to `iconv_open'
Posted: Fri Mar 27, 2020 8:51 am
Code: Select all
#include "include.h"
#include <iconv.h>
extern struct demoksApi demoks;
void System_SleepLoop(void)
{
unsigned char key;
char string[32];
Gpio_init();
OLED_Init();
OLED_DispStr16(0,0,"Startup..",0);
OLED_DispStr16(0,2,"启动..",0);
printf("启动..\r\n");
iconv_t cd;
iconv_open("gb2312","utf-8");
printf("iconv_open()\r\n");