I am not sure I fully understood the problem. Shouldn't using the
std::string member function c_str() circumvent the warning message?
Tim
--
Tim Gruene
Institut fuer anorganische Chemie
Tammannstr. 4
D-37077 Goettingen
GPG Key ID = A46BEE1A
On Wed, 4 Jun 2008, Kevin Cowtan wrote:
> It's a known issue.
>
> (The technical issue is that Coot uses STL strings which can return a const
> char*, whereas mmdb uses pstr which is typedef'ed to a const char*. From gcc
> 4.3 these are no longer equivalent for some reason.).
>
> For now it is just a warning, so you can ignore it. We're looking into a
> proper fix.
>
> Debreczeni, Judit wrote:
>> Dear all [mmdb users and authors],
>>
>> I've upgraded to Fedora 9 and now I'm trying to build coot which also
>> requires mmdb. Now, F9 comes with gcc 4.3 which seems to be
>> incompatible with mmdb (I think I'm using mmdb-1.0.8) as it gives many
>> hundreds of the following (and others):
>>
>> warning: deprecated conversion from string constant to 'char*'
>>
>>
>> Is this a known issue? Is there a way to get a quick fix?
>>
>> Suggestions, fixes etc most welcome.
>>
>> JED
>>
>>
>> --
>> Judit Debreczeni
>> AstraZeneca
>> 50S38 Mereside
>> Alderley Park
>> SK10 4TG
>> UK
>>
>>
>>
>
|