Re: [OT] where is XextFindDisplay?
On Tue, Oct 7, 2008 at 12:57 PM, Hugo Vanwoerkom <hvw59601@care2.com> wrote:
> I figured it out but don't know the solution:
>
> The errors refer to the parameters used for XextFindDisplay, not
> XextFindDisplay itself, because I am using g++.
>
> When I do this:
>
> cc -Wall -I include-nv/ -I /usr/X11R6/include/ do-nv-control-dvc.c -o
> do-nv-control-dvc -L lib-nv/ -L /usr/X11R6/lib -lXNVCtrl -lXext -lX11
>
> I get no errors. But when I change the 'cc' to 'g++' I get the errors.
>
> The reason I use g++ is because I want to use Qt classes.
>
You probably need to use 'extern "C"' when you #include the headers then.
http://en.wikipedia.org/wiki/Compatibility_of_C_and_C%2B%2B#Linking_C_and_C.2B.2B_code
-Nye
Reply to: