Page 1 of 1

Unknown type name errors when using TC 5.1 on RS 10.3.3 with bcc32c

Posted: Sat May 23, 2020 9:37 am
by DeveloperAcstre
Hi,

I have a problem compiling with TwineCompile 5.1 under Rad Studio 10.3.3 using the clang compiler. I am able to reproduce the problem in a demo project.

Test.zip
(9.18 KiB) Downloaded 603 times

Lets say i have a unit with one declaration in the header file:

Code: Select all

String test();
I do not include the String header file in that unit because i included it in the precompiled header. If i try to compile it gives me an error saying "Unknown type name 'String'". It should find the declaration in the precompiled header. If i try to build it again without doing any changes it compiles fine. But if i Clean the project and try to compile it again the same error appears.

The error is happening only when using twine compile.

Best regards!

Re: Unknown type name errors when using TC 5.1 on RS 10.3.3 with bcc32c

Posted: Mon May 25, 2020 8:56 pm
by jomitech
Are you compiling just this unit, or does the problem appear when doing a Build or Make of the entire project?

Re: Unknown type name errors when using TC 5.1 on RS 10.3.3 with bcc32c

Posted: Tue May 26, 2020 5:30 am
by DeveloperAcstre
It appears when i am doing Build or Make of the entire project.

Re: Unknown type name errors when using TC 5.1 on RS 10.3.3 with bcc32c

Posted: Tue May 26, 2020 9:19 pm
by jomitech
Please download the attached file and extract it into the TwineCompile Program Files directory to resolve this issue.

Re: Unknown type name errors when using TC 5.1 on RS 10.3.3 with bcc32c

Posted: Wed May 27, 2020 1:54 pm
by DeveloperAcstre
I am getting this error:

Code: Select all

[MSBuild Error] TCTargets103.targets(115, 5): MSB4036 The "TCInitTasks" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Windows\Microsoft.NET\Framework\v4.0.30319" directory.

Re: Unknown type name errors when using TC 5.1 on RS 10.3.3 with bcc32c

Posted: Wed May 27, 2020 6:00 pm
by jomitech
Sorry about that, that included another fix. Can you download the latest build of TwineCompile and install it?

Re: Unknown type name errors when using TC 5.1 on RS 10.3.3 with bcc32c

Posted: Wed May 27, 2020 7:15 pm
by DeveloperAcstre
The latest version works fine, thanks.

C++ Builder 10.4 is released will Twine Compile support it soon?

Re: Unknown type name errors when using TC 5.1 on RS 10.3.3 with bcc32c

Posted: Wed May 27, 2020 7:22 pm
by jomitech
Yes, 5.2 with support for 10.4 will be out soon