[SOLVED] Eboard program: warning: deprecated conversion from string constant to ‘char*’
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Eboard program: warning: deprecated conversion from string constant to ‘char*’
I am trying, using checkinstall to make eboard to enable use of this program with a DGT electronic chessboard (option not available in the program included in the repositories) according to the instructions given here. After the preliminaries, namely downloading and extracting the source from: http://prdownloads.sourceforge.net/e...-1.1.1.tar.bz2 ./configure runs fine but (after su-ing to root), both make install & checkinstall fail after numerous warnings about "deprecated conversion" like:
Code:
board.cc:55: warning: deprecated conversion from string constant to ‘char*’
board.cc:157: warning: deprecated conversion from string constant to ‘char*’
board.cc: In function ‘gboolean board_expose_event(GtkWidget*, GdkEventExpose*, void*)’:
board.cc:1414: warning: deprecated conversion from string constant to ‘char*’
bugpane.cc:304: warning: deprecated conversion from string constant to ‘char*’
So can anyone can offer advice on this? Thank you.
1) Ubuntu, Debian : Edit the Makefile line 1 to : CXX = g++-4.2
2) Suse : Makefile line 1 : CXX = g++-4.1
3) Fedora, CentOS, RHEL : Makefile line 1 : CXX = g++34
It worked with g++-4.3 and although there were still a lot of similar warnings as before, I successfully installed the resulting deb package.
Quote:
Originally Posted by knudfl
P.S. : Eboard packages (repositories) are available for the most Linux.
True, but it looks like it's necessary to build a package from source to get it to work with a POSIX driver for an electronic board called dgtnix connected to the computer by serial port or USB.
The perfect result comes with g++-4.1 : No warnings.
( Using g++-3.4 : Some completely different warnings.)
Thanks again for your help: I'll try g++-4.1
I'll post again, probably in a separate thread regarding getting eboard to work with the dgtnix POSIX driver but I'll link from here in case anyone's interested.
I have only recently started looking at the subject of software packaging so I'm sometimes a bit overwhelmed by the enormous amount of search results obtained for errors and warnings like these so your help is much appreciated and has saved time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.