[Mesa-dev] [PATCH] program: use extern "C" where appropriate in sampler.cpp
Mark Janes
mark.a.janes at intel.com
Tue Dec 16 14:08:06 PST 2014
Brian Paul <brianp at vmware.com> writes:
> I don't think this is right. The functions in question are C++
> functions and they're only called from .cpp files. I don't see why
> C-style linkage is desired.
>
> See https://bugs.freedesktop.org/show_bug.cgi?id=87371 for another
> approach. Please test that patch if you can.
That patch fails as well. I also had to fix
src/mesa/drivers/dri/i965/brw_fs.h to link the gtest.
brw_fs.h is included by other headers, but none of them get included by
a .c file. I'll send another patch.
-Mark
More information about the mesa-dev
mailing list