LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 05-16-2011, 06:48 AM   #1
kedaha
LQ Newbie
 
Registered: May 2011
Distribution: Debian 6.1 Squeeze
Posts: 8

Rep: Reputation: 0
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.
 
Old 05-16-2011, 08:40 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Eboard-1.1.1 : Use g++-4.3 or older , examples :

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


P.S. : Eboard packages (repositories) are available for the most Linux.
Please specify your OS: http://linuxsilo.net/docs/smart-questions_en.html

..

Last edited by knudfl; 05-16-2011 at 08:52 AM.
 
1 members found this post helpful.
Old 05-16-2011, 05:54 PM   #3
kedaha
LQ Newbie
 
Registered: May 2011
Distribution: Debian 6.1 Squeeze
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks knufdl for your reply,
Quote:
Originally Posted by knudfl View Post
Eboard-1.1.1 : Use g++-4.3 or older , examples :

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 View Post
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.
Quote:
Originally Posted by knudfl View Post
I specified my OS -Debian Squeeze - in my user profile when I joined the forums so you didn't notice it.
 
Old 05-17-2011, 03:05 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
I specified my OS -Debian Squeeze - in my user profile
Sorry, I didn't notice ...

Quote:
g++-4.3 and although there were still a lot of similar warnings
The perfect result comes with g++-4.1 : No warnings.

( Using g++-3.4 : Some completely different warnings.)
 
1 members found this post helpful.
Old 05-17-2011, 07:09 AM   #5
kedaha
LQ Newbie
 
Registered: May 2011
Distribution: Debian 6.1 Squeeze
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
Sorry, I didn't notice ...



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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] g++ warning: deprecated conversion from string constant to 'char*' chinho Programming 7 01-12-2011 03:09 AM
deprecated conversion from string constant to ‘char*’ knobby67 Programming 3 07-03-2010 02:29 PM
writing a program that takes in a string in C++ and converts to C char for use... Clarislock Programming 6 09-28-2009 01:44 PM
How can I disable the deprecated conversion from string constant to ‘char*’ warning? CelticBlues Programming 4 08-18-2008 12:43 PM
C++: char* to string, converting? rewriting program? need substr! lrt2003 Programming 2 06-19-2004 03:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration