Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Compiling errors. Not renegade scripts
Compiling errors. Not renegade scripts [message #388610] Sat, 30 May 2009 04:30 Go to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
I have to convert old code to the standards from now by hand because VC2008 doesn't change correct (but outdated) code.
I mean things like <strstrea.h> that has to be changed to <strstream> and adding namespace std to several documents and alot more.

I managed to bring the error count down from 856 to 4 but now im stuck.

Errors:
Compiling...
cl : Command line warning D9035 : option 'Fr' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'FR' instead of 'Fr'
irc_interface.cpp
e:\modding\uplink\source\interface\localinterface\irc_interface.cpp(1056) : error C2248: 'irc::CIrcDefaultMonitor::m_handlersMapsListEntry' : cannot access private member declared in class 'irc::CIrcDefaultMonitor'
        e:\modding\uplink\contrib\irclib\irc.h(241) : see declaration of 'irc::CIrcDefaultMonitor::m_handlersMapsListEntry'
        e:\modding\uplink\contrib\irclib\irc.h(236) : see declaration of 'irc::CIrcDefaultMonitor'
dos2unix.cpp
e:\modding\uplink\source\app\dos2unix.cpp(131) : error C3861: 'base': identifier not found
e:\modding\uplink\source\app\dos2unix.cpp(149) : error C2248: 'std::basic_filebuf<_Elem,_Traits>::sync' : cannot access protected member declared in class 'std::basic_filebuf<_Elem,_Traits>'
        with
        [
            _Elem=char,
            _Traits=std::char_traits
        ]
        e:\program files\microsoft visual studio 9.0\vc\include\fstream(446) : see declaration of 'std::basic_filebuf<_Elem,_Traits>::sync'
        with
        [
            _Elem=char,
            _Traits=std::char_traits
        ]
Generating Code...
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 9.00.30729
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '.\obj\win32\decode.sbr': No such file or directory


I also uploaded the correspponding files and their headers below. Im not sure but i believe the irc.h is actually a standard windows header but i included in anyway.

I hope you can help me getting rid of these last 4 errors Thumbs Up
  • Attachment: irc_interface.cpp
    (Size: 30.75KB, Downloaded 185 times)
  • Attachment: irc_interface.h
    (Size: 3.89KB, Downloaded 231 times)
  • Attachment: irc.h
    (Size: 6.32KB, Downloaded 185 times)
  • Attachment: dos2unix.cpp
    (Size: 1.51KB, Downloaded 329 times)
  • Attachment: dos2unix.h
    (Size: 0.79KB, Downloaded 81 times)


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: Compiling errors. Not renegade scripts [message #388611 is a reply to message #388610] Sat, 30 May 2009 04:32 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
why are you converting it to std::?
Re: Compiling errors. Not renegade scripts [message #388612 is a reply to message #388611] Sat, 30 May 2009 04:38 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
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


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg

[Updated on: Sat, 30 May 2009 04:40]

Report message to a moderator

Re: Compiling errors. Not renegade scripts [message #388613 is a reply to message #388612] Sat, 30 May 2009 05:53 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
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?
Re: Compiling errors. Not renegade scripts [message #388615 is a reply to message #388613] Sat, 30 May 2009 06:16 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
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


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg

[Updated on: Sat, 30 May 2009 06:18]

Report message to a moderator

Re: Compiling errors. Not renegade scripts [message #388623 is a reply to message #388610] Sat, 30 May 2009 08:08 Go to previous messageGo to next message
cnc95fan is currently offline  cnc95fan
Messages: 1260
Registered: July 2007
Karma: 0
General (1 Star)
I think he means use printf

Cabal8616 wrote on Sun, 27 April 2008 15:50

I say a personal fanning of the genitals would be awesome.


RA3 AUTOMATICLY SUCKS
www.battlefordune.co.uk
Re: Compiling errors. Not renegade scripts [message #388627 is a reply to message #388615] Sat, 30 May 2009 08:31 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
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.
Re: Compiling errors. Not renegade scripts [message #388684 is a reply to message #388627] Sun, 31 May 2009 03:19 Go to previous message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
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
Previous Topic: E3 hud
Next Topic: Scripts
Goto Forum:
  


Current Time: Mon Jul 22 01:20:40 MST 2024

Total time taken to generate the page: 0.00704 seconds