Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wierd compilation errors: [C++ Error] rpcndr.h(200): E2275 { expected

Status
Not open for further replies.

JohnsonGPS

Programmer
Dec 14, 2006
6
CA
I installed both Borland C++ Builder Professional 6.0 and Visual C++ .NET 2003 at my desktop, and they usually worked fine together.

Some wierd thing happened this morning with my Borland C++ Builder. For any project, even a blank application, the Borland C++ Builder would report me the following error:

[C++ Error] rpcndr.h(200): E2275 { expected
[C++ Error] rpcndr.h(627): E2303 Type name expected
[C++ Error] rpcndr.h(860): E2303 Type name expected
[C++ Error] rpcndr.h(960): E2303 Type name expected
[C++ Error] rpcndr.h(2700): E2147 'size_t' cannot start a parameter declaration
[C++ Error] rpcndr.h(2716): E2147 'size_t' cannot start a parameter declaration
[C++ Error] rpcndr.h(2780): E2147 'size_t' cannot start a parameter declaration
[C++ Error] rpcndr.h(2877): E2147 'size_t' cannot start a parameter declaration
[C++ Error] rpcndr.h(2891): E2147 'size_t' cannot start a parameter declaration
[C++ Error] rpcndr.h(2966): E2303 Type name expected
[C++ Error] rpcndr.h(2987): E2147 'size_t' cannot start a parameter declaration
[C++ Error] rpcndr.h(3048): E2303 Type name expected
[C++ Error] wtypes.h(50): E2275 { expected
[C++ Error] unknwn.h(71): E2275 { expected
[C++ Error] sysdyn.h(146): E2147 'size_t' cannot start a parameter declaration
[C++ Error] sysdyn.h(147): E2071 operator new must have an initial parameter of type size_t
[C++ Error] wincrypt.h(2077): E2147 'size_t' cannot start a parameter declaration
[C++ Error] wincrypt.h(6481): E2147 'size_t' cannot start a parameter declaration
[C++ Error] objidl.h(554): E2275 { expected
[C++ Error] oaidl.h(173): E2275 { expected

The Microsoft Visual Studio still works fine. I could not recall anything I did recently to my Borland C++ Builder, but I did change the settings of my Microsoft Visual C++ recently. I added an extra path to include the Borland C++ include files and library files to my Visual C++, and I did not believe it should cause any problem with Borland C++. BTW, after I removed the extra path in my Visual C++, I still got the same errors with my Borland C++.

Anybody could help me solve the problem?

Thank you very much in advance.

Johnson


 
Is it possible that when you added the path to Borland's include libraries that Visual Studio grabbed the libraries and recompiled them?

Do you have a backup to restore those files in question? If not, you may have to reinstall/repair BCB.





James P. Cottingham
-----------------------------------------
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
I think it is possible too.

I checked the Borland C++ folder for Library (In my computer, it is C:\Program Files\Borland\CBuilder6\Lib).

The following files are modified today.
vcl60.#06, vcl60.#07, vcl60.#01, and vcl60.#00

Any tip to restore them?

John
 
BCB 6 should have a repair option when you stick the original disk in. You will then need to do your updates, etc.



James P. Cottingham
-----------------------------------------
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
Thank you, James.

The problem is solved by simply overwritting the CBuilder6 folder with the original one in the installation CD.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top