|
-
Mar 3rd, 2003, 10:48 AM
#1
Thread Starter
Lively Member
extern "C" query
If I use extern "C" to define a function in a C++ DLL, do I still need to use a .def file to avoid name mangling?
Cheers
-
Mar 3rd, 2003, 01:37 PM
#2
Frenzied Member
Yes, you have to use a .def file in this case
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Mar 3rd, 2003, 04:28 PM
#3
Thread Starter
Lively Member
tried it out and didn't need a def file if extern "c" is used....
-
Mar 3rd, 2003, 04:33 PM
#4
-
Mar 4th, 2003, 09:17 AM
#5
Thread Starter
Lively Member
on futher tests I discovered that you only need to put the function prototype in the extern "C" brackets. Did you try that?
-
Mar 4th, 2003, 10:16 AM
#6
Frenzied Member
No I haven't... thanks for the info!!!
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|