General :: Error: Lvalue Required As Increment Operand
Jan 22, 2010
I got some sourcecode written with c++. I found it did not supported by the newer version of gcc. So I wanted to install an older version. But it always comes up with the question like "./read-rtl.c:653: error: lvalue required as increment operand", what should I do now?
it's been a long time since I did coding in C, but thought to pick up a very old project again, just to show off what I have been working on ten years ago.I deducted my problem as follows:
I need to write a simple app that is huge in size (256 MB) but I can only got it up to 31 MB and got compiler error if I went greater than 32 MB. /tmp/cc7Ax35n.s:246: Error: operand out of range (0x02000004 is not between 0xfe000000 and 0x01ffffff).
I tried to change ulimit -l and -s options but it didn't help. Does anyone know why I got the compiler error and how to fix it? I am running RHEL 5.4.
I just installed OS 11.4 this morning. Was previously on CentOS. I chose to have it import the partition & raid setup during install. Now when it boots it hangs with
"Could not find /dev/disk/by-label //" "Want me to fall back to /dev/disk/by_id/ata-ST(lots of drive stuff) -part2 (Y/n)" If I just hit ENTER at that point the boot will go on and it runs fine, but it stalls every time with that same error on boot. I did quite a bit of searching with Google and here (the search here considers every word in the error message to be too short or too common).
Today i am trying to learn how to use sed. I set up a testing folder with the following files:
AAb.lol AAc.lol AAx.lol test.sh
My goal is to create a script (test.sh) which renames all the files to their original name without AA. I want to end up with this:
b.lol c.lol x.lol test.sh
sed seemed to be the perfect tool so i went ahead and created a script which i think should clear the job.
[Code].........
mv: missing destination file operand after `$i' From that 2nd line i can tell that $NewName is just empty. I also read something about sed needing the -e option for scripting purposes but i just don't understand it.
What is the procedure to increment the number under the cursor ? 12 Which key i have to press to make this 12 to become 13. I know the method of keeping the number in register and incrementing, But am looking for a single key to increment the number under cursor.
I have a NAS (dlink-320) with a fully working fun_plug (http://wiki.dns323.info/) Linux system.However when I try to install x263 the configuration scripts says it need the math function log2f()But because fun_plug uses uClib instead of glibc and uClib have not yet implemented log2f() function I am trying to compile the glibc instead. I am only interested in the math part of glibc but have not found any documentation to just compile this part so it seems that I have to compile "most" of it. have gli I have copied glibc-ports-2.9/sysdeps/arm to glibc-2.11.2/sysdeps.and I enter
Code: ../configure --prefix=/ffp --libdir=/ffp/lib --includedir=/ffp/include --enable-shared --build=arm-linux but get the following error message
I have installed bluez.4.81....but when i install /home/george/Desktop/obexd-0.37.tar.gz,a configuration error occurs telling that libbluetooth is required. Is there any solution??
I set up the 'Proxy' from Yast and they tested successfully. I can connect to internet, but why am I getting 'ERROR 407 proxy authentication required'?
FYI, my comp is the part of company .NET network with bunch of firewall and security...
i have just installed Red Hat linux 9 workstation ,i have configured the lan ip and successfully ping to other pcs on network ..but problem is internet is not working , i have already set the proxy setting, i have windows environment and running isa server 2006 proxy server ,when i trying to browse any site , isa eroor page occur "error code :407 proxy authentication required" Linus machine couldnot prompt the user credentiall.
After having problems with lxde crashing while running Jessie, and re-installing Wheezy, I am not able to mount my WinXP drive. In the past I was able to run pcmanfm and mount the drive from there. It would ask for my root password and then would mount the drive. Now, however, when I click on the drive icon it gives me an error message saying authentication required.
One thing is that when I installed Wheezy I had the WinXP drive disconnected so as to not inadvertently install Wheezy on the wrong drive (I have two identical drives). After installing I connected the WinXP drive and then did a grub update. I can boot either drive, as expected, but I can not mount the WinXP drive from pcmanfm. Do I need to change the Policykit?
I am trying desperatly to install boxee onto my pc Boxee - Watch Movies, TV Shows and clips from the Internet on your TV.without success.I have downloaded the source code from the site and have ran
./bootstrap ./configure
The ./configure last few lines = checking for boost/shared_ptr.hpp... yes checking for main in -lGL... no configure: error: Could not find a required library. Please see the README for your platform.
I'm not sure what this lGL is referring to. The readme states that I need the below to run the configure, though that doesn't say lGL either?
In red hat linux server 6. I start up virtual manager and I get below error prompt. Package required for KVM usage The following packages are not installed qemu-kvm These are required to create KVM guests locally. Would you like to install them now. I press yes but the package cannot located ... So, I have install the qemu-kvn-0.12.1.2.113.el6_0.8.src.rpm already. I use command rpm -ivh XXX.rpm to install.
I tried searching for this, but everything, for pages and pages, shows me the `if -e filename`. That's not what I'm looking for, at least I don't think I am. I am working on a script that will search a directory for certain file names and increment a variable by one for each result returned. Each time I search this file name, the file found will also be deleted. I would like this script to be run about every 6 hours or so. We'll call this script A.
I also have a script that runs daily that I would like to tack the count to the end of the text file that it outputs. We'll call this script B. I'm confident that I would want to store the count from script A to a text file to be called in by script B, but don't know how to do so. Here's what I have so far:
Code: #!/bin/bash SD=0#Resetting variable count for testing purposes, removed this before release #Below, Smith is used for testing purposes as this is the newest backup with instances found find /cust_backups/Smith -name *Modified Script* && SD=$[SD+1] ; find /cust_backups/Smith -name *Bitdefender Online Scanner* && SD=$[SD+1] ; find /cust_backups/Smith -name *ccleaner.exe* && SD=$[SD+1] ; find /cust_backups/Smith -name *HJT.exe* && SD=$[SD+1] ;
[Code]...
Now, for those of you that know what you're doing, you're already shaking your head because you know that, no matter what, at the end of the script $SD will end up being 14. The problem is I don't know how to tell bash that if there is a result returned, increment by one. If there is no result returned, move to the next command. Beyond that, I'll need to know how to call the text of a file in to a variable so I can plug it in to the text output of script B.
Is there anyway in Linux that can achieve atomic increment/decrement for an integer variable without being interrupted? It means that the thread should not chance for other thread to run until theincrement/decrement is completed.
Can one of you point me towards a comprehensive print function tutorial in perl? I was under the impression that everything within quotes will get interpolated - but I am running into exceptions where it is not desirable to run some varaibles under quotes.
I'm in the process of debugging and compiling about sixty FORTRAN 95 programs and could use a little bit of your help before my brain is fried and fingers are cramped. Thanks for your time!
How do I get this loop to stop on each increment? This script does work but I would like it to stop at each increment, remember what the value of $n is, then continue until it gets to 7. I have worked so hard on this. My brain is hurting now.
I work in a simulations environment. I'm trying to write a bash script that will read fields from a .csv file into an array, the first field being an identifiyng number and the second field being a corresponding url. There are about 1600 of these number/url combinations in the .csv file that i'm reading from. Once that is done i want it to parse a text file and match the number, when it has a match i want it to enter the corresponding url into a particular line in the text file. The script I have written (with the help of the people on this forum a while back) does this well, but now I have a lot more data to parse. I think the script itself is explanatory enough to see what i'm doing. What i would like to do is cut it down to one while loop nested inside another loop so that I don't have 1600 or so elif statements. I can't figure out how to increment the output of the array. for instance, the first cycle would find the number that matches ${record1[2]} and input the url stored in ${record1[3]}. the next cycle would match ${record1[4]} and input the url in ${record1[5]}, and so on, does that make sense? The code is below and a sample .csv and text file are attached.
I'm running cygwin 1.7.7 on a win2k3R2 Standard edition server. I have a RHEL 4.7 linux host I'm scp'ing files from to the windows system using a simple cygwin scp command from what appears to be OpenSSH_5.5p1 on the cygwin host. When I run the simple scp command on the cygwin host, the counters initially display and increment/decrement, albeit what is at a much slower rate than is actually taking place. After the percent complete reaches a little less than 10%, all the counters from the cygwin console window cease to increment/decrement.
However, when I cd to the directory on the cygwin host where the file is being scp'ed to, the file is continuing to be transferred and a much higher rate than the counters seem to show. Finally, when the file transfer is complete by directly seeing the byte count as equal between the hosts, the scp counters will suddenly jump to 100% complete. This is not the case with my linux to linux scp's. The counters increment/decrement as expected and transfers are about what I'd expect over the same network infrastructure. This appears to be a cygwin ssh/scp implementation issue. I've posited this question to cygwin with no response as yet. The only reference I've been able to find on the 'net refers to buffering causing file transfers to appear to complete later than the transfer really does..........
Fedora Core 11 and installed songbird via songbird wiki website.I want to play mp3 files with songbird (which is basically why i downloaded it cos i dont like amarok) but when i try to play a file, it gives this message:"MediaCore Error: An id3 tag demuxer plugin is required to play this stream, but not installed"i searched a lot on web but couldnt find a solution