🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by koop Sun, 26 Feb 2017 12:10
Problem z kompilacją
#309216
Author: koop
Date: Sun, 26 Feb 2017 12:10
39 lines
2421 bytes
Witam poniżej zamieszczam log z kompilacji.

g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security 
-Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE 
-D_FILE_OFFSET_BITS=64 -I/home/git/learncoin/src 
-I/home/git/learncoin/src/obj -DUSE_IPV6=1 
-I/home/git/learncoin/src/leveldb/include 
-I/home/git/learncoin/src/leveldb/helpers -DHAVE_BUILD_INFO 
-fno-stack-protector -fstack-protector-all -Wstack-protector 
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2  -MMD -MF obj/alert.d -o 
obj/alert.o alert.cpp
In file included from allocators.h:12:0,
                  from serialize.h:22,
                  from netbase.h:10,
                  from util.h:30,
                  from alert.h:13,
                  from alert.cpp:11:
/usr/include/openssl/crypto.h:426:1: error: expected constructor, 
destructor, or type conversion before ‘DEPRECATEDIN_1_0_0’
DEPRECATEDIN_1_0_0(unsigned long (*CRYPTO_get_id_callback(void)) (void))
^
In file included from net.h:11:0,
                  from alert.cpp:13:
/usr/include/openssl/rand.h:98:1: error: expected constructor, 
destructor, or type conversion before ‘void’
void RAND_seed(const void *buf, int num);
^

Czy jest ktoś kto mógł by mi pomóc oraz wyjaśnić co to jest 
DEPRECATEDIN_1_0_0?.

void RAND_seed(const void *buf, int num); znajduje się właśnie za czymś 
takim DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int 
num)). Błąd powyżej również znajduje się za podobnym kawałkiem kodu 
zaczynającym się właśnie od DEPRECATEDIN_1_0_0.

Dawno nie pisałem w c więc nie wiem co się mogło od tego czasu zmienić.

Pozdrawiam.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads