Software :: Avoid Declarations In The Cscope?
Jan 18, 2011
I use vim+cscope. Since a struct or a function can be declared many times, when I want to find how it is defined, I'm troubled by a long list of declarations.I use 'cscope f g [def]', and I don't know why declarations are listed.So how can I configure cscope so that declarations won't be listed?
View 9 Replies
ADVERTISEMENT
Sep 23, 2010
I am working for a product which was evolved over a decade. There I have some combination of C style coding and C++ coding in same libraries. I am landing on some instances where C style function is expecting forward declarations for some other function for which I can not declare (due to design and architecture). Is there any g++ compiler option that directs the g++ to look whole preprocessed file (because definition is there down in the preprocessed file) than only forward in the preprocessed file. All these years this code is working as we are using CC compiler and that looks entire preprocessed file than only in the forward direction.
<Sample Code
Header1.h file
Function1()
{
[code]....
if I can not include Header2.h first then Header1.h. I have to include Header1.h and Header2.h because on the design hierarchy in this product. Also the function definitions are in header files as they are either template functions or functions expanded through macros.
View 6 Replies
View Related
Jul 17, 2010
Running on Debian Lenny, installed dhcpd with apt-get install dhcp3-server. Machine has two NICs: 192.168.1.1/24 and 10.100.1.17/24.
My /etc/dhcpd.conf:
DHCPDARGS=eth0
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.200;
option routers 192.168.1.1;
[code]....
Trying to start dhcpd reports "no subnet declaration for eth0 (192.168.1.1)" and "no subnet declaration for eth1 (10.100.1.17)". Is dhcpd using /etc/dhcpd.conf, or do I have the wrong config file? If it's right, why is this failing?
View 2 Replies
View Related
Nov 24, 2010
This is the makefile....
Code:
animesh:main.o input.o bsort.o output.o
gcc -o animesh main.o input.o bsort.o output.o
[code]....
View 7 Replies
View Related
Sep 12, 2010
I'm trying to use "netlink" to get ip address of a Linux box. But the linux/types.h included from "linux/rtnetlink.h" introduced many conflicting type declarations with "sys/types.h".
#include <rtnetlink.h>
#include <sys/types.h>
#include <sys/socket.h>
int main (int argc, char *argv[])
{
return 0;
}
The program will demonstrate such type conflicts.
View 3 Replies
View Related
May 28, 2011
I wasn't sure how to describe this in the topic title, but every time I install software with yum (su -c 'yum install package'), I have to download repository information (I think? I'm not really sure what it is, tbh). I checked to see if I had unrar installed or not (obviously I didn't), so I decided to install it. The download is 106k, yet I had to sit there for a while downloading whatever it was that yum was downloading. Is there any way I can skip this? Typically it's not a big deal to wait a minute until it's done, but sometimes I just want to get my program installed and get back to business. Most of my Linux career has been spent with apt-get instead of yum, so I don't fully understand why the process takes longer with yum than it does with apt-get.
View 2 Replies
View Related
Feb 12, 2010
i have just installed Ubuntu,i'am really concerned about security,i have no idea about linux.In windows, i use kaspersky internet security to protect the computer, so any time i want to log on my bank web, i use virtual mode or secure mode,and also virtual keyboard offered by kaspersky,i ve never had a problem,this way i think i protect myself against fishing.
Is there anyway to protect myself from the fishing attack in Ubuntu?
View 9 Replies
View Related
May 15, 2010
specs: toshiba lappy
110gb hdd, 1gb ram, core 2 duo 1.6ghz, nvidia 7600
windows xp pro service pack 3
jaunty jackalope
my problem is: i wanted to repartition (shrink xp and create partition for data storage) my hdd using gparted live cd 0.5.2-9. everything went fine until i clicked exit and reboot. after the cd tray automatically ejected i got a flood of "VFS: busy inodes on changed media or resized disk srO". this doesnt stop until i press enter. after that it reboots normally and there is no problem with the os.
my questions: 1) is that flood anything bad, is there a way to avoid this. i read somewhere that the problem is solved when using the terminal sudo eject - then push back the cd tray - then sudo eject -t. i tried that but it said failed because gparted cd is in use.
2) the first time that happened i didnt know what to do, so it flooded like for 15min or more until i pressed enter. my question is if the flood is being saved anywhere on the pc so that i have to delete it?
and a question regarding extended partition: 3) i have 50gb left that i want to use for data storage. i read that you can only have one extended partition. so since there is already one extended partition from ubuntu, i cant have another one for windows? so i can only make the data partition as primary or is there another reason why the "create extended partition" is greyed out?
last question: 4) when i set up the partition for swap i made it 1032gb big but in gparted it shows 980.53mb. is that still enough or why is it like that because somehow the sizes of the partitions seem a bit different than how they originally should be. im actually used in seeing the size shrinking a bit but i found it weird that the ubuntu partition shows 4.76 when it should be 4.5gb. i know its not much different but im just curious to know why..
partitions order: windows - unallocated (-->data partition) - ubuntu (primary) - home folder (extended) - swap
in windows the partitions are shown as: windows xp (31,74gb) - unallocated (50,05gb) - 4,76gb unkown - 24,27gb unkown - 981mb uknown
in gparted: its almost the same, only difference: there is unallocated space (7 or 8mb) between home folder and swap
View 6 Replies
View Related
May 17, 2011
on a Vimeo video in Firefox, and my computer became "partially frozen". The video stopped, but the audio continued to play to the end, but I couldn't clear the video. I pressed ctrl-f2 to switch to my other desktop, but it just brought up a blank screen, and switching back makes no difference.As it stands I have a black screen with my mouse cursor on it (I can move the cursor, yes). I'm new to linux, and I want to know if there are any keyboard shortcuts I could try to fix this. I'd rather not hard reboot whenever I run into a problem, I just don't know the terms to google for
View 3 Replies
View Related
Jul 13, 2011
I had a problem with Thunar in Xubuntu. As I often work with huge images, memory is consumed generating Previews. Disabling Previews seems to be very difficult in Thunar, as it makes use of external Thumbnailers. Another problem is making a file executable. I couldn't find out how to do that in Thunar. So I decided to change back to Nautilus, which solves the problems. In preferences it is easy to disable generating previews. But I was not able to get completely rid of Thunar. The folders on my desktop still would open in Thunar, although I set Nautilus as default browser. So the problem sometimes is still there. Uninstall is not possible, as it completely uninstalls xfce-desktop. Is there a way to avoid running both browsers at the same time?
View 1 Replies
View Related
May 6, 2011
How to avoid Control-D? I have a problem about my fedora 11, my fedora always gone in to Control-D. When I force shutdown or sometimes when my file or system gone error and etc. What is the meaning of Control-D anyway? It mean my system is Crash or corrupt? How can I avoid Control-D to my system?
View 1 Replies
View Related
Feb 15, 2011
I'm working on a managed desktop at work with Scientific Linux so I decided to install latest Ubuntu 10.10 on my laptop, an Aspire 6930, and set it up so it dual boots with Windows Vista.
It boots for the first time,everything looks great and it asks me to update some programs.After it does that,I restart and I get a grub rescue message while there was a strange clicking sound coming from the hard disk. I reinstall Ubuntu through BIOS with a CD and I bring the system to the original state.
I can now boot either with Ubuntu or Vista but I don't dare update the programs it prompts me to as I fear it will lead to the same result. It's been like this for the past month and I was wondering if there is a way to know what actually caused the problem in the first place assuming that is has to do with a program that was updated.
Truth is that the specific model has this problem with the hard disk that makes that constant clicking. When running Vista I have a program called Notebook Hardware Control which lowers some settings and stops the clicking.When running Ubuntu, there isn't any. So is there a way to know which program can cause such an error and refrain from updating it?
View 1 Replies
View Related
Feb 25, 2010
I have recently decided to use ATI video cards again due to poor linux support several years ago. I currently have a Radeon HD 3000 series card however I have been unable to install the fglrx driver under Debian Lenny 64. It seems that the Catalyst 10.4 driver is not compatible with the Xorg version in Lenny.
So far the NVIDIA has been very good at making drivers available for the latest linux versions. I have been running Debian Sid with an NVIDIA card with relatively few problems.Is it still best to avoid ATI graphics cards or is this just a temporary problem?
View 1 Replies
View Related
Aug 26, 2010
I am facing some problem with loopback on UDP sockets. is there anyway by with we could avoid loopbacking of a UDP datagram destined to same IP address, and instead force it to go all the way till NIC and then come back to the socket.
The problem is, we have some piece of code written at driver level, and we want each and every packet to hit that code on its TX and RX path. But if src and dest IPs are same, packet loops back from the IP stack itself, without hitting the driver code.
Can we modify the characteristics of a UDP socket, such that each and every packet has to go through NIC interface, thus avoiding loop backing when the src and dest IPs are same?
View 1 Replies
View Related
Sep 6, 2010
I'm facing difficulty while writing to an already existing file . I'm making a shell (programming in C). I want a file (say , logfile) to keep a record of all the commands a user enters. For the first command it runs fine , but for the second time and thereafter it overwrites the previous contents. How do I avoid this?
View 3 Replies
View Related
Oct 1, 2010
In the code below:
Code:
The output is:
Code:
Looks like the "," operator in the print inside the loop is adding a space for its own.
I want to print the sequence WITHOUT spaces. Something like this:
Code:
But I couldn't figure out how to do this.....
How to print a sequence, inside a loop, without that space ?
View 14 Replies
View Related
Aug 14, 2011
I have successfully build .deb im my box and it is running well. But during the debuild process I got followingdpkg-shlibdeps: warning: dependency on libatk-1.0.so.0 could be avoided if "debian/retrovol/usr/bin/retrovol" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libdl.so.2 could be avoided if "debian/retrovol/usr/bin/retrovol" were
[code]....
View 1 Replies
View Related
Jul 13, 2011
I'm new to Debian and GNU/Linux, and I don't know when it is time to update or upgrade Debian, and how to do it in order to avoid breakages
View 4 Replies
View Related
Mar 29, 2010
I get the following prompt everytime I try to connect a server using SSH.
I type "yes", but is there a way to aovid this?
The authenticity of host '111.222.333.444 (111.222.333.444)' can't be established.
RSA key fingerprint is f3:cf:58:ae:71:0b:c8:04:6f:34:a3:b2:e4:1e:0c:8b.
Are you sure you want to continue connecting (yes/no)?
View 3 Replies
View Related
Feb 27, 2011
Is it possible to forbid that more then one user open the same file in rw mode? In windows when you open a file that another user is using, there's ad advise and you have to open it in read only mode
I installed ubuntu 10.04 desktop edition on 3 pc (there is not a server-client architecture). I installed samba.(and smbfs)
put the strings:
[name]
comment = ...
path = /...
guest ok = yes
read only = no
create mask = 0777
directory mask =0777
Computers that access to that directory do (on boot, with root privileges)
mount -t smbfs -o username="user",password="pass" //192.168.0.12/name /mnt/cartelladimontaggio
But if two users access to the same file, both are authorized writing on it! So changes made by one are lost when the other save.
View 4 Replies
View Related
Apr 7, 2011
I use rsyc for synching files that I type with a server and every time I have to enter the server's password. Right now in my .bashrc file there is an alias like this code...
but can't find such a thing in rsync or ssh man pages. Does anybody know what I should do?
View 6 Replies
View Related
Jun 24, 2011
I hav disabled the password on startup but the default still pops up and asks the password. How can I stop that. I use UBUNTU 11.04
View 3 Replies
View Related
May 7, 2010
I am totally new to the fedora, and i have installed fedora 12. Once if I connected to internet, it will work 5 to 10 minuts fine, But later onwards i will taking to search.com page where i cannot able work on any websites. Then i checked with my internet service provider, there is no problem they say.
View 2 Replies
View Related
Oct 21, 2009
I'm using opensuse and i'm trying that users cannot change his own password (mantaining /bin/bash users active). Do you know how can I do it?
View 10 Replies
View Related
Sep 28, 2010
I have execute following command and got the following warning.
[root@sina0012 /]# serviceconf
No display information -- gtk_init not called
Gtk-WARNING **: cannot open display:
View 1 Replies
View Related
Oct 21, 2010
store the dns cache over the reboot in linux(which should not flush the dns cache on reboot).
View 2 Replies
View Related
Oct 21, 2010
idea to store the dns cache over the reboot in linux(which should not flush the dns cache on reboot).
View 2 Replies
View Related
Oct 7, 2010
I'm using Xterm. While running a prog/command if I scroll up and reading something on the screen, the xterm view resets to bottom if there is some output from the running command.
I tried enabling/disabling jump scroll, asynchronous scroll, scroll to bottom on tty output options of Xterm with no avail. In one way or the other way, the screen is scrolling or resetting to bottom if there is some output to screen.
I want to stop this behavior and the scroll should work as if it is in Konsole. The new output to screen should simply add at the bottom and the current viewing point should remain unscrolled. pls let me know if there is any working solution for this xterm problem.
View 13 Replies
View Related
Jul 22, 2010
I have created a linux machine and installed some softwares on it with root user privileges . I used to login with root user credentials for doing the various task.
Later i have realise that this is not the best practice to follow and there should be a new user with less privileges to be created for doing the day to day task.
I have read the steps to create the user but will that new user sufficient enough to do the task that i m doing it through root user?
Will my software allow the new user to work on them?
I would be glad if someone points me to a guidelines on what should be my next step?
View 4 Replies
View Related
Jan 11, 2010
Is there any way to avoid internal and data fragmentation?
View 5 Replies
View Related