Software :: Using Checkinstall To Make Eboard: Deprecated Conversion From String Constant To Char*

May 16, 2011

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: [URL]-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: warning: deprecated conversion from string constant to 'char*' warning: deprecated conversion from string constant to 'char*' In function 'gboolean board_expose_event(GtkWidget*, GdkEventExpose*, void*)': warning: deprecated conversion from string constant to 'char*' warning: deprecated conversion from string constant to 'char*'

View 4 Replies


Programming :: Warning: Deprecated Conversion From String Constant To Char*

Jul 3, 2010

I've just updated my linux system (Debian) and went to compile some code I'm working on. However it causes some problems, presumable because of GCC up dates. I get many of my subject line errors for example

../../common/Version_Control.cpp: In function int VersionControl():
../../common/Version_Control.cpp:55: warning: deprecated conversion from string constant to char*

So I check up the error and it comes from my error handler code which is a function

extern void SetError(char *string,int error_number)

The net tells me all I need to do is convert char *string to const char *string, however when I do so and recompile I get the following error

Error_Control.cpp: In function �void SetError(const char*, int)�:
Error_Control.cpp:41: error: invalid conversion from �const char*� to �char*�
make: *** [Error_Control.o] Error 1

I think I've done exactly what's recommended ?

View 3 Replies View Related

Programming :: G++ Warning - Deprecated Conversion From String Constant To 'char*'

Jan 10, 2011

My problem is that the warning keeps apperaing when I run g++ compilation.

Say, I have a system runtime function with header (imaginary)sysruntime.h: void printfunction(char *line);

Then in my .cpp file, I will include the above header #include <sysruntime.h>

Then, I do the below:
Line12: char *linetoprint = "Print this line";
Line13: printfunction(linetoprint);

But, I will get the warning message "Line12: deprecated conversion from string constant to 'char*'". (Even though it compiles)

My question is how should I declare my char* so that I wont get this warning message, and can still run printfunction(char* line) correctly?

View 7 Replies View Related

Programming :: Fixing C++ Invalid Conversion From Const Char* To Char?

Mar 4, 2010

m getting the following error when trying to compile:Quote:

$ make
g++ -march=athlon64 -O2 -pipe -fomit-frame-pointer -msse3 -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"undelete"' -DHAVE_SVDRP -I../../../include undelete.c


View 14 Replies View Related

Programming :: C++ Invalid Conversion From Const Char* To Char*

Jul 9, 2010

I am having trouble with the following exception class.


