[odb-users] Error using odb.exe with Multi-Database Support and QT

Евгений Айдаров eugescha at yandex.ru
Fri Jan 22 10:02:02 EST 2016


Hi Boris.
You are right. I added qt headers and it worked.
Thank you.

22.01.2016 17:56, Boris Kolpackov пишет:
> Hi Евгений,
>
> Евгений Айдаров <eugescha at yandex.ru> writes:
>
>> odb.exe -m dynamic -d common -d mssql -d pgsql  -I
>> "c:\Qt\5.4.0.vs2008\include" --profile qt .\DOL\abonent.hxx
>>
>> odb abonent.hxx
>> 1>.\DOL\abonent.hxx:19:4: error: 'QString' does not name a type
>> 1>    QString srv_ip;
>>
>> While I run them separatly everything is fine:
>> odb.exe -m dynamic -d mssql -d pgsql  -I
>> "c:\Qt\5.4.0.vs2008\include" --profile qt .\DOL\abonent.hxx
> Hm, it seems the difference is the '-d common' option. Do you actually
> include the Qt header in abonent.hxx? I.e., do you have something like:
>
> #include <QtCore/QString>
>
> If that doesn't help, try to run this command line and send its output:
>
> odb.exe -v -m dynamic -d common -I "c:\Qt\5.4.0.vs2008\include"
> --profile qt .\DOL\abonent.hxx
>
> Boris

-- 
Айдаров Евгений



More information about the odb-users mailing list