Programming :: How To Make G++ Behave Like Gcc

Mar 15, 2010

I am compiling some c++ code trying to connect it with libi2cbrdg.a library where I have a lot of functions. So when I am doing this gcc -g rand.c -lasound -li2cbrdg -o rand.I don't have missed functions instead I have some other C/C++ connected errors, when I am using g++ compiler like this g++ -g rand.c -lasound -li2cbrdg -o rand.it does not see functions inside that library but everything fine with c++ code.How can I make g++ behave like gcc in this case?

View 2 Replies


ADVERTISEMENT

OpenSUSE :: How To Make Dolphin Behave Like Konqueror

Dec 10, 2010

In Konqueror, when browsing files the display would open in the "Advanced Embedded Text Editor" which was really handy. In Dolphin it
opens in Kate (KWrite by default but I changed it.) Is there a way to make Dolphin behave like Konqueror?

View 4 Replies View Related

Ubuntu Networking :: 10.4 - NIC Bonding - Make Routes Behave Themselves?

Dec 3, 2010

I just set up NIC bonding in Ubuntu 10.4, following these instructions, and I've got it working except for one problem: Every time I up or down a network device, or every time the system reboots, my routes go all to hell with eth0 and eth1 entries next to my bond0 entries. When the eth0 and eth1 entries show up, my connection is hosed and I have to go in via the maintenance IP to kill each route one at a time, leaving only bond0. Here's how I want my routes to look at all times:

Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.87.9.0 0.0.0.0 255.255.255.0 U 0 0 0 bond0
0.0.0.0 10.87.9.1 0.0.0.0 UG 100 0 0 bond0
Here's my /etc/network/interfaces:

[Code]...

View 3 Replies View Related

Ubuntu :: Make Flash-drive Behave Like A Keyboard

Jul 13, 2011

possible to make a flashdrive behave like keyboard. I recon there must be some good reasons not to. Because I can imagine some situations where this comes in verry handy.For example a script that executes gives login tab password enter and readies the next login for the next computer.This way I could just plug the flashdrive in, let type, plug it out and continue.

View 2 Replies View Related

Programming :: Re-mapping Stdio For A Fork'd/exec'd Executable Doesn't Seem To Behave

Jan 27, 2011

I have a monitoring program ( GIT link to sourceforge ) which I'm trying to use to track when a child exits/dies/whatever. I'm calling fork(), then close for 0,1,2, and then opening /dev/null, monitored.stdout, and monitored.stderr as a replacement. I'm not sure if I've done something incorrect (perhaps I should use dup2 for explicit assignment?) but it appears that printf() messages are just being blackholed. I've tried setting the line buffering as a last ditch effort. On a different system, using code similar to the spawn_monitor() function, this appears to work fine, which makes me think I'm relying on some implementation specific detail.

Relevant function, for those who don't click links:

Code:

