Hello
I didn't know whether to post this here or in Language, decided on .ide
I was happily using BCB5 with pre-compiled headers and then it broke with
the above warning.
When adding a third-party component (developed in Pascal) to my form it
breaks the pre-compiled header generation. The component adds
#include<blah.hpp> to my form's header file which contains the following
code:
// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved
// (DO NOT EDIT: machine generated header) 'blah.pas' rev: 5.00
#ifndef blahHPP
#define blahHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp> // Pascal unit
#include <Math.hpp> // Pascal unit
#include <ImgList.hpp> // Pascal unit
#include <ComCtrls.hpp> // Pascal unit
#include <Spin.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <ExtCtrls.hpp> // Pascal unit
#include <StdCtrls.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <SysUtils.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <SysInit.hpp> // Pascal unit
#include <System.hpp> // Pascal unit
//-- user
supplied -----------------------------------------------------------
namespace blah
{
<snip>
Quote
} /* namespace blah */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace blah;
#endif
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end
unit ----------------------------------------------------------------
#endif
After adding the control to my form BCB complains about initialising data in
headers in my own header files, specifically, default function arguments.
After removing these default arguments, it complains about values declared
in math.hpp.
Removing the component and associated header file from my form causes the
pre-compiled header file to be correctly compiled.
What is it about the component's hpp file that it causing my pre-compiled
headers to stop working?
Any ideas?
Thanks
David