Programming :: Open() Function Of Gnu Gcc3.4.6 - Cannot Open Plots / Results.txt
Aug 14, 2010
Dear experts,I have a question about open() function of gcc3.4.6.I write a example:
Code:
using namespace std;
#include<iostream>
#include<fstream>
int main()
{
[Code].....
It can be compiled and ran.The statement file=txt_stream_file is in order to change char* to const char*. But open() function is not work,and out: can not open plots/results.txt The open() function of gcc3.4.6 is:
I have made some plots in gnuplot that I wanted to include in a document. I have tried both OpenOffice and Kile.
In openoffice the plots are shown when they are imported, but when I save the document and open it up again the plots are gone (unable to read).
In Kile I can't even import them, It cant find the file in the folder. I tried changing the formats from jpg to png - didn't work. Tried just taking a snapshot of the original plot and saving it, didn't work either (but have used the same method earlier today without problems for a different image).
When i move the cursor across the file, it fades away as if it's not registered correctly. Does anybody have a solution for this?
According to [URL], gcc 4.3 supports atomic built-in function "GCC can now use load-linked, store-conditional and sync instructions to implement atomic built-in functions such as __sync_fetch_and_add" However, I am still using gcc 3.4 on my Redhat EL4. How do I get this built-in function installed?
Upon a while of searching, I think I failed to find the correct terms and I'm posting here. I often use mlocate to search for files. For example, if I say
Now if I want to open one of them, I'll have to either open Acroread and browse to their locations. Or select and copy, and call acroread in terminal like
Code:
$ acroread /home/kmc/Documents/latex/temp_2.pdf
This is tedious to me. I'm thinking of a way of quickly open its search results, I've tried pipes like this but it doesn't work:
Code:
$ mlocate temp_2.pdf | acroread
maybe it doesn't work this way. So what does the trick? What's the name of this trick? I've googled for
Quote:
Linux bash catch output, pipe output, open mlocate results And is it possible to handle multiple lines of output, e.g., can I choose which line of output get forwarded to relative programs?
When I open an open office document from an NFS share it always opens as readonly. This was a problem I had on Arch linux and the fix was to change the locking options in the soffice script but I've tried that fix here and it doesn't work. I've seen a lot of discussions but they all go back to changing the locking options in soffice, has anyone got any alternative fixes or one that definitely works with locking?
Server - Ubuntu 10.04.1 lts Client - Kubuntu 10.10
When I try to open any nfs-mounted file using OpenOffice, I get a pop-up window titled "Document in Use". The text of the message is:
"Document file 'abcde.odt' is locked for editing by:
Unknown User
Open document read-only or open a copy of the document for editing." I then have three options - <Open Read-Only>, <Open Copy>, & <Cancel> If I cp any of these files from the mounted directory to my home dir (not mounted), I can open them without problem.Also, my firefox & thunderbird date are in this mounted directory as well (sym links to ~dan/.mozilla & ~dan/.thunderbird). Both of these apps hang when trying to open, leaving two processes behind that need to be manually killed. Again, cp'ing the data out of the nfs-mounted dir onto a local dir resolves the issue, so I am 100% confident there is nothing missing or corrupted in the firefox &/or thunderbird data...
relevant entry in /etc/fstab: server:/nfs/dan/Documents /home/dan/Documents nfs defaults 0 0 relevant entry in server's /etc/exports: /nfs/dan/Documents client(rw)
I don't know if I'm doing something wrong but I've been running Ubuntu or a variant for about a year now and suddenly every now and then one or two of my documents (open office or pdfs) have no information and they won't open.
I have a while(1) loop, and the error is: glibtop: open (/proc/stat): Too many open files This error occurs after about a half hour to an hour of running. I've tried running this multiple times, both with using glib_close() at the end of the loop, using glib_init() and glib_close() at beginning/end, and just using glib_init(). The strange thing is these have no effect on the actual glib_get functions.
I have sendmail running on my centOS 4.6. My lamp server also runs on it. I want to send mail through php mail function. when i execute php page, which fires the mail function, it takes so much long tim1 say even 1 minute, and at last displays that message sent successfully. Suppose, destination address is [URL].... I did not get any mail there. My server is running in LAN. I checked the status of sendmail, it shows me that it ios running. when i issue "nmap localhost" it shows me that SMTP port 25 is open, but when i issue "nmap myserver" (192.168.1.20 myserver ( written in hostfile)), it does not show that SMTP port is open.
I checked the /var/log/maillog, one person in my previous post advice me to see that. There it shows that message is accepted for delivery...but i do not get any mail in my destination, even not in spam folder. One more confusion is that, in my case my server is in LAN and if I am at all enable to open the SMTP port on it, does i need to open SMTP port on my router (which connects my LAN to internet) also needs to open? I think no, because SMTP is application layer protocol, it will wrap my mail in IP packet, which router just need to forward. am i right?
I'm having sporadic issues with the openoffice.org program. Sometimes, power point presentations will crash the program and then I can't open any open office programs without rebooting the computer. The problem seems to be just with powerpoint files and I'm not sure what the issue could be.
I installed Open Office 4 on Debian 8 but when I run the program I get this error message.
root@localhost:/home/paul# openoffice4 No protocol specified No protocol specified /opt/openoffice4/program/soffice.bin X11 error: Can't open display: Set DISPLAY environment variable, use -display option or check permissions of your X-Server (See "man X" resp. "man xhost" for details)
Open Office works fine when I run the command "startx" in the Konsole but so far I haven't been able to configure it.
What i am i doing wrong? i download these very good app's from yast and at times i run into a problem when you click on the app and it looks like it wants to open,the application's icon is on the bottom panel and the icon is bouncing up and down where there cursor is and then eventually it disappears.Is it timing out?
So when I click Places in the Main Menu and then any directory like Desktop or Documents or Pictures the Movie Player starts, and all the files that the directory contains are in the playlist. The only way around is to click Computer which would bring me into the file manager as normal.
I cant open xls files in a shared folder using open office 3.1. Its all started when i install a new open office version. when im using open office 3.0.8 i can open all the files but now i cant even open it. Its always display untitled documents.
Ok For some reason I open my ports in security and firewall. I open ssh and other ports and port 7001 for example but when I go to check to see if they are open or try to connect to them. It shows that they are still closed. I am using - [URL] Also yes my ports are open on my router. I know my router works fine with opening ports because I have shoutcast setup on another computer with xp that is currently running. I am willing to pay for who can ever get this fixed for me...
As of this morning I cannot open pdf's by clicking on them in firefox. I can download them and open them from the download window or even from the folder they are saved to, but not from the browser. Evince opens and says: Unable to open document Error opening file: No such file or directory.
We have a digital signage appliance built on SUSE 11.3 with a LAMP server that uses the flashplayer application to play a .swf file from localhost. It is a AOpen GP7A mini pc that has the nVidia drivers loaded. We have lots of customers that have been running the exact same system for over 6 months (we image the drive for each sale).
For some reason, my last customer is seeing the following problem shown below, and this linux configuration is way over my head. Everything else is working (local LAMP server is working, communicating with our production servers to get information works, etc). I have verified that it is screen 0 that is running (at least it shows with Ctrl-Alt-F7). I thought that it may have occurred because of updating the software with zypper up. I had the customer rebuild from the image being careful not to upgrade the software. The result was the same. The pc is a newer version compared to my bench pc, but there are multiple other customers running that same version just fine. So I am not sure if it is
The command is issued by a php script that is run in a root cron job. As I said, it works great on all other customer pc's including my bench system. I also tried to execute the command on a ssh terminal as the root user with the same result. I also upgraded my bench pc and it still worked properly.
The command being executed is sudo env DISPLAY=:0 XAUTHORITY=/home/svision/.Xauthority flashplayer http://localhost/flash/sign.swf &
the result (when run in terminal) is: No protocol specified (flashplayer:15077): Gtk-WARNING **: cannot open display: :0
I have a problem that I can't seem to figure out. I can easily create a .sh file that will execute a command in Terminal, but as soon as it executes the terminal disappears. How do I get it to stay? My idea is to have the keyboard shortcut "ctrl+alt+del" open a .sh file with the contents "ps ax". Then it would be just like having a task manager; the terminal would open with "ps ax" already executed, and all I would have to do is kill the process number.
I have Ubuntu 10.10. I have installed VLC video player. When I go to places, and then hit Documents, or(music, pictures, downloads). It will open the VLC player with a pop up error.
Error Message when I hit Documents: No suitable decoder module: VLC does not support the audio or video format "undf". Unfortunately there is no way for you to fix this.
Error Message when I hit pictures: No suitable decoder module: VLC does not support the audio or video format "undf". Unfortunately there is no way for you to fix this.
No error message when I hit music: But it open's up the same song all the time.
No error message when I hit video: I just opens up like it's suppose to!
I was trying to make it my default player. All I did was right mouse click on my folders, but I remember selecting anything!
When I un-install VLC player everything works fine.
I've been using Tomboy Notes on Mac and, when I recently came over to Ubuntu, was thrilled that I could use it still. However, it quit working. I cannot open it in the Applications Menu, I can't open it via terminal (this is what I get if I try:
brasel@sonny:~$ tomboy -new note (/usr/lib/tomboy/Tomboy.exe:7009): GLib-WARNING **: g_set_prgname() called multiple times /usr/share/themes/Human/gtk-2.0/gtkrc:85: Murrine configuration option "gradients" is no longer supported and will be ignored.
[code]....
I can't open it at all.I don't have a .tomboy file in my /home directory, or in my /home/brasel directory. I've uninstalled and reinstalled, I even cleaned out my computer via the computer janitor and it still wouldn't re-install and run.
I am doing some Linux kernel programming for my research project. I need to record the timestamp (by using cpuid and rdtsc) when an interrupt handler (top half) is first invoked. Due to the time critical nature of the problem itself, I have to do the timestamping inside the interrupt handler itself (the first operation when the handler is called). However, I understand that tasks that are not so time critical should be deferred to a tasklet function (bottom half) for processing because other interrupts are disabled in a (top-half) interrupt handler. I am currently out of idea on how I can pass the timestamp information that I have obtained in the interrupt handler to the corresponding tasklet function.
I've been learning C recently and have used Vim to write my code, however switching between tabs to compile and run annoys me so i was wondering if it would be possible to have a terminal in the bottom half of the screen inside vim. similar to most text editors.
I wish to start development for the open source projects. And going to start working on some project in C/C++ and shell/python scripts. I wish to know the best suitable development environment for this purpose? What about eclipse? I will be interacting with git, make and other open source utilities.
I refuse to use .net for any of my apps since I hate using proprietary code that wont work on other platforms without using emulation.
However, I do like how all the hard work is done for you and you can spend more time implementing, then actually coding stuff like socket classes, date/time classes and other wrappers to make the complex C/C++ code easier to use and tie with each other I have a custom library that I've been adding to as I need stuff, but then I got thinking, there must be something out there with everything I need to code applications, that is easy to use and more reliable and efficient then anything I'd ever make.
I'm using C serial in a program to open and use a serial port but the port won't open for one reason or another. The program successfully runs on a different computer and when using RealTerm: Serial Capture Program, I can connect through the serial port with the same settings as I'm attempting through my c code. Anyone have any idea why it might be failing? I know this is still pretty vague, so let me know if there's other things I can tell you that might help to finding a solution