Skip to main content
gamedev.net
🔒 Locked

Exporting Namespaces

Started by Hex_Dump Dec 14, 2002 at 1:52 AM 0 replies 450+ views
Original Post
Hex_Dump
Hex_Dump
Hi, this is my first post on gamedev. I was just wondering.. Do DLL''s export namespaces? If I have namespaced C functions within a library, does the outside world NEED to know the namespaces (much like knowing the function prototype) to load the function dynamically? What about statically? Thanks a bunch!
niyaw
niyaw
if you want to use GetProcAddress, you need a complete function name. extern "C" will beside other things strip namespace information from the mangled name. if you don't use extern "C", mangled name includes namespace information.

for static linking, everything is being taken care of for you by the compiler (think msvcpx0.dll). both imported and exported functions contain namespace information.

i thought c didn't support namespaces?

[edited by - niyaw on December 14, 2002 2:58:16 AM]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.