hellovictoria 发表于 2015-4-20 16:06:34

给Arduino IDE添加openssl的库函数

比如我的程序中有:
#include <LiquidCrystal.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<openssl/rsa.h>
#include<openssl/pem.h>
#include<openssl/err.h>
...
但是,我编译的时候,出错
Arduino: 1.6.0 (Windows 7), Board: "Arduino Yún"

Build options changed, rebuilding all

Using library LiquidCrystal in folder: C:\Users\xiaoy\Desktop\arduino-1.6.0+Intel\libraries\LiquidCrystal



C:\Users\xiaoy\Desktop\arduino-1.6.0+Intel/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_YUN -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8041 -DUSB_MANUFACTURER= -DUSB_PRODUCT="Arduino Yun" -IC:\Users\xiaoy\Desktop\arduino-1.6.0+Intel\hardware\arduino\avr\cores\arduino -IC:\Users\xiaoy\Desktop\arduino-1.6.0+Intel\hardware\arduino\avr\variants\yun -IC:\Users\xiaoy\Desktop\arduino-1.6.0+Intel\libraries\LiquidCrystal\src C:\Users\xiaoy\AppData\Local\Temp\build5537641391518044488.tmp\safereadprint.cpp -o C:\Users\xiaoy\AppData\Local\Temp\build5537641391518044488.tmp\safereadprint.cpp.o

safereadprint.ino:6:24: fatal error: openssl/rsa.h: No such file or directory
compilation terminated.
Error compiling.

我该怎么做啊?


Cain 发表于 2015-4-20 17:45:49

直接把openssl/rsa.h打开到主程序同一个编程页面试试可不可以?
页: [1]
查看完整版本: 给Arduino IDE添加openssl的库函数