FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 10-06-2008, 02:46 PM
Ron Johnson
 
Default where is XextFindDisplay?

On 10/06/08 09:39, Hugo Vanwoerkom wrote:

Hi,

I am trying to compile *on my own* some sample code that comes with
nvidia-settings and I get errors:


do-nvctrl.cpp.text+0x1f): undefined reference to
`XextFindDisplay(_XExtensionInfo*, _XDisplay*)'


but I have Xext referenced:

g++ -o do-nv-control-dvc do-nv-control-dvc.o do-nvctrl.o -L/usr/lib
-L lib-nv -L /usr/X11R6/lib -lXNVCtrl -lqt-mt -lXext -lX11 -lm -lXxf86vm
-lQtGui -lQtCore -lpthread


So where does that entry reside?

Anybody?


Google is your friend!

http://www.google.com/search?q=XextFindDisplay

The first result from this query shows that it's in libXext, package
libxext-dev.


--
Ron Johnson, Jr.
Jefferson LA USA

"Do not bite at the bait of pleasure till you know there is no
hook beneath it." -- Thomas Jefferson


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 10-06-2008, 03:20 PM
"Jason C. Wells"
 
Default where is XextFindDisplay?

Ron Johnson wrote:


Google is your friend!

http://www.google.com/search?q=XextFindDisplay

The first result from this query shows that it's in libXext, package
libxext-dev.




Don't forget our old friends find and grep.

find /sources_dir -type f -exec grep -l XextFindDisplay {} ;

Regards,
Jason


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 10-06-2008, 03:48 PM
Hugo Vanwoerkom
 
Default where is XextFindDisplay?

Ron Johnson wrote:

On 10/06/08 09:39, Hugo Vanwoerkom wrote:

Hi,

I am trying to compile *on my own* some sample code that comes with
nvidia-settings and I get errors:


do-nvctrl.cpp.text+0x1f): undefined reference to
`XextFindDisplay(_XExtensionInfo*, _XDisplay*)'


but I have Xext referenced:

g++ -o do-nv-control-dvc do-nv-control-dvc.o do-nvctrl.o
-L/usr/lib -L lib-nv -L /usr/X11R6/lib -lXNVCtrl -lqt-mt -lXext -lX11
-lm -lXxf86vm -lQtGui -lQtCore -lpthread


So where does that entry reside?

Anybody?


Google is your friend!

http://www.google.com/search?q=XextFindDisplay

The first result from this query shows that it's in libXext, package
libxext-dev.




Right. I saw that. And libxext-dev is installed and so is libxext6.
Then why does


g++ -o do-nv-control-dvc do-nv-control-dvc.o do-nvctrl.o
-L/usr/lib -L lib-nv -L /usr/X11R6/lib -lXNVCtrl -lqt-mt -lXext -lX11
-lm -lXxf86vm -lQtGui -lQtCore -lpthread

still give me an undefined reference to XextFindDisplay if I have both
libraries installed?


Hugo


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 10-06-2008, 08:47 PM
Ron Johnson
 
Default where is XextFindDisplay?

On 10/06/08 10:48, Hugo Vanwoerkom wrote:

Ron Johnson wrote:

On 10/06/08 09:39, Hugo Vanwoerkom wrote:

Hi,

I am trying to compile *on my own* some sample code that comes with
nvidia-settings and I get errors:


do-nvctrl.cpp.text+0x1f): undefined reference to
`XextFindDisplay(_XExtensionInfo*, _XDisplay*)'


but I have Xext referenced:

g++ -o do-nv-control-dvc do-nv-control-dvc.o do-nvctrl.o
-L/usr/lib -L lib-nv -L /usr/X11R6/lib -lXNVCtrl -lqt-mt -lXext -lX11
-lm -lXxf86vm -lQtGui -lQtCore -lpthread


So where does that entry reside?

Anybody?


Google is your friend!

http://www.google.com/search?q=XextFindDisplay

The first result from this query shows that it's in libXext, package
libxext-dev.




Right. I saw that. And libxext-dev is installed and so is libxext6.
Then why does


g++ -o do-nv-control-dvc do-nv-control-dvc.o do-nvctrl.o
-L/usr/lib -L lib-nv -L /usr/X11R6/lib -lXNVCtrl -lqt-mt -lXext -lX11
-lm -lXxf86vm -lQtGui -lQtCore -lpthread

still give me an undefined reference to XextFindDisplay if I have both
libraries installed?


Hmmm. "$ dpkg -L libxext-dev" seems joyless, also, as is
http://packages.debian.org/search.


--
Ron Johnson, Jr.
Jefferson LA USA

"Do not bite at the bait of pleasure till you know there is no
hook beneath it." -- Thomas Jefferson


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 10-07-2008, 11:57 AM
Hugo Vanwoerkom
 
Default where is XextFindDisplay?

Ron Johnson wrote:

On 10/06/08 10:48, Hugo Vanwoerkom wrote:

Ron Johnson wrote:

On 10/06/08 09:39, Hugo Vanwoerkom wrote:

Hi,

I am trying to compile *on my own* some sample code that comes with
nvidia-settings and I get errors:


do-nvctrl.cpp.text+0x1f): undefined reference to
`XextFindDisplay(_XExtensionInfo*, _XDisplay*)'


but I have Xext referenced:

g++ -o do-nv-control-dvc do-nv-control-dvc.o do-nvctrl.o
-L/usr/lib -L lib-nv -L /usr/X11R6/lib -lXNVCtrl -lqt-mt -lXext
-lX11 -lm -lXxf86vm -lQtGui -lQtCore -lpthread


So where does that entry reside?

Anybody?


Google is your friend!

http://www.google.com/search?q=XextFindDisplay

The first result from this query shows that it's in libXext, package
libxext-dev.




Right. I saw that. And libxext-dev is installed and so is libxext6.
Then why does


g++ -o do-nv-control-dvc do-nv-control-dvc.o do-nvctrl.o
-L/usr/lib -L lib-nv -L /usr/X11R6/lib -lXNVCtrl -lqt-mt -lXext -lX11
-lm -lXxf86vm -lQtGui -lQtCore -lpthread

still give me an undefined reference to XextFindDisplay if I have both
libraries installed?


Hmmm. "$ dpkg -L libxext-dev" seems joyless, also, as is
http://packages.debian.org/search.




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.

Hugo























--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 10-08-2008, 10:04 AM
"Aneurin Price"
 
Default 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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 10-08-2008, 05:11 PM
Hugo Vanwoerkom
 
Default where is XextFindDisplay?

Aneurin Price wrote:

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



You beat me to it. Last night going to sleep I thought of that
solution... :-)


Hugo


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 07:13 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org