[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  Compiling Error due to linkage conflict
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Compiling Error due to linkage conflict

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Raymond   (1 post)  [Biography] bio
Date Sun 21 Apr 2013 10:51 AM (UTC)
Message
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
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Mon 22 Apr 2013 11:39 AM (UTC)
Message
Sounds like you are combining C with C++ but without more information it is hard to be sure.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


3,091 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]