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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Converting C to C++, dynamic linker problem

Converting C to C++, dynamic linker problem

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


Posted by RosenGuild   USA  (1 post)  [Biography] bio
Date Sun 03 Sep 2006 12:04 AM (UTC)
Message
Alrighty. I'm trying to update my MUD to c++, but have run into a bit of trouble... namely:

Quote:
Sat Sep 2 18:47:20 2006 :: [*****] BUG: Error locating do_say in symbol table. ../bin/swr: undefined symbol: do_say
Sat Sep 2 18:47:20 2006 :: [*****] BUG: Fread_command: Function do_say not found for '


I know this is because I updated the MUD from C to C++, something dlopen and whatnot don't like. I'm operating Fedora Core 5, and the MUD is SWFOTEFUSS. So... comments on how to solve this situation? I appreciate it, thanks.

-RosenGuild

"Hmmm. Heads. Heads. Heads. Heads. Heads. Heads. Heads. Heads. Heads. Heads. Heads. Heads. Heads. Heads. Heads. Heads. Heads. Heads."
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #1 on Sun 03 Sep 2006 12:50 AM (UTC)
Message
Using FUSS right? Make sure you have the right Makefile flags toggled.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Nick Gammon   Australia  (23,016 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Mon 04 Sep 2006 12:40 AM (UTC)
Message
I suspect this is a name-mangling problem. I converted to C++ ok, but not with dynamic linking.

C++ mangles names so that it can build in the function argument types into each name (as you can have identically-named functions with different argument lists).

Thus the problem is probably either:


  • You are looking for a mangled name, but the dynamic library has them un-mangled; or

  • You are looking for an un-mangled name, but the dynamic library has them mangled


- Nick Gammon

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

Posted by Samson   USA  (683 posts)  [Biography] bio
Date Reply #3 on Mon 04 Sep 2006 04:12 AM (UTC)

Amended on Tue 11 Mar 2008 03:29 AM (UTC) by Nick Gammon

Message
http://forums.smaugfuss.org/index.php?a=topic&t=82

[EDIT - 11 March 2008] - The Smaug FUSS site is now http://www.smaugmuds.org/
[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.


13,200 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 HostDash]