[Interest] Qt-5.5.1 on Windows, VS-2013 Community, Strange Errors

Peter Kümmel syntheticpp at gmx.net
Mon Nov 2 14:32:20 CET 2015


Am 02.11.2015 um 14:12 schrieb Robert Iakobashvili:
> Dear Daniel,
> Actually, you helped me.
>
> The name of the var passed to function was "small"
>
> void myFunc (bool small);
>
> It appears that for MS-VS "small" is a wrong name for a var.

I assume it's a macro. Add

#define small XYZ

and the compiler shows you where 'small' was defined.

Peter


>
> Sorry for the buzz.
>
> Thank you.
>
> Regards,
> Robert
>
>
> On Mon, Nov 2, 2015 at 3:07 PM, Robert Iakobashvili <coroberti at gmail.com> wrote:
>> Thanks,
>> looks like not in my code since it is compiled
>> on many environments and with many compilers properly.
>>
>> Something is coming from either VS or Qt.
>> Regards,
>> Robert
>>
>>
>> On Mon, Nov 2, 2015 at 3:02 PM, Daniel França <daniel.franca at gmail.com> wrote:
>>> Maybe you are using bool as an identifier somewhere in your code?
>>> https://msdn.microsoft.com/en-us/library/ws579tt7.aspx
>>>
>>> Em seg, 2 de nov de 2015 às 13:58, Robert Iakobashvili <coroberti at gmail.com>
>>> escreveu:
>>>>
>>>> Hi,
>>>>
>>>> After building Qt-5.5.1 from sources and
>>>> trying to compile my Qt project on Windows-7, 64-bit,
>>>> with VS-2013 Community, and using x-86 compiler,
>>>> I'm getting many compilation errors like:
>>>>
>>>> "error C2632: 'bool' followed by 'char' is illegal"
>>>>
>>>> With VS-2010 compiler the project was compiled normally.
>>>>
>>>> Any clues?
>>>>
>>>> Thanks
>>>> Regards,
>>>> Robert
>>>> _______________________________________________
>>>> Interest mailing list
>>>> Interest at qt-project.org
>>>> http://lists.qt-project.org/mailman/listinfo/interest
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>




More information about the Interest mailing list