Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Can't create pre-complied header if not linking with dynamic RTL


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 11 - Last Post: Feb 13, 2018 2:33 AM Last Post By: john smith Threads: [ Previous | Next ]
Albert Wiersch

Posts: 37
Registered: 11/27/08
Can't create pre-complied header if not linking with dynamic RTL  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 22, 2016 10:34 AM
I have a 10.1 Berlin C++Builder project using bcc32 (classic compiler).

If I build with the C++ Linker option "Link with Dynamic RTL" unchecked then I get a bunch of:
[bcc32 Warning] MsXml2.h(11126): W8058 Cannot create pre-compiled header: initialized data in header
Full parser context
csevalidator.cpp(1): #include dll_precompiled.h

If I check the "Link with Dynamic RTL" option then it works (there is no problem with pre-complied headers and it compiled and links).

Why does this option cause this problem? At least I'm glad I found the cause.
Albert Wiersch

Posts: 37
Registered: 11/27/08
Re: Can't create pre-complied header if not linking with dynamic RTL  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 12, 2016 6:39 PM   in response to: Albert Wiersch in response to: Albert Wiersch
Albert Wiersch wrote:

If I check the "Link with Dynamic RTL" option then it works (there is no problem with pre-complied headers and it compiled and links).

Why does this option cause this problem? I'm glad I found the cause.

I am still having this issue and it doesn't make any sense to me. I am basically forced to link with the dynamic RTL in 10.1 Berlin when I didn't have to in XE6 so pre-complied headers work.

Is there no solution or workaround to this?

Just another bug like incremental linking not working (at least I found a workaround for that one)? All these bugs really destroy productivity.
Brett Wilton

Posts: 45
Registered: 10/1/11
Re: Can't create pre-complied header if not linking with dynamic RTL  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 24, 2016 8:54 PM   in response to: Albert Wiersch in response to: Albert Wiersch
Do you have the #pragma hdrstop in your CPP files after the pre-compiled header entry ?

or at the end of your PCH.h file (I've read this works but not tested)
Albert Wiersch

Posts: 37
Registered: 11/27/08
Re: Can't create pre-complied header if not linking with dynamic RTL  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 26, 2016 11:24 AM   in response to: Brett Wilton in response to: Brett Wilton
Brett Wilton wrote:
Do you have the #pragma hdrstop in your CPP files after the pre-compiled header entry ?

or at the end of your PCH.h file (I've read this works but not tested)

Yes, have that.

This bug still exists in Berlin Update 1.
Roberto Carrer

Posts: 6
Registered: 3/21/16
Re: Can't create pre-complied header if not linking with dynamic RTL  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 24, 2017 3:38 AM   in response to: Albert Wiersch in response to: Albert Wiersch
Hi.
Have you found solutions to this problem?


Albert Wiersch wrote:
I have a 10.1 Berlin C++Builder project using bcc32 (classic compiler).

If I build with the C++ Linker option "Link with Dynamic RTL" unchecked then I get a bunch of:
[bcc32 Warning] MsXml2.h(11126): W8058 Cannot create pre-compiled header: initialized data in header
Full parser context
csevalidator.cpp(1): #include dll_precompiled.h

If I check the "Link with Dynamic RTL" option then it works (there is no problem with pre-complied headers and it compiled and links).

Why does this option cause this problem? At least I'm glad I found the cause.
Albert Wiersch

Posts: 37
Registered: 11/27/08
Re: Can't create pre-complied header if not linking with dynamic RTL  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 5, 2017 7:51 AM   in response to: Roberto Carrer in response to: Roberto Carrer
Nope... I'm just linking dynamically so I can get some actual work done instead of continuing to fight compiler issues.

Roberto Carrer wrote:
Hi.
Have you found solutions to this problem?
Goran Ekstrom

Posts: 149
Registered: 1/10/04
Re: Can't create pre-complied header if not linking with dynamic RTL  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 26, 2017 9:30 AM   in response to: Albert Wiersch in response to: Albert Wiersch
I have it in Tokyo:

[bcc32 Warning] xlocnum(1618): W8058 Cannot create pre-compiled header: initialized data in header
Albert Wiersch

Posts: 37
Registered: 11/27/08
Re: Can't create pre-complied header if not linking with dynamic RTL  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 5, 2017 7:52 AM   in response to: Goran Ekstrom in response to: Goran Ekstrom
That stinks. I was hoping that many of the C++ compiler would be resolved.

Goran Ekstrom wrote:
I have it in Tokyo:

[bcc32 Warning] xlocnum(1618): W8058 Cannot create pre-compiled header: initialized data in header
ERIC FABRICE BA...

Posts: 1
Registered: 6/25/00
Re: Can't create pre-complied header if not linking with dynamic RTL  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 24, 2017 10:31 AM   in response to: Albert Wiersch in response to: Albert Wiersch
Just to confirm the problem. It affects both 10.1 and 10.2. The problems affects all DLL (web services, isapi, and component packages) when compiled without dynamic RTL linking.

It comes from some .h such as msxml2.h.

I'm waiting for a fix.

Eric
Goran Ekstrom

Posts: 149
Registered: 1/10/04
Re: Can't create pre-complied header if not linking with dynamic RTL  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 1, 2018 1:50 PM   in response to: ERIC FABRICE BA... in response to: ERIC FABRICE BA...
It comes from some .h such as msxml2.h.

I get the error in various system h-files. I've found out that it has to do with the number of H-files listed before the Header Stop statment. If I only use "a few" (3-4) h-files the error goes away, if I add one more it comes back and depending on which h-files I add the error shows in different system h-files.
Ted Lyngmo

Posts: 117
Registered: 10/3/06
Re: Can't create pre-complied header if not linking with dynamic RTL  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 1, 2018 1:03 PM   in response to: Albert Wiersch in response to: Albert Wiersch
Same for me in 10.2.1.

Br,
Ted
john smith

Posts: 2
Registered: 2/14/18
Re: Can't create pre-complied header if not linking with dynamic RTL  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 13, 2018 2:33 AM   in response to: Albert Wiersch in response to: Albert Wiersch
Big Update of RUSSIAN/USA/EU/WORLD dumps+pin. Valid rate 97-99%

- Selling mixed 1xx or 2xx codes;
- 100 tracks BULK 1xx cost $10,000; 1(1xx)=$500; 1(2xx)=$200;
- Replacing within 12 hours, invalid tracks only(videos+receipt mandatory);
- Accepting cashiers with $2500+two vouchers deposit from Mafiozosmafaz,irc,xxxxx
MIRC;

Feedbacks and reviews:http://australia101-201.boards.net

https://icq.com/chat/AoLC875WTg5cCxjRACE

https://www.youtube.com/watch?v=O9IWmf3qvo4

Best d+p updates and tools

Emv chipsotovX1 all in one software to write for Ommni3121, asr38, asr98 ETC FOR SALE

ATMCARD at jabber dot org

icq 611588027

Icq- 440588964

http://s15.zetaboards.com/club101201

Base Barflozm25. Was updated with 1.2k dumps ,200pcs T1T2T3+PIN .good approval Rate, No replace for this super

Base.!!

Track 1/2: %B5331572716170888^UNEMBOSSED/NAME^22091211160800000483000000?;5331572716170888=22091211160800000483?

2501

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02