Click here to Skip to main content
15,913,610 members

Comments by A7lam Lover (Top 2 by date)

A7lam Lover 22-Nov-16 10:37am View    
sorry not used to this kind of forums
i will be more careful next time for sure

thank you for your post
and sorry for the truobles about the pic...i didn't notice this
i ran the code & it run ok
but another problem occured...i hope you help me with it

the error caused by this line
hashwrapper *file_hashing = new md5wrapper();
displaying those errors
mainwindow.o:-1: In function `__static_initialization_and_destruction_0':error: undefined reference to `md5wrapper::md5wrapper()'error: collect2: error: ld returned 1 exit status

there's something else bothers me
when i want to save a syntax to a string the compiler display this message to me
error: conversion from ‘std::string {aka std::basic_string}’ to non-scalar type ‘QString’ requested
for example here
QString z1 = file_hashing->getHashFromFile(file01.toStdString());
the compiler complain but if i type just
file_hashing->getHashFromFile(file01.toStdString());
it don't complain...why is that ?
by the way i used the Library in (NetBeans IDE) & (Eclipse IDE)
and they gave me the same error

thank you in advance
A7lam Lover 22-Nov-16 10:36am View    
Deleted
sorry not used to this kind of forums
i will be more careful next time for sure

thank you for your post
and sorry for the truobles about the pic...i didn't notice this
i ran the code & it run ok
but another problem occured...i hope you help me with it

the error caused by this line
hashwrapper *file_hashing = new md5wrapper();

displaying those errors
mainwindow.o:-1: In function `__static_initialization_and_destruction_0':
error: undefined reference to `md5wrapper::md5wrapper()'
error: collect2: error: ld returned 1 exit status



there's something else bothers me
when i want to save a syntax to a string the compiler display this message to me
error: conversion from ‘std::string {aka std::basic_string}’ to non-scalar type ‘QString’ requested


for example here
QString z1 = file_hashing->getHashFromFile(file01.toStdString());

the compiler complain but if i type just
file_hashing->getHashFromFile(file01.toStdString());

it don't complain...why is that ?


thank you in advance