Programming :: Cannot Run C++ Executable File From Ubuntu GUI?
Apr 17, 2011
I have written C++ programs on Windows. I am now learning Linux to ensure my software is portable. I can compile and run C++ programs from the bash shell, but I cannot run my executable programs from the GUI.Here is my sample program:
Code: #include <iostream>
int main()
{
[code]...
View 3 Replies
ADVERTISEMENT
Feb 18, 2010
In a project I'm working on with a few other people, I got the task of writing an assembler. The last thing I do is convert the commands into a binary representation, and jam it into a file. Now one of my teammates said he'd like to be able to "reference" the code within another program. He said he'd be able to do this if the file I output is a Linux object file. I'm thinking it'd also work as an executable. Anyway, he said he'd like to be able to grab the file and reference the binary by address. I'm still fuzzy on this, and if you're confused with what I said here, please tell me so I can ask him for better details.Anyway, I'm aware that gcc can compile files to ".o", but that's only for C/C++, and my file is just binary. I'm also aware of "ld", but I haven't seen any use of it to help me. I'm happy to hear suggestions as to what I can do. If anything, I think I'll implement a few functions to grab the bits and hand them to him in an array or something.
View 8 Replies
View Related
Jun 1, 2010
I have created a executable file using c and I have also created a GUI using GTK+. Now how can I call the executable file from the GUI with arguments passing to the executable file.
View 4 Replies
View Related
Oct 4, 2010
I am trying to use a software package written in ANSI C. It has a makefile which has to be executed first.
As soon as I execute it I get messages like: line i: command not found.
Commands for which I am getting errors :
CC = /usr/bin/gcc
GCCFLAGS = -c -Wall
ROOTDIR = .
My gcc compiler is located in the above directory only. In ROOTDIR also I tried giving the path in which all the required files & folders are present but still I get the command not found error in all the lines.
View 7 Replies
View Related
Apr 4, 2011
I wrote a c++ program but for security reasons I need to make sure that no one can read my codes by my ".out" files. I did everything I could. But everyone can see it by "strings Alpha.cpp".I heard that g++ has some options to do so.
View 7 Replies
View Related
Aug 21, 2010
Arm-linux-strip for removing the symbols from binary executable file after compilation. What exactly the symbols means.
View 1 Replies
View Related
Oct 10, 2010
My senior project team at Penn State is starting to write our code, and I was looking for a revision control system to manage it. I was going to use CVS, but I can't find a client that doesn't have to install something on the local machine(we dont have administrative permissions on school computers). Is there a CVS(or Subversion or anything else) client that comes as a single executable file or web interface?
View 3 Replies
View Related
Mar 10, 2010
like my alias a retired person, and Its never to late to learn something½ve just installed Ubuntu and found a tutorial online about bash-script.Manage some, but I cant to this one:[Write a script that makes file executable and writes a message that it has been done.If I run the command > <scriptName> <fileName> , then the file fileName should be executable and then it should indicate that fileName have been executable.]
Ive read man pages up-n-down and search the web, and I think I should let the script use chmod and ls -l, but I cant get the hole picture here. Actually I have nothing to show up, so I hope someone could help me with some ideas or a soloution - just to the how it should look.This is my first post, ever, at a forum like this, so please be nice if I didnt follow any rules here, I dont know if you even will answer this post, but at least give me some clues, a skeleton-code ti be based on
View 2 Replies
View Related
Jun 20, 2010
I am running into a snag on .exe files in Lucid. I have Wine installed, but I can not open the file as it is blocked from executing with a window popping up telling me that this file was blocked due to security reasons. I go into the files properties and try to change the permission but that does not help. Is there a way to get around this? Possibly in the terminal as root?
View 3 Replies
View Related
Sep 19, 2010
I have NDISWRAPPER installed on my laptop, but when I try to install the download file which is a Windows Xp dos executable file of 8mbs I have tried every thing but without success I can see my Iomega 250 Zip drive when I go into system>administration>disk utilities and acess properties but cannot make it run,
Dell inspiron 6400
OS: Ubuntu 10.04LTS
Ram:2gb
HDD: 250gb
Tony044
View 1 Replies
View Related
Aug 13, 2010
Does executable file contains the precise path to SO file? Should it be compiled with precise knowing of SO file location?
View 8 Replies
View Related
Jun 2, 2010
I want to find the cpu time taken by an executable to run.. the executable is writting the output to a file. i want to write the time takem by cpu to the same output file.
like:
abc is my executable which is taking input as input file and writing the result in output file.. i want to append cpu time information in the same file. can i do it with time command?
View 5 Replies
View Related
Apr 13, 2010
I am fairly new to Linux systems but I have a code that I just compiled and it produced an executable file that I need to run but I have no idea how to run that file. Is there a certain command to type to do it?
View 3 Replies
View Related
Jan 13, 2010
I'm maintaining a c++ application running on a 64-bit RHEL5 server w/32GB ram, but compiled to be a 32-bit executable with g++. The application handles large amounts of data, and has lately been throwing a st9bad_alloc exception. "top" shows the application as dieing right around when VIRT=~3GB, SWAP=~1.5GB and RES=~1.5GB. In the core dump I can see that it's consistently failing to push_back() a piece of data onto a std::vector (which already has hundreds of thousands of objects in it).
I know 4GB is the maximum address space for 32-bit applications. I've learned from this lwn article that a 32-bit kernel reserves 1GB of address space, leaving 3GB for user space. However I'm not running a 32-bit kernel, so that really doesn't answer anything.I wrote a dummy app which called malloc() over and over in a for loop, and it is able to allocate right up to the 4GB before it fails. I don't understand why this one seems to be able to allocate more.
The only difference between the two apps (besides malloc vs std::vector:ush_back), is that the 3GB crashing application attaches to 512mb of shared memory.Anyone have any ideas why this application would be crashing at 3GB? Is there any more diagnostics I should be doing? I would ultimately like to port this to 64-bit for a number of reasons, but it is a big undertaking for my organization, and I'd like to better understand what's going on here.
View 3 Replies
View Related
Jan 8, 2010
i have only basic knowledge of C so guys plz help me...is C language support call the C executable inside the C ?example contect mainA.c have a many function define in the struct,when i compile mainA and make a executable the name is ( A ),can i use executable C inside the C <my C program call the executable ( A ) > .
View 9 Replies
View Related
May 5, 2009
It is possible to run multiple instances of a jar executable. Is it possible that only a single instance of the jar runs? Wrappers like JSmooth or Launch4J can be made to run as a single instance. But since there are no such wrappers for linux, I need a way to restrict the jar to a single instance. How to embed the jar file into an executable such it runs a single instance?
View 14 Replies
View Related
Mar 2, 2010
when compiling a c++ program in g++ on Linux, how can I add version information to that executable and if possible is there a Linux utility to read the version information?
View 2 Replies
View Related
Sep 11, 2010
i installed "littler" from Synaptic. it's a front end for R, for those curious. it's not in my start menu. i searched for the app and don't know where it is. assuming i can find it, how do i set things up so that i can run it from a listing in the start menu? sorry to be so basic, but i mean from locating this app to getting it to start to making it available in the start menu, how would i do this
View 1 Replies
View Related
Jan 23, 2011
I use wine to execute my games. Now it says all the exes are unexecutable.I'm not very use to ubuntu
View 9 Replies
View Related
Mar 22, 2011
It so happens that some files that I am trying to make executable by chmod +x <filename> or otherwise are not becoming executables, rather the tick mark on the option is removed the very instant I put it on . Is there any thread of virus or any other reason for this.
View 5 Replies
View Related
Jun 16, 2011
I downloaded eclipse from the eclipse site..i had to make the main eclipse file executable..but i cant do that..when i click on "Allow executing file as program"..the tick disappears in a second..
View 9 Replies
View Related
Sep 3, 2010
I am trying to run Wattch simulator in linux.But it is giving the error below. what is this error and what do I do about it?
fatal: bad magic number in executable `prime' (not an executable?)
View 1 Replies
View Related
May 24, 2011
I need to redirect a /usr/sbin/sendmail command to $HOME/bin/msmtp .The sendmail command would be coming from a PHP5 application. I'm assuming the best way is to use .bashrc, but .htaccess is also available.The remote server is a shared web host which is running Debian 4.0.I do not have root access.I have SSH access.
View 2 Replies
View Related
Jun 30, 2011
Since I read that executing a library could return its version number, I ran "/lib/libc.so.0" on uClinux, but it triggers an error.I'm told that random libraries are not directly executable. Does someone know what a random library is?PS: In case that matters, here's the short version of the error:
Code:
Undefined instruction
<5> - May be used to emulate instructions that are not defined for
[code]....
View 2 Replies
View Related
Jan 19, 2010
SO I'm not talking about changing the file permissions, The only thing I could find on google was this [URL]Basically can you convert your bash script into a executable file, One that you can't open in text editor?
View 2 Replies
View Related
Jan 20, 2010
I created a bash script to help me mount my network shares.However when I link the file to the desktop and dbl click on the link it asks me if I want toCode:RUN IN TERMINAL - DISPLAY - CANCEL - RUNHow can I get it to RUN IN TERMINAL each time I dbl click it?
View 5 Replies
View Related
Jun 3, 2010
when I create a new text file in my pendrive, it become executable automatically. The text file name append with asterisk(*). However when I create a text file in Desktop, the created text file is normal and is not executable.
Another thing is when I copy a PDF file to my pendrive, it become executable file with asterisk (*) append after the PDF name. I've try copy whatever to pendrive but all end up with executable file.
View 6 Replies
View Related
Jul 3, 2010
I have downloaded the file "bitnami-wordpress-3.0-0-linux-installer.bin", it's a Wordpress stack, with PHP and apache and whatnot.. I am asked to make it executable using "chmod a+x <installer file>"what do i do? cd to where it is, and "chmod a+x <bitnami-wordpress-3.0-0-linux-installer.bin>"?and if yes, i just double click on it afterat to run the installation?
View 9 Replies
View Related
Jul 17, 2010
When you press exit the gnome-terminal exits.. where is the exit file located? (It isn't at /bin or /sbin or /usr/bin or/usr/sbin )
View 2 Replies
View Related
Aug 5, 2010
So I'm following the online tutorials I've found to install sketchup, and I've run into a snag right off the bat. The instructions I've found say to open the Sketchup exe file by right clicking and selecting open with Wine I do this and I get a box stating that the file is not marked as an executable. How do I fix that? Step by step instructions would be best since I only just installed ubuntu for the first time two days ago
View 1 Replies
View Related