Eroare compilare sursă

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
KillaMTFK
Nou Venit

Nou Venit
Mesaje: 36
Membru din: 31 Oct 2015, 17:14
Aprecieri: 0
Mulţumiri: 0
Medalii

Primesc următoarea eroare:

Cod: Selectaţi tot

gmake: *** [OBJDIR/cipher.o] Error 1
gmake: *** Waiting for unfinished jobs....
Vreo rezolvare?
Avatar utilizator
ds_aim
Utilizator interzis !

Utilizator interzis !
Mesaje: 309
Membru din: 06 Mar 2014, 17:30
Server: vreau sai ac
Regat: Chunjo
Aprecieri: 0
Mulţumiri: 1  
Medalii

Pune in pla mea toata eroarea, ce crezi ca suntem noi ?
Ceea ce ai postat tu este doar fisierul sursa care nu sa compilat, din diferite motive.
Nimeni nu-i magician sa stie ce probleme ai in server/sursa.

Log-ul complet!
Imagine
Afișează semnătura
Avatar utilizator
KillaMTFK
Nou Venit

Nou Venit
Mesaje: 36
Membru din: 31 Oct 2015, 17:14
Aprecieri: 0
Mulţumiri: 0
Medalii

/usr/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned char; bool T_Align16 = false; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned char*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]':
/usr/include/cryptopp/secblock.h:247:25: required from 'CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned char; A = CryptoPP::AllocatorWithCleanup<unsigned char>; CryptoPP::SecBlock<T, A>::size_type = unsigned int]'
/usr/include/cryptopp/algparam.h:17:2: required from here
/usr/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
CheckSize(n);
^
/usr/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned char>' are not found by unqualified lookup
/usr/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
/usr/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned char; bool T_Align16 = true; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned char*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]':
/usr/include/cryptopp/secblock.h:247:25: required from 'CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned char; A = CryptoPP::AllocatorWithCleanup<unsigned char, true>; CryptoPP::SecBlock<T, A>::size_type = unsigned int]'
/usr/include/cryptopp/modes.h:63:34: required from here
/usr/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/usr/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned char>' are not found by unqualified lookup
/usr/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
/usr/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned int; bool T_Align16 = true; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned int*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]':
/usr/include/cryptopp/secblock.h:249:29: required from 'CryptoPP::SecBlock<T, A>::SecBlock(const CryptoPP::SecBlock<T, A>&) [with T = unsigned int; A = CryptoPP::AllocatorWithCleanup<unsigned int, true>]'
/usr/include/cryptopp/modarith.h:122:20: required from here
/usr/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/usr/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned int>' are not found by unqualified lookup
/usr/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
/usr/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned int; bool T_Align16 = false; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned int*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]':
/usr/include/cryptopp/secblock.h:247:25: required from 'CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned int; A = CryptoPP::AllocatorWithCleanup<unsigned int>; CryptoPP::SecBlock<T, A>::size_type = unsigned int]'
/usr/include/cryptopp/rc5.h:22:27: required from 'CryptoPP::BlockCipherFinal<DIR, BASE>::BlockCipherFinal() [with CryptoPP::CipherDir DIR = (CryptoPP::CipherDir)0u; BASE = CryptoPP::RC5::Enc]'
/usr/include/cryptopp/misc.h:82:7: required from 'CryptoPP::CipherModeFinalTemplate_CipherHolder<CIPHER, BASE>::CipherModeFinalTemplate_CipherHolder(const byte, size_t, const byte) [with CIPHER = CryptoPP::BlockCipherFinal<(CryptoPP::CipherDir)0u, CryptoPP::RC5::Enc>; BASE = CryptoPP::ConcretePolicyHolder<CryptoPP::Empty, CryptoPP::AdditiveCipherTemplate<CryptoPP::AbstractPolicyHolder<CryptoPP::AdditiveCipherAbstractPolicy, CryptoPP::CTR_ModePolicy> > >; byte = unsigned char; size_t = unsigned int]'
cipher.cpp:88:62: required from 'CryptoPP::SymmetricCipher BlockCipherDetail<T>::CreateEncoder(const byte, size_t, const byte*) const [with T = CryptoPP::RC5; byte = unsigned char; size_t = unsigned int]'
cipher.cpp:399:1: required from here
/usr/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/usr/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned int>' are not found by unqualified lookup
/usr/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
In file included from ClientPackageCryptInfo.cpp:2:0:
ClientPackageCryptInfo.h: In constructor 'CClientPackageCryptInfo::CClientPackageCryptInfo()':
ClientPackageCryptInfo.h:50:12: warning: 'CClientPackageCryptInfo::m_pSerializedCryptKeyStream' will be initialized after [-Wreorder]
BYTE* m_pSerializedCryptKeyStream;
^
ClientPackageCryptInfo.h:48:11: warning: 'int CClientPackageCryptInfo::m_nCryptKeyPackageCnt' [-Wreorder]
int m_nCryptKeyPackageCnt;
^
ClientPackageCryptInfo.cpp:9:1: warning: when initialized here [-Wreorder]
CClientPackageCryptInfo::CClientPackageCryptInfo() : m_pSerializedCryptKeyStream(NULL), m_nCryptKeyPackageCnt(0)
^
gmake: *** [OBJDIR/cipher.o] Error 1
gmake: *** Waiting for unfinished jobs....
Avatar utilizator
ds_aim
Utilizator interzis !

Utilizator interzis !
Mesaje: 309
Membru din: 06 Mar 2014, 17:30
Server: vreau sai ac
Regat: Chunjo
Aprecieri: 0
Mulţumiri: 1  
Medalii

Variabila "CheckSize" nu este declarata.
Poti sterge variabila, deoarece nu e utilizata nicaieri. :)

O variabilă este valabila doar în interiorul functiei in care este declarata.
Variabilele sunt de 2 feluri , locale / globale.

int CheckSize; //variabila globala
void MyFunction {
int CheckSize; // variabila locala, locala adica in interiorul functiei.
}

Poti rezolva prin declararea variabilei CheckSize ca variabila locala sau prin stergerea functiei care apeleaza CheckSize.


Salutari, ds_aim
Ultima oară modificat 29 Dec 2015, 19:46 de către ds_aim, modificat 1 dată în total.
Imagine
Afișează semnătura
Avatar utilizator
KillaMTFK
Nou Venit

Nou Venit
Mesaje: 36
Membru din: 31 Oct 2015, 17:14
Aprecieri: 0
Mulţumiri: 0
Medalii

Cum si de unde sterg variabila?
Avatar utilizator
ds_aim
Utilizator interzis !

Utilizator interzis !
Mesaje: 309
Membru din: 06 Mar 2014, 17:30
Server: vreau sai ac
Regat: Chunjo
Aprecieri: 0
Mulţumiri: 1  
Medalii

KillaMTFK scrie:Cum si de unde sterg variabila?
include/cryptopp/secblock.h

Esti orb ? Nu vezi ca spune in codul de eroare locatia?
Imagine
Afișează semnătura
Avatar utilizator
Kid0
Veteran

Veteran
Mesaje: 1420
Membru din: 12 Aug 2015, 13:33
Server: restoria2(ex)
Regat: Shinsoo
Aprecieri: 39  
Mulţumiri: 13  
Discord: Copiază ID
 Contact:
Medalii

arhivat
Imagine
Imagine
Imagine
Afișează semnătura
Închis
Răspunsuri
4
Vizualizări
421
Răspunsuri
2
Vizualizări
134
Răspunsuri
1
Vizualizări
166
Răspunsuri
10
Vizualizări
690

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Baidu [Spider] și 66 vizitatori