darkdh / cconv

Automatically exported from code.google.com/p/cconv
GNU General Public License v2.0
0 stars 0 forks source link

cconv.h should wrapped in extern "C" #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. write a cpp code using functions defined in cconv.h
2. compile the cpp code with -lcconv
3. undefined reference to cconv_open, cconv, cconv_close

What is the expected output? What do you see instead?
the program should compile correct. but i see undefined reference error.

What version of the product are you using? On what operating system?
0.6.2

Please provide any additional information below.
change the code into c, and compile successfully with gcc.
i think cconv.h should be wrapped by extern "C" while compiled with g++.

Original issue reported on code.google.com by augu...@gmail.com on 13 Sep 2010 at 4:55