Programming :: Use Of Auto Keyword In GCC4.4?
Apr 15, 2010
I am using latest GCC version GCC4.4 in my linux. my code snippet:
auto const char *ostr = ((int *)node)->str;
When i compile this, i get an error as follows:
error: auto will change meaning in C++0x;
View 13 Replies
ADVERTISEMENT
Dec 5, 2010
im using
Code:
scons prefix=/usr qtdir=/opt/qt4
to configure and i get these compilation errors
Code:
scons prefix=/usr qtdir=/opt/qt4
scons: Reading SConscript files ...
Platform: Linux i686
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/mixxx-1.7.2/SConstruct", line 42, in <module>
WE ARE IN: /mixxx-1.7.2/linux_build
QT path: /opt/qt4
Loading qt4 tool...
[code]...
ive been scratching my head at this one for days, i turned on the ubuntu virtual machine and checked what apt wanted to pull, and im suspecting that i need to find the source versions of several packages in regard to qt4 and libqt4 and various libqt4 extensions.
View 4 Replies
View Related
May 21, 2011
I write a small program to learn overflow. But when I input more than 5 characters (exceed the boundaries of the buffer),I can't get the character that I have initialized. I used gcc4.5.2 to compile this program. Then I used gdb to debug it. I found that when I input more than 5 characters, the variable 'test' was set to 0(ASCII code or '00').
[Code]...
View 8 Replies
View Related
Mar 24, 2011
I have a multiple txt file in one folder. I would like to remove everything from starting until find string keyword in one folder. Here is the sample of my text:
Code:
5a651a62sf1a54f2a1sf6a4f50a5f4a2f1a2d1sfs11231211f61d021sd1fs1Reassembles21f2sdf122dfs21fs212sdfdsf1s65f1s62f1
So i want to remove everything from starting until reassemble. Here is the sample output:
Code:
s21f2sdf122dfs21fs212sdfdsf1s65f1s62f1
I have multiple file in one folder. So how to use any script to read in one directory folder and do a same task. I prefer using awk, sed or perl.
View 5 Replies
View Related
Dec 2, 2010
I am trying to switch from gcc-4.4 (defaut with the "sudo apt-get install build-essential" command) to gcc-4.1
I was able to install gcc-4.1 using sudo apt-get install gcc-4.1 The command "which gcc-4.1" gives "/usr/bin/gcc-4.1" I suppose this means that it is properly installed. I was also able to uninstall gcc-4.4 using "sudo apt-get remove gcc-4.4" However, the command "gcc --version" gives "/usr/bin/gcc: No such file or directory" This is because the gcc file(?) is named gcc-4.1. A name change should work, I think. But I do not have the rights to rename this file (after right clicking, "rename" is inaccessable).
Is there some way to use sudo apt-get install gcc-4.1 and make it install into/usr/bin/gcc to avoid these issues?
Or maybe direct the OS to usr/bin/gcc-4.1 rather than usr/bin/gcc?
View 1 Replies
View Related
Jul 4, 2011
I want to install NS2.28 on fedora 8, for that purpose I need to degrade my gcc 4.... to gcc 3.3.1. I remove gcc4 by using yum remove gcc. now I try to install the old version (gcc3.3.1) for that purpose, I am following the instructions of the website [URL] when I type the following commands :
PATH_HOLD=$PATH &&
export PATH=/opt/gnat/bin:$PATH &&
cd gcc/ada &&
touch treeprs.ads [es]info.h nmake.ad[bs] &&
[code]....
I got this error:
bash: --prefix=/usr/local: No such file or directory. note that I have typed these commands as root.
View 8 Replies
View Related
Apr 29, 2009
I am doing migration from GCC 3.4.3 to GCC 4.1.2.While doing that compilation is success after some errors.But while linking, it throws tons to "undefined reference to" errors.I am using libtool as well but the version is 1.5.10.Whether I need to upgrade libtool too?
View 3 Replies
View Related
May 6, 2011
I am running Mandriva Linux 2010.2 KDE on my Dell Dimension 5150 desktop. Using the software manager, I tried selecting the gcc4.2-c++ package for the compiler but I get the message:
Quote:
the following package cannot be selected:
- gcc4.2-c++-4.2.3-6mnb2.i586
View 14 Replies
View Related
Sep 15, 2010
When I configure the VMware-open-source-view-client using the command configure --host=sh4-linux CC=sh4-linux-gcc CXX=sh4-linux-g++ to configure the VMware-open-source-view-client which is proper running on the ARM architecture.(sh4-linux is a platform in ST).
configure:10578: result: no
configure:10518: checking for exit in -lboost_signals-mt
configure:10578: result: no
configure:10518: checking for exit in -lboost_signals-mt
configure:10578: result: no
[Code]...
View 7 Replies
View Related
Apr 21, 2011
I want to list all installed packages by keyword. For example I want to know what packages were installed related to "game". How can I do that in Fedora?
I tried 'yum list installed', 'you search' ... but still can't find a solution. I'm not a yum expert .
View 2 Replies
View Related
Mar 17, 2011
This used to work by default in previous versions of FF.
imdb $movie
wiki $some_topic
now they don't.
My personal favorite was
man $page
Open about:config and search for keyword.URL - it should be blank. Double-click to edit and enter
Code:
[URL] This will restore the previous Firefox keyword search behavior. No restart necessary.
View 2 Replies
View Related
Jul 10, 2011
I've set up a sandisk usb stick to boot/install 11.04. On two eepc netbooks I get the same issue when I try to boot from the usb: SYSLINUX 3.63 Debian 2008-07-15 EBIOS Copyright 1994-2008 H Peter Anvin Unknown keyword in the configuration file
View 3 Replies
View Related
Apr 10, 2011
I have a file and at some point in the file the string "DONE" appears (it's unambiguous). I want to redirect all that is coming starting from the next line to a new file. How do I do that?
View 6 Replies
View Related
Mar 19, 2010
I'm working on RHEL5 dealing with AS (ActionScript) files in Linux GVIM Editor but everything is in blue color. Can i set color coding for my keywords?
View 3 Replies
View Related
May 16, 2010
I need to write a script that can search up to 3 parameters and find all files containing those words. then display them and the amount of hits it got.if the first parameter exists, then we can assume we are looking for the word supplied.if the second parameter exists, then we are looking for files with both keywords.if third parameter exists test the second parameter for the values ('and', 'or', '-v') and search accordingly. These are the only values accepted as the the second one when 3 parameters are present.
lastly, if there are zero or more than three parameters echo as an error and when 3 parameters have been entered we echo an error when the second parameter is not one of the following: 'and', 'or', '-v'.
View 1 Replies
View Related
Jan 12, 2011
recently got this message when USB booting:Unknown keyword in configuration file: gfxbootI used to have the "Unknown keyword in configuration file: ui" problem, which was spread throughout the forum. I know people have fixed it by removing the "ui" in the config file. This is what I did in /syslinux/syslinux.cfg
# D-I config version 2.0
include menu.cfg
default vesamenu.c32
[code]....
View 3 Replies
View Related
Oct 17, 2009
The owners manual of my monitor gives me the following informations:
When editing my xorg.conf, do I have to add the automatically 'keyword' ? (saw nothing about it in man xorg.conf or man nv)
View 6 Replies
View Related
Jun 28, 2011
When I eject CD from CDROM by pushing eject button(mounted on CDROM) it still shows CD and it's contents in nautilus file browser. If I replaced the CD it still shows contents of older CD. If I eject CD manually by file browser then there is no such issue. I know this is the kernel issue because this issue has come after updating my kernel from linux 2.6.33 to linux-netbook-2.6.35. I am using MeeGo. I want to know which kernel parameter(or module) I have to add.
View 7 Replies
View Related
Oct 25, 2010
I'm having problems installing Ubuntu 10.10 Netbook onto my Asus 900. I downloaded the .iso then used the "make startup disc" feature in my Mint 9 desktop machine to make a usb install disk. All appears well at that point. When I try to boot from the usb stick, I get an error message as follows:
"SYSLINUX 363 Debien-2008-07-15 ......
Unknown Keyword in Configuration File
boot: "
and the cursor just hangs there and doesn't respond to the keyboard.
I also tried it on another Asus and a Gateway Laptop with the same results.
My intention is to have this the sole OS on my little Asus 900.
View 4 Replies
View Related
Jul 13, 2010
Does anyone have an example of a way to use ImageMagick or GIMP to Auto-White-Balance and scale 50% as a shell script? I'm asking because I usually do this to post-process photos in GIMP but being able to do this in a shell script means I could put it in Thunar in Xfce and save myself quite a bit of time.I checked the man page of mogrify and convert and didn't see any auto-white-balance type options that I am aware of
View 3 Replies
View Related
Apr 28, 2010
To run applications compiled for RedHat 4 Enterprise (gcc3.4) on RedHat 5 Enterprise (gcc4.1), what should I do?
View 4 Replies
View Related
Aug 24, 2010
I know PHP auto removes stale sessions on it's own, but that doesn't remove them from the MYSQL table. So I was gonna make a cron script that ran once every hour that removed any MYSQL shopping cart item from the table if the original session_id that created it does not exist anymore.
From my understanding a session_id is an "actual" file located somewhere on the harddisk (is it not? correct me if I'm wrong), so I was going to do a simple check for each item in the shopping cart to check for it's original session file, if it didn't exist on the harddisk, then simply remove it from the mysql table.
View 1 Replies
View Related
Feb 20, 2010
Does anyone know if there's a way to make nano support auto-complete and auto-bracket closing?
View 1 Replies
View Related
Apr 22, 2011
I code primarily in jQuery/JavaScript, and I'm looking for a text editor for Linux that has auto-indent and auto-outdent (seems to be tough to find that). Any suggestions? I've checked Gedit, Cream, vim, Bluefish.None of them seem to have this feature.
View 2 Replies
View Related
Jan 6, 2011
I recently installed 32bit maverick and wanted to make it login automatically. I tried enabling auto login from Admin > Login but that didnt work and I was still prompted for my password. Then I went to Users & Groups and changed the password option to Do Not ask for password at login now after I reboot, the user list is shown (only 1 user) and it doesnt ask for password after I click on my username.
However, then it gives a few errors (as i vaguely recall):
1. cannot load .ICE directory in my home directory
2. some error 256 about a gconf-sanity-2 file
3. nautilus cannot load my home directory etc
and then it gets stuck without loading anything (blank wallpaper). i ve tried navigating to my home directory using Alt F2, gksudo nautilus and my home dir contents are encrypted by the ecryptfs (there is a readme.txt file and a shortcut). i have tried to decrypt but it doesnt work... i ve also tried to start/stop gdm, and startx but nothing works. if i stop gdm, then the prompt doesnt recognize my password and keeps on rejecting the commands i enter... I think this has something to do with the home dir not being decrypted due to the dont ask for paswd option... how can i disable the dont ask for pwd without the gui (i can access my / by booting through an external usb).
View 4 Replies
View Related
Feb 3, 2011
I have noticed that a common issue to several distros is the fact that the networking subsystem doesn't automatically detect the link if an ethernet connection is disconnected and then re-connected to the NIC after boot. If the ethernet cable is connected after the system is up and running, nothing happens - ethtool eth0 shows link detected: no, and you have to restart the network service to let the NIC know that there is in fact a link, and actually connect. I have a Fedora14 (KDE) box with a brand new Asus motherboard with embedded NIC. Everything works great except the auto-detect of a freshly connected ethernet connection if the link is down to begin with.
Am I missing a ethernet link sentinel utility or something, or is this just the way linux works? I have done plenty of research on plenty of posts, and it seems this is a common problem, with no solution other than manually or programatically restarting the network service in a script to detect the link after a disconnect.
View 3 Replies
View Related
Jun 3, 2010
I press On-button, Debian boots, logs in and automatically connects to the Wireless network AND! to my local pc via LAN. It runs an ssh server, so I can ssh into debian over internet and communicate with the local pc (send a magic packet).Here are my problems:
1) I don't how to log in automatically. This and this doesn't work.
2) I need a network tool that can manage multiple connections and has a reconnect feature. With the default network manager I cannot even connect to more than one network simultaneously although I have two network devices of course.
And I guess I can run all that in console mode, right?
View 10 Replies
View Related
Mar 16, 2010
I would like to exec a script whenever a user mount a device. The device could be an internal device (for example a partition on a second hard disk) or a removable one (for example a usb hard disk). The script must have sudo capabilities even if the user is not included in the admin group. Is it possible?
The specific question:
I would like to add acl option to a device whenever it is mounted.
I tried fstab but it's changing the behaviour of nautilus see:
[URL]... so I would like to create a script with the command
Code:
sudo mount -o remount,acl /media/data
and auto execute it any time data is mounted.
View 1 Replies
View Related
Jul 23, 2010
I recently installed a server with Software RAID. I tested by powering it down, unplugging one drive and powering it up. Magically, it worked!I found out later that I have to manually add individual devices like md1 to sda2 md2 to sda4. I got all of them added and rebuilt but my question is: Is there a way to make it so that if I "removed" a drive and put it back, the system will senses the new drive and rebuilds based on some internal table?
View 1 Replies
View Related
Oct 12, 2010
Had a couple of problems installing Maverick from USB last night and figured I should share in case someone else finds themselves in the same situation.Hardware: HP 4510s 1.20GHz Duo CPUStart-out OS: Karmic 9.10Downloaded 32-bit ISO of Maverick 10.10Formatted USB drive to FAT32 using Gparted as Startup Disk Creator would not format it for me for some reasonRan Startup Disk Creator on formatted driveRebooted, opted to boot from USBAfter the boot menu but before being given any setup-related options from the Ubuntu installer, I got the following error: Quote:
SYSLINUX copyright info (I forget exact wording)
Unknown keyword in configuration file
boot: _
[code]...
View 6 Replies
View Related