Solved

Compiler probs with O/S version

Posted on 2003-10-27
2
1,048 Views
Last Modified: 2007-12-19
Hi,

I am getting an error when compiling :

..\..\..\..\Intermediate\ProxyStub\gndbaseps\gndbase_p.c(106) : fatal error C118
9: #error :  You need a Windows 2000 or later to run this stub because it uses t
hese features:
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
Error executing c:\windows\system32\cmd.exe.

I am building on WIN 2003 Server, and i know that the problem is due to having the wrong O/S code, but i dont know where the compiler checks for this version of windows. I would ideally like to change the code so that the compiler accepts the new windows O/S version. Does anybody know if this is possible. ? ?

This is the part of the code it runs through to generate the error :

#if !defined(__RPC_WIN32__)
#error  Invalid build platform for this stub.
#endif

#if !(TARGET_IS_NT50_OR_LATER)
#error You need a Windows 2000 or later to run this stub because it uses these features:
#error   /robust command line switch.
#error However, your C/C++ compilation flags indicate you intend to run this app on earlier systems.
#error This app will die there with the RPC_X_WRONG_STUB_VERSION error.
#endif

i would be very greatful of any help in finding out how the compiler checks for the O/S version.

Kind Regards
Jon.
0
Comment
Question by:upliftin
2 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 9627193
You can correct this behaviour by changing  __RPCNDR_H_VERSION__ to the appropriate version or just

#define TARGET_IS_NT50_OR_LATER

in your code - just add it to the global definition list in the compiler options dialog.

0
 
LVL 48

Accepted Solution

by:
AlexFM earned 150 total points
ID: 9627460
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question