Remember that nearly all code in the SSCLI tree sits on top of the PAL DLL, not on top of the host OS and C Runtimes. Except for the PAL, nothing in Rotor uses #include to pull in OS or C Runtime header files - instead, everything #includes rotor_pal.h. You're probably seeing collisions between the function prototypes in rotor_pal.h and iostream.
It is probably easiest to change the code you're writing so it calls only APIs defined in rotor_pal.h. If that isn't feasible, then you can either add the iostream APIs to the PAL (changing sscli/pal/rotor_pal.h and the contents of sscli/pal/win32), or understand the conflicts between rotor_pal.h and iostream.h, resolve them, then add msvcrt.lib to the list of files that the DLL you're changing is linked against, by modifying the SOURCES file. As with the header files, everything in the SSCLI tree outside of the PAL links against rotor_pal.dll, not against the OS DLLs like kernel32.dll and msvcrt*.dll. Barry This posting is provided "AS IS" with no warranties, and confers no rights. -----Original Message----- From: Discussion of the Rotor Shared Source CLI implementation [mailto:[EMAIL PROTECTED] On Behalf Of Chris Tavares Sent: Wednesday, June 18, 2003 11:07 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET-ROTOR] Error while including header file Try using the C++ Standard library headers, <iostream>, instead of the obsolete old <iostream.h> headers. What compiler are you using on what platform? -A different Chris -----Original Message----- From: Discussion of the Rotor Shared Source CLI implementation [mailto:[EMAIL PROTECTED] Behalf Of Chris Sent: Wednesday, June 18, 2003 10:18 PM To: [EMAIL PROTECTED] Subject: [DOTNET-ROTOR] Error while including header file As part of modifying Rotor source code, I have to include iostream.h, which is throwing several errors for me. It seems I dont get any errors when I include other files like string.h/stdlib.h. Can some one please enlighten me: why are these errors thrown and what is the fix. Does it have anything to do with library paths or make/source.inc files?I am new to Windows platform and absolute new to Rotor, so I appreciate you being elaborative Few of the error messages are: error C2065: 'cout' : undeclared identifier error C2061: syntax error : identifier 'ostream' error C1083: Cannot open include file: 'iostream.h': No such file or directory Cheers, Chris.
