pl01
3rd December 2010, 13:39
Hi,
I'm using QT Creator 2.1 under Win7 and with the following code I got this error :
error: undefined reference to `File::file_exists(QString const&) const'
The code
if ( _myfile.file_exists("test.txt") )
The class code
bool file_exists(const QString & file) const;
I have the same problem with other files, by example
FinancialCategory* category = ...;
Product::get( category );
...
namespace Product {
bool get(Category* c)
}
And I got this error : error: undefined reference to `Product::get(FinancialCategory* c)'
If I do the following it works Product::get((Category*) category ) ... but it should be handled automatically ?
Thanks for your help
I'm using QT Creator 2.1 under Win7 and with the following code I got this error :
error: undefined reference to `File::file_exists(QString const&) const'
The code
if ( _myfile.file_exists("test.txt") )
The class code
bool file_exists(const QString & file) const;
I have the same problem with other files, by example
FinancialCategory* category = ...;
Product::get( category );
...
namespace Product {
bool get(Category* c)
}
And I got this error : error: undefined reference to `Product::get(FinancialCategory* c)'
If I do the following it works Product::get((Category*) category ) ... but it should be handled automatically ?
Thanks for your help