Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Compiling errors. Not renegade scripts
Re: Compiling errors. Not renegade scripts [message #388684 is a reply to message #388627] Sun, 31 May 2009 03:19 Go to previous messageGo to previous message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma:
General (1 Star)
jnz wrote on Sat, 30 May 2009 17:31

Omar007 wrote on Sat, 30 May 2009 14:16

jnz wrote on Sat, 30 May 2009 14:53

Omar007 wrote on Sat, 30 May 2009 12:38

jnz wrote on Sat, 30 May 2009 13:32

why are you converting it to std::?

Well things like COUT in some files have to start with 'using namespace std;' or i would have to change every COUT (and a few others like istream) to 'std::cout'

And about the std:: in the error screen by dos2unix.cpp: I have no clue. I haven't put it in that file Huh

EDIT: forgot to tell that dos2unix.cpp still gives the error when i do add 'using namespace std;' so that isn't the problem


Not talking about adding "using namespace std;" I'm asking why you're converting it in the first place?

Because i want to use it and its to old to be used on any recent compilers without converting headers and making it compatible the standards the C++ commision has set. (using namespace std;)
It does meet the standards of 1999 but it doesn't meet the standards of this time Sneaky


It doesn't matter, just suppress the compiler warnings. You shouldn't be changing code to std:: for no real reason and just changing it to that doesn't make it "up to date". It just adds bulk to it and makes it slower.

Dude read my first post. It where all ERRORS! In 1999 it wasn't required to use namespace std so you could compile without it. Now it is required to use namespace std if you want to use COUT or something. If you don't use namespace std you will get errors.
For the code to meet the namespace std standard i MUST add using namespace std. It gives ERRORS not WARNINGS if you don't. It is a requirement and not an option for us to choose Sarcasm


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: E3 hud
Next Topic: Scripts
Goto Forum:
  


Current Time: Fri Dec 20 01:26:20 MST 2024

Total time taken to generate the page: 0.00863 seconds