Compiling errors. Not renegade scripts [message #388610] |
Sat, 30 May 2009 04:30 ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
![](http://renegadeforums.com/images/avatars/Mutant1_Halo38.jpg) |
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
-
Attachment: irc_interface.cpp
(Size: 30.75KB, Downloaded 185 times)
-
Attachment: irc_interface.h
(Size: 3.89KB, Downloaded 233 times)
-
Attachment: irc.h
(Size: 6.32KB, Downloaded 186 times)
-
Attachment: dos2unix.cpp
(Size: 1.51KB, Downloaded 329 times)
-
Attachment: dos2unix.h
(Size: 0.79KB, Downloaded 81 times)
|
|
|
|
Re: Compiling errors. Not renegade scripts [message #388612 is a reply to message #388611] |
Sat, 30 May 2009 04:38 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
![](http://renegadeforums.com/images/avatars/Mutant1_Halo38.jpg) |
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
EDIT: forgot to tell that dos2unix.cpp still gives the error when i do add 'using namespace std;' so that isn't the problem
[Updated on: Sat, 30 May 2009 04:40] Report message to a moderator
|
|
|
|
Re: Compiling errors. Not renegade scripts [message #388615 is a reply to message #388613] |
Sat, 30 May 2009 06:16 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
![](http://renegadeforums.com/images/avatars/Mutant1_Halo38.jpg) |
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
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
[Updated on: Sat, 30 May 2009 06:18] Report message to a moderator
|
|
|
|
|
|