/**Standard Exception


Line 43 points at the snprintf() command.I think the error has to do with the function being virtual and the const after the function definition, however although I have been looking really hard I have not being able to find the reason nor the solution to the problem.

One workaround that I know is moving the block of source withing the virtual function, in the constructor, however having read around (boost library exceptions tutorials) it specifically said that formating of errors messages should not take place withing the construction of objects because we are risking throwing an exceptions and messing up the flow order.

View 11 Replies View Related

Programming :: SH: Remove Last Char If It Is An Empty Char In A String

Jul 5, 2011

With this I may remove the last emtpy char which is not visible, coming from net, windows, ...

echo "$mystringwindowsorotherwithemptylastchar" |sed s/.$//

However if there are not then it makes a problem and delete effectively an existing char.

echo "klklj" |sed s/.$//

Anyone would have a solution for SH?

View 2 Replies View Related

Programming :: Convert The Int To A String Using Stringstream Then Convert The String To A Char?

Mar 26, 2011

Do I have the convert the int to a string using stringstream then convert the string to a char? or is there a more direct way?Also is there a way to tell the length of a int?

View 5 Replies View Related

Software :: Checkinstall Used In Fedora4 Make Some Error?

Mar 9, 2011

I used checkinstall in fedora4 to make a rpm packed.The rpm pack is ok.When I used:

rpm -i xxxx.rpm
to install the pack is ok.
But when I used:
rpm -e xxx
to uninstall the pack didn't report error.But not uninstall.
In my make file that checkinstall used is like this:
install: FORCE


View 1 Replies View Related

Programming :: C String As An Array Of Chars And As A Pointer To Char?

May 13, 2009

Please look at the comments



View 14 Replies View Related

General :: String Of Text Conversion?

Sep 24, 2009

I'm writing a centralized logging piece, and I need to grep out logs that have specific date tags. The date command returns abbreviated months (Sep), via "#date -d yesterday '+%b'" but I need it all caps. ie SEP vice Sep. Otherwise the grep doesn't catch it

View 3 Replies View Related

Programming :: Reading In A Outside Text File And Putting In The String On That Line Into A Char Array That Is Already Allocated?

Mar 29, 2011

Here is the issue. I am reading in a outside text file and putting in the string on that line into a char array that is already allocated.

int main(int argc, char *argv[])


View 1 Replies View Related

Programming :: Compiler Error: "Conversion From 'bool' To Non-scalar Type 'std::string' Requested"

Mar 5, 2010

As a result, I want to know what this error means, and how to correct it.Here is my code:


#include <iostream>
#include <cmath>
#include <cstring>
using namespace std;


It is once I use the 'try_crack' function inside of main that I get this error.

View 6 Replies View Related

Programming :: Point A Char Pointer To A Part Of Another Char Array?

Nov 4, 2010

Programming in C.I have two char arrays.char buf1[1024];char buf2[1024];Aren't buf1 and buf2 also pointers?I read in 1024 bytes into buf1 which contain about 300 bytes of characters with newlines. The data is basically a few English sentences. I'm trying to scan buf1 for newlines and then stop at the 1st newline and copy the rest of the data from that 1st newline into buf2.So I run a for loop to look for that new line.

for(i=0; i<1024;i++) {
if((strcmp(&buf1[i], "


View 8 Replies View Related

Programming :: Char Variable Is Behaving As Unsigned Char?

Feb 14, 2011

i define variable of type char (range -128 to 127). when i tried to print the value after assigning a -ve value to it it displaying a +ve value of that -ve value(256+value).

View 3 Replies View Related

Programming :: Make A Template Char Or Wchar_t Default Function Argument?

Oct 30, 2009

I have a template similar to the following.


template <charT>
virtual void do_get_date(charT* = "str")
{ ... }

As you can see we have a problem. If we use a wchar_t instead the string wont be formatted right we need to prefix L in front. If we use char16_t we need to prefix a u in front. Is there a was to make the generic without resorting the the std::string class?

View 2 Replies View Related

Programming :: Convert A Char * To Unsigned Char?

Mar 4, 2010

is it possible to convert a variable from char * to unsigned char ?

View 5 Replies View Related

Programming :: Take A "char*" String In C And Turn It Into A "FILE*" Stream?

Jun 26, 2011

Is there a way to take a "char*" string in C and turn it into a "FILE*" stream?I tried searching, but all the answers I get are about C++.

View 2 Replies View Related

Ubuntu Multimedia :: Make Exact Video Quality Conversion With Ffmpeg?

Jan 3, 2010

I spent about a half hour wrestling with different website tutorials about how to convert a file with ffmpeg and figuring out how to get all the video quality options right. Then I discovered you can just use the -sameq option and it figures it all out for you if you don't want to change the vid quality but just want it in another format. Thought I'd leave this on the site in case anyone else finds himself in the same boat.

View 1 Replies View Related

Debian :: Checkinstall" Seems To Be Not Installed "sudo Apt-get Make" Does Not Workcheckinstall" Seems To Be Not Installed "sudo Apt-get Make" Does Not Work

Feb 12, 2011

So installing a programm is a problem. I like to install Aqualung. "/.configure" works. But "make" seems to be not installed. "checkinstall" seems to be not installed "sudo apt-get make" does not work. I have no internet connection with linux, because I have no idea how I install the network card. I guess this sudo command use internet? Is there another way to compile that program? (And just by the way, why must this be so difficult?

View 3 Replies View Related

Ubuntu :: Add The Stockfish Engine To The Eboard?

Aug 19, 2011

I have installed both eboard and stockfish, but how do I add the stockfish engine to the eboard? The only engines I can find in eboard are: Gnu chess, sjeng and crafty.

View 1 Replies View Related

Slackware :: Play Chess Using Either Eboard Or Xboard?

Apr 9, 2011

I've tried starting them both, xboard won't even start. I googled e and xboard slackware and only got links to the mirrors in the first couple of pages, I skimmed through the man pages, but I couldn't figure out how to get either of them working. All I could do is start a game in eboard using play vs the computer - play vs generic program, but then the computer doesn't move. How should I invoke the game to get it working?

View 9 Replies View Related

Programming :: Copy String A To String B And Change String B With Toupper() And Count The Chars?

Oct 22, 2010

copy string a to string b and change string b with toupper() and count the chars

View 3 Replies View Related

Programming :: Programing - Reading File Line By Line Then Char By Char In Each Line

May 29, 2010

I've never programed shell scripting.

Code goes like so:

I simply want to read a file "data.txt" line by line Then char by char and add them into a result var. The file is supossed to always contain numeric values

View 8 Replies View Related

OpenSUSE :: How I Can Make Variable Names Out Of String

Jul 13, 2011

I am bad with bash programming and I need some help how I can make variable names out of a string.I will need some help start doing that. And I think the first would be to get part of the filenames strings into variables.

View 7 Replies View Related

Ubuntu :: Installing Git Using Checkinstall?

Nov 30, 2010

I'm trying to install git ( from source. I need apt to recognize that it's installed, so I figured I would install it using the checkinstall program.

I followed the steps listed in the following thread: [URL].. Unfortunately, I'm getting some errors. I wondering if anyone could tell me what I'm doing wrong. Full log:

$ wget
$ tar xf git-
$ cd git-
$ make prefix=/usr/local


View 4 Replies View Related

Fedora :: F13 - Make Location/address Bar In Nautilus Look Like A String?

May 31, 2010

In Fedora 12/11 there used to be a button in the Nautilus to the left of the address/location bar which would let me switch between two representation of location bar: 1) buttons 2) as string that I can type in.

In Fedora 13 I cannot get the same behaviour. The button is missing and location only shows up as a set of buttons.

I have looked in the settings of Nautilus, but couldn't find anything related to this. How do I get location bar to show up as a string where I can manually type the path?

View 3 Replies View Related

OpenSUSE Multimedia :: Checkinstall Does Not Seem To Be Able To Create An Rpm?

Nov 18, 2009

There is a nice package wxCam that used to be included in the opensuse (last one was, I think 10.3). Or perhaps I am wrong and it was from the Packman repo. Who maintains these packages?

I installed it from source and it must have ended up installing about 200MB of dependencies and dependencies of dependencies. I am not knowledgeable enough to create an rpm (checkinstall does not seem to be able to create an rpm).

View 9 Replies View Related

Ubuntu :: Packages Installed By Checkinstall Being Overwritten By Synaptic?

Jul 7, 2010

I recently installed a few packages from source using checkinstall (notably x264). Today, when my normal synaptic/apt-get upgrade ran, it wanted to to overwrite the (newer) version I installed with the (older) version in the repos.Is there any way to have synaptic/apt ignore packages installed via checkinstall so that they aren't overwritten?

View 4 Replies View Related

Ubuntu :: Delete All Python Packages That Were Installed By Checkinstall With The /usr Prefix?

Aug 31, 2010

I ran into this bug: [URL]...I checked that overwrite-local was set to 1. So I want to delete all python packages that were installed by checkinstall with the /usr prefix.

Now it has been some time since I did this and I dont really remember. Does anyone using checkinstall know how to spot packages installed via checkinstall? I already checked the FAQ and doc of checkinstall, but no info on this.

View 1 Replies View Related

Ubuntu :: Sun's Java Deprecated / Why Is So?

May 10, 2010

Worked around the problems with OpenJDK causing slowness/crashes/CPU-hogging on my system by installing Sun JDK.

Why is Sun's Java deprecated? OpenJDK's buggier than an ant farm in my experience, and every time a Java applet starts in my browser, CPU immediately goes to 100%, and doesn't stop, even when I close the tab that the applet was running in. Only way to stop the CPU from getting hogged is to kill Firefox and restart it.

That or switch to Sun Java instead of OpenJDK.

View 1 Replies View Related

Copyrights 2005-15, All rights reserved