Programming :: Mingw - Looking A Command Showing The Version Of A Dll File?

Mar 16, 2011

Several mouth a go I've found a command in the mingw package who was able to give me the version of a dll file.

or is there a document which list what each command of the mingw package does?

View 2 Replies


ADVERTISEMENT

Programming :: MinGW - Performance Is Degarding - Version To Win32 Version

Jul 10, 2009

I've made a linux app that I'm porting to win32 winth MinGW and MSYS. It's a ticker app that reads then renders a text file to a pixmap (a tall single-line image), then it kind of scrolls the pixmap by drawing a part of it to a drawing_area, using gdk_draw_drawable() within a timeout handler set by g_timeout_add().

The problem is it works fine on linux (the scrolling is really smooth and that's the goal) but the win version is choppy and uses at least 90% of cpu resources (vs 15% with linux) like there is a big performance problem. And I'm not even sure that double buffering is set. Is it related to some mingw config or drawing_area stuff or gtk for win?

View 5 Replies View Related

Programming :: Use Libxml2 On MinGW - XmlFree Crashes

Oct 22, 2010

libxml2 works fine on Linux machines. On Windows, the distribution at [URL] is built for the Microsoft C compiler/linker. The tools pexport and dlltool supplied with MinGW work fine to enable linking to these libraries EXCEPT for static data within the DLL. libxml2 is written so that calls to xmlFree, xmlMalloc and xmlRealloc dispatch through static variables in the DLL - the actual function has another name. BUT, the link library that dlltool builds has its own .globl variable that never gets initialized, and calls to xmlFree(whoever) wind up at location 0.

SOLUTION: AFTER an initial call to xmlParseFile() or some other xml function that initializes the DLL's variables, add the line:

if(!xmlFree) xmlMemGet(&xmlFree,&xmlMalloc,&xmlRealloc,NULL) This will initialize the application's static pointers to the dll's routines. (The NULL pointer would return the address of xmlStrdup, but it's a function already, not a variable <???> so it works anyway).This solution is portable - if you run on a Linux machine where the pointers are properly initialized already, it won't hurt anything.

View 4 Replies View Related

Red Hat / Fedora :: Executing A File - Showing Error - Command Not Found

Aug 23, 2010

I m using Redhat Linux 5......I am trying to install Nero 4 DVD Writer s/w...It is an exe file ...

I have given permission like this:

Then i execute the file like this:

Its showing error like this:

View 9 Replies View Related

Red Hat / Fedora :: Use The Different Command Between An Older And A Newer Version Of A File?

Nov 21, 2010

Is there a way to use the diff command between an older and a newer version of a file and only display the lines that have been added to the newer file and not the ones that have been removed without any of the explanation formatting, just the new lines. I'm trying to bypass the process of putting both files into a database and running an SQL "left join where old data is null" as I will need to do this on a regular basis.

View 2 Replies View Related

Programming :: Send File With FTP From Small Version?

Feb 9, 2011

I have this problem.I need to do this:I got a small version of Linux installed in some small devices. These devices come from the provider with this small version of Linux installed.This devices should send data to some other machine in the internet. I have tested wput for this purpose with a PC which has an Ubuntu version 10 and it works fine. However, when I try wput in the small device, I get an error. It seems that the wput might need some libraries to work with the small version of Linux installed in the small device.The fact of using wput or not is optional. I just need being able to send files through ftp with this small version of Linux.The thing is that to be able to run wput in this small version of Linux, it seems that many of the needed libraries were missing. So what I did was just install all the needed libraries. But still the wput program fails in its first line.

View 14 Replies View Related

Programming :: Bash Ambiguous Redirect - Redirect One Command Output Which Will Be Treat As A Content Of File For Another Command?

Mar 9, 2011

I am trying to grep multiple numbers from file, grep does have the -f option for that.

Code: grep -f <`seq 500 520` /etc/passwd I know this could be done with

Code: for i in `seq 500 520`; do grep "$i" /etc/passwd; done But my question is fare more behind this example. It is possible to redirect one command output which will be treat as a content of file for another command ?

View 2 Replies View Related

Ubuntu :: Ppa Version Not Showing Up / What To See That?

Apr 21, 2011

I'm trying to install a more up to date version of vlc and to do this I have added the "lucid bleed" ppa. However when I do apt-get update && upgrade or aptitude, or view available versions from synaptic, I seem to be only getting the version from the repo? Expected behavior is getting the new version. Observed behavior is getting the old version.

View 3 Replies View Related

Software :: Cross-compiling With MinGW In Debian

Jan 14, 2011

I need a tutorial on using mingw in Linux to compile programs for windows.

View 1 Replies View Related

Programming :: Using Sed Command Twice On One File?

May 11, 2009

what i have is a list of words 6 to a line im trying to use the sed command to insert a comma in between each word and at the end of the last one

[code]....

the last line of the variable does not have 6 words what i have so far is this

Code:

words=`cat /usr/share/dict/words |grep "^[$list]*$" | xargs -n 6 echo | sed -e 's/[ ]+/,/g s/$/,/g'`

it dosent work though i originally started off with

Code:

words=`cat /usr/share/dict/words |grep "^[$list]*$" | xargs -n 6 echo | sed -e 's/[ ]+/,/g' this puts a comma inbetween them but takes out the space and dosent put a comma at the end of the line.. basicaly what i needed to know is how i could you multiple sed commands to fix this

View 12 Replies View Related

Programming :: Redirection From A File To Command?

Apr 18, 2011

I am always confused about the redirection operator <Lets say i have a file input.txt that contains one word "hello" without the quotes when i do the following why don't i see any output? $echo < input.txt Secondly, i am slightly confused between input redirection < and pipe | operator. Sometimes they seem to do the same thing. For example i can achieve the output from the above command as follows $ cat input.txt | xargs echo

View 2 Replies View Related

Programming :: How To Gunzip File And Then Tar It In One Command

Jan 15, 2010

I have a number of files.tar.gz that I have to gunzip to get .tar then I tar -xvf .tar, to get a readable file. Is there a way to do that all in one command. I tried to pipe it being new and all and I get errors.

View 2 Replies View Related

CentOS 5 :: Top Command Not Showing Command Option?

Mar 19, 2011

I have installed Centos in my server and when I take, top -c command its not showing the "command" option correctly. Due to the same, I'm not able to correctly track down the file which causes excessive usage. For eg:

top - 09:30:29 up 72 days, 12:46, 2 users, load average: 0.21, 0.16, 0.15
Tasks: 122 total, 1 running, 120 sleeping, 0 stopped, 1 zombie
Cpu(s): 4.8%us, 0.7%sy, 0.0%ni, 93.5%id, 1.0%wa, 0.0%hi, 0.0%si, 0.0%st

[code]....

View 3 Replies View Related

Programming :: Grep A Particular Data From A File Without Using The Command

May 3, 2010

I want to know that is there any method to grep a particular data from a file without using the "cat --- | grep ' ' " command....I need to use a system call for this functionality.

View 1 Replies View Related

Programming :: Using An Awk Command To Print A Line From A Cvs File?

Mar 4, 2011

I am using an awk command to print a line from a cvs file.the awk command includes an if statement that filter the output-lets say i want to print all the lines that the price field is greater than 30.i have it working when i put the parameters myself.. but when i try to send them with vars it wont work..i am sending the sign of the if statement - can only be: == , < , >it looks like this:

cat file.csv | awk -v sign=">" -v field="2000" '{if($3 sign field) printf "%-12s%-12s%-12s%-12s
",$1,$2,$3,$4}' FS=,

the bold part is the problem , because when i put the sign parameter myself t works great.. i guess its a chars issue but i cant spot it

View 3 Replies View Related

Programming :: Inserting Some Text Into A File Using 'awk' Command?

Oct 20, 2010

I'm gonna replace my machine's ip address and hostname using awk command. the pattern of the file is like the following...ip address="192.168.1.100"the script must ask the ip address from the user and replace it with the ip address in the quotation.

View 14 Replies View Related

Programming :: Find Command To Search For All The File In The Particular Folder?

Aug 2, 2011

how to use find command to search for all the file in the particular folder?my script as below

find . -name "*" > $BASE/file
if [ `more file | wc -l` -gt 0 ]; then
echo "dp"
fi

output of my results will always include a . (dot)which I dunwan it include the dot.

View 11 Replies View Related

Ubuntu Servers :: Upgrade Clam Av From Respiratory But Still Showing Old Version

Apr 15, 2010

We are running clamav on 9.10 (with MailScanner)... I upgrade our clam av from respiratory today and it is still showing old version.. When i do freshclam i get this: Local version: 0.95.3 Recommended version: 0.96

[Code]////

Is there 0.96 available from respiratory? Or i have to install it manually from .deb package?

View 2 Replies View Related

Programming :: Find Command Return True If File Found?

May 18, 2011

How to manage the find command to return true or false if a file was found/or not? I tried to man find but didn't found anything.

View 12 Replies View Related

Programming :: Pipeline When The File Requires Two Command Line Args?

Jan 18, 2010

Suppose that there are two files

Code:
$ cat abc1
a1 a2

[code]...

View 4 Replies View Related

Programming :: Orrect Command To Create A Named Pipe File?

Apr 22, 2010

My question deals with me creating a name pipe (file) in the my /group directory called chat.I then have to write a script to read from the named pipe and save data into a file called chat.log until the words End of File are passed to the program.

-When I created the named pipe file (chat) I used the mknod chat p command..Is this the correct command to create a named pipe file? -Then I'm having trouble with my script and how to make it run until the words End of File are entered in. This is what I have so far.

View 6 Replies View Related

Software :: Yum Repo Showing Incorrect Version After FC14-FC15 Upgrade?

May 30, 2011

In checking after upgrading with Preupgrade fromFC14 to FC15 here I noticed te yuom seems to show the wrong repos. How do I correct this?

yum clean all
Loaded plugins: downloadonly, fastestmirror, refresh-packagekit, security
Cleaning repos: adobe-linux-i386 fedora updates
Cleaning up Everything

[code].....

View 2 Replies View Related

Ubuntu :: GRUB - Cant Boot - Showing Old Version - Restored In Startup Settings (oops)?

Sep 25, 2010

I had a minor problem with my ubuntu install, and a person said to go to startup manager and select reset to original settings. I did this and when I restarted It asked me to boot ubuntu 9.10, which would not work as I upgraded long ago. Now all I get is the option to boot 9.10, and I really want to get back into my computer. Running ubuntu 10.04 with latest updates as if 25 september New Zealand Time.

View 2 Replies View Related

Programming :: Find And Replace A String In A File Using Perl Command From Bash Script?

Feb 14, 2011

I wanted to find and replace a string from a perl file. I have written a script in bash which runs the following command.

perl -pi -e "s/$findstring/$replacestring/" testfile
where as $findstring = print F_WC_TMP"$line
";
and $replaceString = $line = join ' ', split ' ', $line; print F_WC_TMP"$line
";

But when I am running the above command, i think it is replacing the $findstring with the above mentioned string and hence it contains a $line, it is looking for the variable $line and not finding the exact string. I am confused about how to search for a string that contains $ in it and replace it with another $string.

View 5 Replies View Related

Server :: TOP Command Showing 130% Usage?

Mar 8, 2011

In my server java based application is running and java usage showing some time 300% of usage in top command. on that time java application is getting some types errors. at that time i checked vmstat and sar commands also but they showing the free CPU. My server configuration as given below

Quote:

Processor Intel(R) Xeon(R) CPUX5670 @ 2.93GHz
No fo Cores 8
Ram :64GB

[code]....

View 2 Replies View Related

Ubuntu :: Showing File Permissions In File Roller?

Aug 23, 2011

How do I show a list column in file roller that shows permissions and ownership of files?

View 2 Replies View Related

General :: Dynebolic Showing Only Command Prompt?

Mar 18, 2010

I am trying to install Dynebolic 2.5.2 on my system.I copied the dyne/ folder into root of my partition(ie /) and updated grub as follows:

title Dyne
root (hd0,0)
kernel /dyne/2618ckld.krn root=/dev/ram0 rw load_ramdisk=1 max_loop=64 vga=788
initrd /dyne/initrd.gz

But on rebooting into dyne ,I get a command prompt .A part of what i saw is given below:

root:[!] you can safely reboot now or wait to enter a maintenance shell.
VOLATILE MODE : : opening a shell in ramdisk.
you are entering a maintenance sector whatever that means

[code]....

View 2 Replies View Related

General :: Command For Showing The Segments Of A Program

Sep 2, 2010

The Linux command for showing the different segments of a program. The output of the command should show me which elements go to stack, heap, and data segments.

View 3 Replies View Related

Ubuntu :: Showing Display Settings From Command Line?

Feb 23, 2010

I'm sure this is a very simple task but I don't have a lot of experience with Linux. I need to view what my display adapters settings are, specifically the refresh rate. I have found plenty on how to change the settings but not how show its current setup. I am troubleshooting an vga splitter/extender issue on a digital signage unit where the master screen syncs up but the remote screen does not, I think it has to do with H-Sync V-Sync or refresh rate.

View 3 Replies View Related

Ubuntu :: Shell Command Output Not Showing Immediately?

Jan 18, 2011

This is an extremely weird issue that I can't find any help with on Google. It is minor but extremely annoying.

When I type in a linux command in the terminal, (e.g. "ls -la"), and then press enter, the cursor goes to the next line and just sits there, as if its processing some long command.

If I press enter again, I see the ls output as well as my prompt twice. It's like the terminal window isn't auto-scrolling, but I've also seen this happen when there wasnt even enough text in the console screen to warrant a scrollbar. Has anyone seen this before and know what I need to do? I hope what I'm asking about makes sense.

View 3 Replies View Related







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