Hello all,
I decided to compile my ROM2.4b6-based mud using C++ rather than C. So,
I fixed all the errors that came up at compile time and now have source code
that compiles cleanly. I also wrapped all my header files with extern "C"
if compiling with C++. However, when it comes to the linking stage I get a
*lot* of errors that come up. They are in pretty much every object (*.o)
file. There is a range of error messages, but most of them just repeat a
couple hundred times. Here are some examples of the errors.
act_comm.o:8: unterminated character constant <-- This is the most common
error I get
act_comm.o:2: possible real start of unterminated constant
act_move.o:144: invalid preprocessing directive name
thiefskill.o:1: parse error before character 0177
thiefskill.o:1: parse error at null character
thiefskill.o:1: nondigits in number and not hexadecimal
thiefskill.o:1: warning: unknown escape sequence `\j'
thiefskill.o:7: stray '\' in program
thiefskill.o:7: warning: unknown escape sequence: `\' followed by char code
0xd
thiefskill.o:9: character constant too long
thiefskill.o:19: warning: unknown escape sequence: `\' followed by char code
0x0
If I go back to compiling using C, it still compiles and links just
fine. Do I need to start all my functions with extern "C" as well to avoid
name mangling?
Any help would be much appreciated
Thanks,
Cameron
PS Sorry if this is a duplicate. My first post did not seem to work
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com