gcc --version
gcc (GCC) 4.5.2
I have a smaugfuss version that compiles in g++
Any help would be appreciated, I did not find anything like this in google search for smaug.
make
Compiling o/comm.o
h/mud.h:4003:25: error: previous declaration of âIMMORTAL_HOST* immortal_host_startâ with âC++â linkage
comm.c:131:25: error: conflicts with new declaration with âCâ linkage
h/mud.h:4004:25: error: previous declaration of âIMMORTAL_HOST* immortal_host_endâ with âC++â linkage
comm.c:132:25: error: conflicts with new declaration with âCâ linkage
h/mud.h:3970:25: error: previous declaration of âDESCRIPTOR_DATA* first_descriptorâ with âC++â linkage
comm.c:133:25: error: conflicts with new declaration with âCâ linkage
h/mud.h:3971:25: error: previous declaration of âDESCRIPTOR_DATA* last_descriptorâ with âC++â linkage
comm.c:134:25: error: conflicts with new declaration with âCâ linkage
h/mud.h:3936:25: error: previous declaration of âint num_descriptorsâ with âC++â linkage
comm.c:135:25: error: conflicts with new declaration with âCâ linkage
h/mud.h:3856:25: error: previous declaration of âtime_t boot_timeâ with âC++â linkage
comm.c:138:25: error: conflicts with new declaration with âCâ linkage
h/mud.h:3857:25: error: previous declaration of âHOUR_MIN_SEC* set_boot_timeâ with âC++â linkage
comm.c:140:25: error: conflicts with new declaration with âCâ linkage
h/mud.h:3858:25: error: previous declaration of âtm* new_boot_timeâ with âC++â linkage
comm.c:141:25: error: conflicts with new declaration with âCâ linkage
h/mud.h:3997:25: error: previous declaration of âtime_t current_timeâ with âC++â linkage
comm.c:145:25: error: conflicts with new declaration with âCâ linkage
h/calendar.h:58:25: error: previous declaration of âunsigned char winter_freezeâ with âC++â linkage
comm.c:158:25: error: conflicts with new declaration with âCâ linkage
h/mud.h:3111:25: error: previous declaration of âint portâ with âC++â linkage
comm.c:182:25: error: conflicts with new declaration with âCâ linkage
h/mud.h: In function âunsigned char remove_printf(char*, ...)â:
h/mud.h:135:25: error: previous declaration of âunsigned char remove_printf(char*, ...)â with âC++â linkage
comm.c:903:34: error: conflicts with new declaration with âCâ linkage
comm.c: In function âint init_socket(int)â:
comm.c:51:25: error: previous declaration of âint init_socket(int)â with âC++â linkage
comm.c:1034:28: error: conflicts with new declaration with âCâ linkage
comm.c: In function âvoid new_descriptor(int)â:
comm.c:1443:62: error: âacceptâ was not declared in this scope
h/mud.h: In function âvoid close_socket(DESCRIPTOR_DATA*, unsigned char)â:
h/mud.h:5147:6: error: previous declaration of âvoid close_socket(DESCRIPTOR_DATA*, unsigned char)â with âC++â linkage
comm.c:1572:54: error: conflicts with new declaration with âCâ linkage
h/mud.h: In function âvoid write_to_buffer(DESCRIPTOR_DATA*, const char*, unsigned int)â:
h/mud.h:5148:6: error: previous declaration of âvoid write_to_buffer(DESCRIPTOR_DATA*, const char*, unsigned int)â with âC++â linkage
comm.c:2242:78: error: conflicts with new declaration with âCâ linkage
comm.c: In function âunsigned char write_to_descriptor(DESCRIPTOR_DATA*, const char*, int)â:
comm.c:78:6: error: previous declaration of âunsigned char write_to_descriptor(DESCRIPTOR_DATA*, const char*, int)â with âC++â linkage
comm.c:2345:73: error: conflicts with new declaration with âCâ linkage
h/mud.h: In function âchar* myobj(OBJ_DATA*)â:
h/mud.h:5168:25: error: previous declaration of âchar* myobj(OBJ_DATA*)â with âC++â linkage
comm.c:2680:44: error: conflicts with new declaration with âCâ linkage
h/mud.h: In function âchar* obj_short(OBJ_DATA*)â:
h/mud.h:5169:25: error: previous declaration of âchar* obj_short(OBJ_DATA*)â with âC++â linkage
comm.c:2693:48: error: conflicts with new declaration with âCâ linkage
h/mud.h: In function âvoid act(short int, const char*, CHAR_DATA*, const void*, const void*, int)â:
h/mud.h:5165:25: error: previous declaration of âvoid act(short int, const char*, CHAR_DATA*, const void*, const void*, int)â with âC++â linkage
comm.c:2924:102: error: conflicts with new declaration with âCâ linkage
h/mud.h: In function âvoid act_printf(short int, CHAR_DATA*, void*, void*, int, const char*, ...)â:
h/mud.h:5166:25: error: previous declaration of âvoid act_printf(short int, CHAR_DATA*, void*, void*, int, const char*, ...)â with âC++â linkage
comm.c:3071:99: error: conflicts with new declaration with âCâ linkage
h/mud.h: In function âvoid do_speed(CHAR_DATA*, char*)â:
h/mud.h:4603:1: error: previous declaration of âvoid do_speed(CHAR_DATA*, char*)â with âC++â linkage
comm.c:3788:44: error: conflicts with new declaration with âCâ linkage
comm.c: In function âunsigned char str_has_command(const char*, const char*)â:
comm.c:76:25: error: previous declaration of âunsigned char str_has_command(const char*, const char*)â with âC++â linkage
comm.c:3846:54: error: conflicts with new declaration with âCâ linkage
comm.c: At global scope:
comm.c:3932:1: error: expected â}â at end of input
make[1]: *** [o/comm.o] Error 1
make: *** [all] Error 2
|