Builder 10.4 With TwineCompile5.3.2 about PreHeader Error

TwineCompile - Cut C++Builder compile times by up to 50x!
rjsgml3736
Posts: 7
Joined: Sat Jun 29, 2024 1:11 am

Builder 10.4 With TwineCompile5.3.2 about PreHeader Error

Post by rjsgml3736 »

Hello, I am currently using TwineCompiler version 5.3.2 with C++ Builder 10.4. Recently, when building the project, I encountered an error where PCH.h is not being prebuilt. I am reaching out for assistance regarding this issue.

If there is anything additional you need for the analysis of the cause, please let me know. Thank you.
jomitech
Site Admin
Posts: 2175
Joined: Wed Oct 08, 2008 12:23 am

Re: Builder 10.4 With TwineCompile5.3.2 about PreHeader Error

Post by jomitech »

Can you provide some more details on the specific issue? Is the PCH.h pre-compiled header file not being automatically recompiled when headers inside it are changed? Or is it not being compiled as a PCH file at all?

I'm assuming this is using the CLANG compiler with a separate PCH file, rather than the classic compiler and an implicit PCH file.
Jon
rjsgml3736
Posts: 7
Joined: Sat Jun 29, 2024 1:11 am

Re: Builder 10.4 With TwineCompile5.3.2 about PreHeader Error

Post by rjsgml3736 »

When I build the project with the PreCompile option enabled, as shown in the attached image, an error occurs. There was no issue with previous projects, but this error has occurred in a new project. The main cause seems to be that the compiler does not compile the PCH.h file first.

If there are any additional files you need, please let me know. Thank you.
Attachments
TwineError.JPG
TwineCompile Error Img
(24.02 KiB) Not downloaded yet
jomitech
Site Admin
Posts: 2175
Joined: Wed Oct 08, 2008 12:23 am

Re: Builder 10.4 With TwineCompile5.3.2 about PreHeader Error

Post by jomitech »

Can you perform a full build of the project, then copy the text (right-click, Copy All) from the Console Output tab in the Compile Window into a text file and attach it here, or send to support@jomitech.com?
Jon
rjsgml3736
Posts: 7
Joined: Sat Jun 29, 2024 1:11 am

Re: Builder 10.4 With TwineCompile5.3.2 about PreHeader Error

Post by rjsgml3736 »

Thank you for your prompt response, and I apologize for my late reply. I have attached the build error details in a .zip file as requested. If there is anything else you need, please feel free to ask at any time. Thank you.
Attachments
Build Content.zip
Error Content
(19.68 KiB) Downloaded 889 times
rjsgml3736
Posts: 7
Joined: Sat Jun 29, 2024 1:11 am

Re: Builder 10.4 With TwineCompile5.3.2 about PreHeader Error

Post by rjsgml3736 »

Hello, I made a mistake in specifying the version. I am using TwineCompile version 5.2.3.314 with C++ Builder 10.4. Additionally, after several attempts, I found that the original TwineCompile installation was in the C:\Program Files directory, and I also copied the JomiTech folder into the C:\Program Files (x86) directory. This attempt did not cause the PCH.h issue, but another problem has arisen: [Linker Error] Fatal: Unable to open file 'VSP_88D_DP_V9.OBJ'. I have attached the file below for your reference. Thank you for your response.
Attachments
twfiles.zip
(24.88 KiB) Downloaded 894 times
jomitech
Site Admin
Posts: 2175
Joined: Wed Oct 08, 2008 12:23 am

Re: Builder 10.4 With TwineCompile5.3.2 about PreHeader Error

Post by jomitech »

Thanks for the files. I need the Console Output of the build, not the list of error messages. Run a build that reproduces the error, then in the Compile Window, click the Console Output tab, right-click in the console output text, and click Copy All. Then save to a text file and zip/attach here.

See these two screenshots:
Screenshot 2024-07-01 112631.png
(11.94 KiB) Not downloaded yet
Screenshot 2024-07-01 112718.png
(17.39 KiB) Not downloaded yet
Jon
rjsgml3736
Posts: 7
Joined: Sat Jun 29, 2024 1:11 am

Re: Builder 10.4 With TwineCompile5.3.2 about PreHeader Error

Post by rjsgml3736 »

Hello, thank you for your prompt response. I am providing you with the console results in a text file. Thank you once again for your effort in resolving the issue.
Attachments
ConsoleOutPut.zip
(23.45 KiB) Downloaded 906 times
jomitech
Site Admin
Posts: 2175
Joined: Wed Oct 08, 2008 12:23 am

Re: Builder 10.4 With TwineCompile5.3.2 about PreHeader Error

Post by jomitech »

Based on these logs, the PCH file has not been set up as a pre-compiled header file, so it's not being built. In the Projects view, right-click the PCH header file, and select the "Use for Precompiling" option. Then save the project, and run a full build. This should resolve this issue.

Screenshot 2024-07-02 122140.png
(89.43 KiB) Not downloaded yet
Jon
rjsgml3736
Posts: 7
Joined: Sat Jun 29, 2024 1:11 am

Re: Builder 10.4 With TwineCompile5.3.2 about PreHeader Error

Post by rjsgml3736 »

It's happening even with the 'Use for precompile' option enabled. It seems like there might be an issue with another setting, but I can't find the cause.
Post Reply