Menu

#275 libcurl 7.10.3 multi_* functions don't link w/ c++

closed-accepted
6
2013-06-21
2003-01-22
Anonymous
No

Using the multi_* C functions within my C++ classes
generated link errors until I added an
extern "C" {}
block to multi.h. I imagine that this will affect anyone trying
to use the C multi interface from a C++ program, but am
unable to test against anything other than my own
application and curl itself.

Here's the diff with my changes that fix the problem:

60,63d59
< #ifdef __cplusplus
< extern "C" {
< #endif
<
194,197d189
< #ifdef __cplusplus
< }
< #endif
<

my compiler (Linux):
$ g++ -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)

Ian Wilkes
iwilkes@yahoo.com

Discussion

  • Daniel Stenberg

    Daniel Stenberg - 2003-01-22

    Logged In: YES
    user_id=1110

    Many thanks, this fix has been committed to CVS now.

    Just a request, use 'diff -u' when you provide a diff the
    next time. Then it wil be a lot easier to apply in my end.

    Closing this report.

     
  • Daniel Stenberg

    Daniel Stenberg - 2003-01-22
    • priority: 5 --> 6
    • status: open --> closed-accepted