26 int spawn_monitored(char *argv[])
27 {
28 int exit = 0;
29 pid_t child;
30 const struct rlimit inf = {

[code].....

View 14 Replies View Related

General :: Make Zsh Completion Behave Like Bash Completion?

Jun 2, 2010

I switched to zsh, but I dislike the completion. If I have 20 files, each with a shared prefix, on pressing tab, zsh will fully complete the first file, then continue going through the list with each press of tab. If I want one near the end, I would have to press tab many times.

In bash, this was simple - press tab and I would get the prefix. If I continued typing (and pressing tab), bash would complete as far as it could be certain of. I find this behavior to be much more intuitive but prefer the other features of zsh to bash.

Is there a way to get this style of completion? Google suggested setopt bash_autolist, but this had no effect for me (and no error message was printed upon starting my shell).

View 1 Replies View Related

General :: Gnome - Configure The Definition Of "full Screen" To Make Large VNC Windows Behave Nicely On A Dual Screen Setup?

Dec 15, 2010

In my corporate environment, I'm required to run a Windows machine that acquires a VNC session on a machine in the server farm. My windows machine is dual head with different resolution monitors ( 1600x1080 on left and 1920x1200 on right). If I create a VNC session that spans the monitors, then maximizing a window in the VNC session causes it to stretch across both my monitors.

Instead, I want a "maximize" event to behave like it does on my windows machine -- I only want to maximize to the display that the window is on.

How can I define what, what I'll call, "maximize regions"? Regions in the VNC graphical plane where when I click "maximize", the window only expands to the region it currently ( and mostly) resides in.

Can I do this in gnome, X, xrandr, or some other magical interface?

View 2 Replies View Related

General :: Cat Command To Behave Like More Or Less?

Apr 16, 2011

is there any way by which the cat command can be made to behave like less or more?i.e when less or more used with a text file as argument, will display the file 1 page at a time, allowing us to navigate through the file.So any way for cat to display the file 1 page at a time?P.S : I don't want to pipe the output of cat to less or more.

View 11 Replies View Related

General :: How Does Rsync Behave When Synchronizing

Nov 24, 2010

I have a file in a directory mysite/a.php on machine A and machine B. The files will not have any difference initially.On machine A if a.php is changed and then when a sync is done from machine B to A, will a.php have the change or will it be overwritten? What about directories?

View 1 Replies View Related

Programming :: Makefile - Error When Run The Make Run - No Rule To Make Target - Shell.h

Sep 15, 2010

I want to gave much details as possible. working directory (~/a1/shell) in the shell directory i have Makefile. also in the shell directory i have subdirectory's (obj, src, include)

My current Makefile

Quote:

#What needs to be built to make all files and dependencies

clean:

# End of Makefile

I wanted it so: all .o files are created in the obj subdirectory, and my application, sshell, is created in the shell directory.

I am getting this error when i run the make run: No rule to make target 'shell.h', needed by 'shutil.o'. stop

View 1 Replies View Related

Ubuntu :: One Of My Spares Missing / Get Disks To Behave Themselves?

May 10, 2010

I have a 6+2 disk RAID5 array. If I do mdadm --detail, it shows me 6 active, working 8, failed 0 and spare 2, as expected. However, in Disk Utility, it tells me I have two arrays, the one I expect, but with 6+1; and another with no disks. When I look through my disks, I see there's one which is 'different'. While I had made all my 8 disks partition-less, this one seems to have developed a partition somehow - "Linux RAID autodetect". Also, when I click on 'Go to array', it takes me to this other odd diskless array.

How can I get my disks to behave themselves?

(Also, I think these disks seem to move around devices for some reason).

View 5 Replies View Related

Ubuntu Installation :: Grub Does Not Behave Normally After Upgrade To 10.10?

Mar 13, 2011

some days ago I upgraded my 10.04 Ubuntu to 10.10. Upgrading took quite some time as I had already witnessed in previous upgrades. Everything seems to work fine after this operation but for the Grub. I can no longer set the timer! It means I have to manually push "Enter" to start booting. I also noted that I cannot change the font size of the Grub any longer. I have not seen such behaviour during previous upgrades (I started upgrading with U 9.04).

Toshiba L505-10M with dual boot W7/U 10.10 500 GB HD & 6 GB RAM

View 9 Replies View Related

General :: Making The SHIFT Key Behave Like That Of Andriod - IOS

May 17, 2011

I want to disable the CAPS LOCK key and replace it by pressing SHIFT twice in quick successions (like you do in Android and iOS devices). Disabling the Caps Lock key is easy using xmodmap but is it possible to do what I want to do with the SHIFT key?

View 1 Replies View Related

OpenSUSE :: Screenlets Behave Better, The Setting Menu Appear Only With Proper Clicking?

Nov 22, 2010

Each time I pass with a cursor over a widget on the desktop its side bar appears, of course it should because of resizing and moving or do some setting, but that is very boring if I do not intend to use that bar. Screenlets behave better, the setting menu appear only with proper clicking. Is there a way to manage jumping widget menu bar not to appear on every cursor passing ?

View 2 Replies View Related

OpenSUSE :: Force KDE To Behave Way Wanted - Revert To Earlier Version With KDE3.5?

Sep 13, 2011

I've recently installed openSuse 11.4 64bit with KDE 4.6 and that's when the trouble started. If I put a data or mp3 cd in the drive it can be mounted. Simple audio cds refuse to mount, giving me only the option to play on one of the audio players. Since I wanted to move some music to the computer I've had to resort to windows to copy files then transfer them. How can I force KDE/Suse to behave the way I want or do I have to revert to an earlier version with KDE3.5? I suspected that System Settings/Removable Devices was where I needed to be but nothing I did worked. So then I tried playing with System Settings/Device Actions and again nothing seemed to work. I can't mount the CD manually,I get this (using su -c "mount etc"

mount: block device /dev/sr0 is write-protected, mounting read-only
mount: /dev/sr0: can't read superblock

View 9 Replies View Related

Debian Configuration :: Wifi Behave Weird In Squeeze On Dell Latitude D620?

May 23, 2011

I'm using Dell Latitude D620 notebook,with Squeeze amd64.This is the output of lspci:

00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated

[code]....

View 2 Replies View Related

Programming :: Make C++ Run Without The Terminal?

Oct 4, 2010

I've made a C++ program and compiled it and I can run it in the terminal but I would like it to run like a normal application in the application menu or on the desktop but I don't know how. How do I make it run like a program in the application menu?

View 3 Replies View Related

Programming :: How To Make A Library In C++

Nov 9, 2010

I'm trying to make one that has some sorts in it for now. I know you have to make a header file and a .cpp file. I'm using VC++(yes, I'm in school so windows in needed. I use Ubuntu at home I swear D if it makes a difference. What goes in the header file, how is the cpp file set up, and then where do I put the files once I'm done?

View 5 Replies View Related

Programming :: Make A GUI Program From C?

Jun 30, 2010

I want to know how can I make a GUI program from a shell program I coded in C a long time ago. Can anybody point me to good tutorials?

View 4 Replies View Related

Programming :: Usually Make Multiple Dir Using -p Option?

Apr 21, 2010

(i) I usually make multiple dir using -p optionex: mkdir -p dicttest/audrep/tdriver/testNow after creating this dir's i stay in current dir instead i want to go directly to test dir how can i acheive this.(ii) When i execute which command as followswhich testerm i will get the location of testterm now i want to open this filewhen i did in this wayhich testterm | vi The file dosent get opened how can i acheive this ?ex:

linuxx86:110$ which testterm
/view/rdl110_linuxx86/vobs_usrrdl/sc/testterm
linuxx86:110$ which testterm| vi

[code]....

View 3 Replies View Related

Programming :: Make A Dynamic Array In C?

Feb 12, 2010

I was thinking about how to make a dynamic array in C, and I thought that it would be much better if it could accept any data type. Is this possible? Of course I thought about void pointers, but how do I store the actual data?

View 7 Replies View Related

Programming :: Run Parallel Jobs With Make -j4?

Nov 27, 2010

I use an application called redbutton-browser to access some of the things available on the redbutton digital tv channels. It compiles fine if I use a simple make but fails if I try to run parallel jobs with make -j4. I'd like some help altering the Makefile so that it does a few commands sequentially before it does the rest of the Makefile in parallel.

The relevant bit of the Makefile looks like this:

Code:
ISO13522-MHEG-5.c:xsd2c.c ISO13522-MHEG-5.xsd add_instance_vars.conf add_rtti.conf
make xsd2c
./xsd2c ISO13522-MHEG-5.xsd
./add_instance_vars ISO13522-MHEG-5.c ISO13522-MHEG-5.h
./add_rtti ISO13522-MHEG-5.c > rtti.h

[Code]....

View 7 Replies View Related

Programming :: Make Compiles C++ Code?

Aug 8, 2010

I'm developing a new command to be executed on the grub shell. However for some reason the .c file I added doesn't get compiled. How do I notify make of this new file?When you type in the make command, a load of gcc commands come up, where do these come from?

gcc -Ikern -I./kern -I. -I./include -I./gnulib -I./include -Wall -W -DGRUB_LIBDIR="/usr/local/lib/`echo grub/i386-pc | sed 's,x,x,'`" -DLOCALEDIR="" -DGRUB_MACHINE_PCBIOS=1 -DGRUB_UTIL=1 -MD -c -o grub_setup-kern_file.o kern/file.c

I know this because I typed in random letters but the compiler continued on. However tried it on an existing file it came up with a compile time error.

View 3 Replies View Related

Programming :: Make Own File As A Running Log?

Apr 1, 2011

I have written a small script from that iam appending the output to a file.If multiple users invoke the same script or if i invoke the same script n number of times (using &), the output file(ZZ/OUT) contains messup information.

++++++++++++++++++++++++++++++++
#!/bin/bash
#

[code]...

View 3 Replies View Related

Programming :: How To Make Thread Nicer?

Feb 16, 2010

Kernel: 2.6.24.2
System: Embedded System

I have a process and two threads running in it. Thread1 is my GUI-Thread (using FLTK) and Thread2 is running at the first 10 sec. after start.Now, I would like to make Thread2 "nicer" to Thread1, because otherwise GUI stucks sometimes. But I didn't find a solution.Is it possible to define the "niceness" of threads inside a process (to each other)? And if so, how do I have to do this?

View 2 Replies View Related

Programming :: Make Command For An Application?

Jul 21, 2010

i have made a small program to find the md5 checksum of a string.i am using xshell to compile the program.

Code:
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#include <md5.h>

[Code]...

View 4 Replies View Related

Programming :: Make Trash For Rm Command

May 14, 2011

I go to make trash for "rm" command ...

I use this Options :

1) Edit /home/$USER/.bashrc

Code:

2)restart terminal and test this :

Code:

Now my problem is for some file .

for example . i make this file :

Code:

View 13 Replies View Related

Programming :: Make A RouterOS Like Mikrotik?

Feb 12, 2010

I am not sure if this topic is in the write forum or notbut I shall tell u my idea firstI want to make a RouterOS like mikrotik : http://www.mikrotik.com/ i know mikrotik is notfreeand I want to make my program free (GNU license) and is easy to use and with good GUI but me alone will be impossible I don't know where to begin from and what languages should i program in I know a lot of programming languages and i did a lot of projects with themI know C/C++,java,assembly scripting languages : perl,TCl/TK,lisp,shellI want it to be a project like the kernel or any popular software I want some directions so i can start and i wish to have also some programmers

View 3 Replies View Related

Programming :: How To Make List Of Thumbnails In Qt?

Aug 6, 2010

How to I make a list of thumbnails in Qt, kind of like the "Icon View" in many GUI file managers?

View 11 Replies View Related

Ubuntu :: Make The Move Away From Programming With Windows

Jun 6, 2011

make the move away from programming with windows. I have just downloaded the souce code to the Fluid FLTK GUI designer version 1.3.0. and i am completely lost. It just a huge pile of folders to me i don't know where to start how do I compile it ect....? Can anyone with experience maybe give me some pointers on how the most productive way to go about reading open source metarial is? like are there any files with classic names i should be looking for in particular?

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved