[CMake] how to write a cmakelist to call a function in another c or cxx file

Stephan Menzel stephan.menzel at gmail.com
Sat Jan 16 13:52:36 EST 2010


I guess it would be a C linkage problem then.

Have you got extern "C" {} around the exported symbols?

Cheers,
Stephan

On Sat, Jan 16, 2010 at 7:21 PM, Yixun Liu <enjoywm at cs.wm.edu> wrote:
> I do add test.c (see previous email).
> If I change test.c to test.cxx, it works. I do not know why.
>


More information about the CMake mailing list