Debian Programming :: What Is Purpose Of Parameter Within Single Quotation Marks
Oct 20, 2014
what is the purpose of the parameter within single quotation marks and what it does? I am assuming it is a call to pkg-config with those paramaters.
Code: Select allgcc -o gtkprog gtkprog.c `pkg-config --libs --cflags gtk+-2.0`
Using:
Code: Select allpkg-config --libs --cflags gtk+-2.0
-pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype
So, if my logic serves me right, this command parameter is a neat replacement for this litany of libraries to be used in the compilation process.
View 1 Replies
ADVERTISEMENT
Jul 27, 2011
I'm writing some code to speed up some code writing, basically it produces some code I use in every project. I produce the outputs with fstream filestr;, open a file and write to some data to it. However some code has quote marks that I need to output, however I can't use quote marks.
EG: filestr<<"#include "Header.h""<<endl;I get round this with some awful filestr.put ('"');However I'm sure there must be a straight forward way to do this. Can anyone advise?
View 3 Replies
View Related
Apr 14, 2011
Columns are separated by SPACE. Column 5th is in quotation marks. How can I ask AWK to read everything between quotation marks ?
View 4 Replies
View Related
Oct 11, 2010
I want to put a string, such as the one found in the image, into an array that will later be chopped into individual words and put into another array of individual words found in the initial string. (or, perhaps, I would be able to do that initially, but for now, that is the goal)My question is, how can I do that without using quotation marks?
View 5 Replies
View Related
Apr 1, 2011
What should the quotation marks be in red?It returns an error:SELECT * FROM blog WHERE id="51586430" blog LIMIT 1; SQL error: unrecognized token: "" Incomplete SQL:
View 3 Replies
View Related
Sep 17, 2009
my new system is redhat enterprise 5, i have changed 2 keyboard and used 2 input(fcitx and scim), the same question is that the system can not receive quotation marks,i can not use quotaion key input double quotation marks or single, badly.
View 2 Replies
View Related
May 19, 2010
I tried to move a file from my desktop to another folder; moving it was not allowed, for some reason. Neither was opening it and saving a new copy in the target folder. Would that be because the filename contains double (") quotation marks? Are they not allowed? The filename is Edit of Bob's "Lady Liberty" Article.doc. [Filename not enclosed in quotation marks here, to avoid confusion.]I just changed the double quotation marks to single quotation marks; that solved everything.
View 2 Replies
View Related
Jun 24, 2011
I want to add double quotation marks to contents of an column ,the column contains over 7000 cells with content already,so it would be heavy task to add "double quotation marks"one by one.Is there any way to do that quickly on Libre office?
View 1 Replies
View Related
Mar 6, 2010
I'm wondering if anyone can give me some guidance, or point me to a relevant reference for setting up a single purpose ssh key.I have setup a single purpose key for rsync, where I have command="/path/to/rsync-secure" associated with the public key in .ssh/authorized_keys, and the rsync-script checks to make sure incoming commands begin with 'rsync --secure', What I would like to do is do something similar to allow sshfs access, and have the server path that can be mounted locked down to a particular location. Does anyone have any suggestions as to how this could be done?As an aside, I might also want to restrict the above rsync script to only allow synchronization to a particular path.
View 1 Replies
View Related
May 10, 2009
What good does getting into single user mode do?And what's the basic purpose of it , i.e is it maintaining purpose???
View 2 Replies
View Related
Mar 30, 2010
I want to use SED to do the following: In a text file replace any occurrences of the three character string ZZZ with a quotation mark "and. replace all occurrences of a comma with a semi-colon. It is the S/ / / command which is stumping me on the first issue...inparticular how to get the replace string to be quote.
View 9 Replies
View Related
Oct 13, 2010
I have question about the UNIX sockets. my goal is to connect multiple sockets from a single client to a single server and keep them open...I'm not sure if that is possible to create or not. Do you have any suggestion or an example of code?
View 1 Replies
View Related
Dec 28, 2010
I learned Java(SE,EE) few years ago and didn't use it because we are using PHP and ASP.NET at work.However, I would like to ask a question: Is Java (SE,EE) free for use for business purpose?I mean,if I start up a company and use tomcat with java, do I have to pay for the license to use Java?I don't know much about java license until I learned that ASF(Apache Software Foundation) quited from the Java Community recently.As a result,they recalled my attention regarding the legitimacy of using java in business purpose for free.
View 9 Replies
View Related
May 4, 2010
I got the following modprobe scripts modprobe -k -q streams what does the -k parameter mean?. is it exist in older modprobe? I don't see -k parameter in recent modprobe.
View 1 Replies
View Related
Jun 11, 2010
If I have the following links in HTML
Code:
<a href=lang.php?lang=cymraeg>Cymraeg</a>
<a href=lang.php?lang=english>English</a>
and lang.php has a link to page2.html, how do I pass on the value of the lang parameter from lang.php to page2.html? The value needed is the one passed in to lang.php.
View 3 Replies
View Related
Jul 9, 2010
I have a small board that has a static ram board attached to it. I have two different programs that each write to a byte of memory in the static ram board. I get a file descriptor to the device memory with the following code:
int phymemfd;
phymemfd=open("dev/mem, O_RDWR | O_SYNC);
This opens the physical memory for both reading and writing. Next I get a pointer to the beginning of my ram board.
volatile unsigned char *novram;
novram = (unsigned char *) mmap(0, getpagesize() * 31,
PROT_READ|PROT_WRITE, MAP_SHARED, phymemfd, 0x11AA0000);
I do this same code in two processes that are both running and this works fine. Now, if I take out the O_SYNC parameter, one of the programs gets into some sort of weird state.My understanding of the O_SYNC parameter is that it cause the process accessing the memory location to block, not allow another process to run, until the first process has finished writing to it.I can see that if my program doesn't block, I wouldn't really know what was in the memory location, but would I can't see how it would cause any other type of system problem.
View 1 Replies
View Related
Nov 17, 2010
Any commandline audioplayer I might not have heard before? Which one do you use? I just started using Moc [URL]
View 12 Replies
View Related
Apr 8, 2010
bash script:
Code:
$ bash --version
bash --version
GNU bash, version 3.1.17(2)-release (i486-slackware-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
Code:
[serv:]$ cat test.sh
#!/bin/bash
[Code]...
The question is, how to config it works through 'function cool {}' or cool() {} with position parameter
View 5 Replies
View Related
Jan 21, 2011
Say, i have an imaginary std library function, which I want to call.
Code:
void std_lib_func(ObjectType *param);
Now in my c++ program, I have a main() function, and I will like to call a customized function (which will in turn call the std lib function) from the main function, as below:
Code:
int main()
{
ObjectType *aobj;
customized_func(aobj);
}
[Code]...
I tried the below but get an error that the std lib function is expecting a ObjectType* param, not aobj. How should I work this out.
Code:
void customized_func(ObjectType aobj)
View 4 Replies
View Related
Aug 28, 2010
I have the following HTML code in main.html:
Quote:
.............
.............
<tr align="right">
<td width="50%">
[Code].....
I'd like capture with capture_profile() function in createproject.html a value into main.html page. How can I solve this problem with javascript?
View 1 Replies
View Related
Apr 9, 2010
I am trying following script can I do this or is there a way to do find and replace the replacing word is dynamic input by user
echo -n "Enter name:"
read RP_USER
sed 's/text1/$RP_USER/' /home/user/file1 > /home/user/file2
View 5 Replies
View Related
Sep 4, 2010
I want to send my data from my custom board to the computer.I write two codes for each device.I use Linux PF_PACKET socket, I can successfully send my packets and I can capture them by ethereal too.But I cant receive them by my own code. My code can receive other packets but not mine!Here is the code I used to receive packets. Where is the problem?what parameter should I use for �destAddr.sll_pkttype� and �sockopt.mr_type�?
=================================================================
struct sockaddr_ll destAddr;
struct packet_mreq sockopt;
struct ifreq f;[code].....
View 2 Replies
View Related
Dec 28, 2010
How can I pass by reference, a parameter, without assigning a new object? In my first example, var = "changed" creates a new local object. In the second, mylist.append will affect the reference target. How to i achieve the same effect with example 1?
Code:
#!/bin/python
var = "unchanged"
def print_string( var ):
[Code].....
View 2 Replies
View Related
Apr 26, 2010
Ive read a few books and a lot of tutorials on C but can't find this topic explained in a deliberate way.I can find bits and pieces but nothing thorough.
View 9 Replies
View Related
Mar 13, 2016
My system is a 2.0Ghz Dual Core PowerMac G5 Ram 16Gb - 2Tb HDD - It is running Jessie 8.3 [new Install] and seems stable enough.....! My system is showing the message below on boot up, but I don't know why? I have had to disable the 3D video acceleration with a Yaboot parameter "nouveau.noaccel=1' to get the system to load KDE. I am also having some bluetooth headaches (along with many other people apparently).
# systemctl systemd-modules-load.service
Unknown operation 'systemd-modules-load.service'.
root@Apple-Desktop:~# systemctl status systemd-modules-load.service
● systemd-modules-load.service - Load Kernel Modules
[code]....
View 3 Replies
View Related
Sep 28, 2010
A simple TCP based chat server could allow users to use any TCP client (telnet, for example) to communicate with each other. For this question you should consider a single process, single thread server that can support exactly 2 clients at once, the server simply forwards whatever is sent from one client to the other (in both directions). Your server must not insist on any specific ordering of messages as soon as something is sent from one client it is immediately forwarded to the other client. As soon as either client terminates the connection the server can exit
View 4 Replies
View Related
Dec 4, 2010
i googled around and finally stumbled over this forum. I've been wondering, how would i kill an process running from an folder and with user parameter? I usually type this into the ssh console: pkill -9 < process > -U < username >
But i want users be able to run it multiple times, and killing only an specific process and not every single one.
View 4 Replies
View Related
Sep 28, 2010
i want a process that can operate as both a TCP echo server and a UDP echo server. The process can provide service to many clients at the same time, but involves a single process that does not start up any other threads.
View 3 Replies
View Related
Apr 26, 2010
Would like to know how to cat the below output.
Code:
grep userlist_file /etc/vsftpd/vsftpd.conf | cut -c15-
Below which is the output for above command.
[code]...
View 6 Replies
View Related
Aug 1, 2010
In the rpm manual, Print 50 hash marks as the package archive is unpacked. Use with -v|--verbose for a nicer display. But actually, there're not enough hash marks when I'm installing a package. About 44 hash marks there...Well, I just want to know where the `50 hash marks' are.
View 4 Replies
View Related