Programming :: Produce COFF Format Object File Using GCC Or AS?
May 10, 2010I am trying to have GNU assembler produce object file COFF format? I did not find relevant information from GNU assembler's manual.
View 1 RepliesI am trying to have GNU assembler produce object file COFF format? I did not find relevant information from GNU assembler's manual.
View 1 RepliesI have been asked to provide a document in Microsoft word format. Is there a lightweight MS word editor to produce Microsoft word documents please? I don't want to install the whole Open Office thing just to produce one document.
View 6 Replies View RelatedI am running after compiling a program and I find that I get the following. How best can I avoid this as i cannot run the program. I have tried removing the offending package, although I cannot find it. I have also tried re-installing. I have also tried changing FC and F90 flags to avoid the MPI version.
error while loading shared libraries: libmpi_f90.so.0: cannot open shared object file: No such file or directory
I have 2 completely different processes A and B (they do not have any relationship) suppose A opens a file with file descriptor 4 and B opens another file with file descriptor 5
Can process A use the fd 5 (i.e using the file object of processs B) by any means..if suppose i let the fd 4 of process A to point to the file object of process B(fd 5) will it work? is it safe?
Is there any way may be some tools to view and explore contents of .obj files (in a formatted or unformatted way) or an executable. Can we do it using gcc?
View 1 Replies View RelatedI came from Windows and I am want to learn how C++ programs are compiled and executed in Linux. I read in "Thinking in C++" that the linker adds (by default) a startup module to the object files that an application should be made of. Now when I use g++, I can create an single object module out of a single source code file then execute it in the terminal like this:
./objectFile.out
How can this object file be executed while it doesn't contain the startup module? In Windows, object files usually get combined into an executable file (somthing.exe) then that executable can be executed, is this not necessary in Linux? does the OS perform required actions before it executes that object file?
I wanted to know how can I change the default place of shared object files of a program in a system. let me explain it better for you : I have an embedded computer with Linux OS that its file system is read only and I can not add any file to /usr /lib and ..... and I can just mount a SD memory card to it and copy all of my programs to it and run them from there as you understand I have two choices to choose, first make one big binary file for each program that I am doing it now and it is not a suitable solution and the second is finding the way to change default place of shared object file of my program.
View 1 Replies View RelatedI hava a source file add.c
int add(int a,int b){
return a+b;
}
then i compile it, gcc -c add.c now we get a object file add.o, I want to execute the function add(int a,int b)(the functinon in the object file add.o) how can i use libbfd to execute it?
Only ones I can think of seem overly complex, and I'm sure there is a simple solution I am overlooking. I have a class, it has a member who is an object. This object needs to be able to represent an object of different types.
[code]...
Where "surface" could be several different types, which will be set during execution. Hope this is clear enough. I have tried using templates but am getting "data member cannot be a member template". Either I have incorrect syntax, or am not implementing it right. another solution would have one class containing definitions of all possible shapes, But this would take up extra memory. Other solutions I thought of seem too round-about, and seems there is a simpler solution that I have overlooked.
I am currently using Ubuntu 9.10. I am writing a small code in C which test the connectivity with MYSQL. I am getting this error. "libmysqlclient.so.14: cannot open shared object file: No such file or directory" What I understand is that you need MYSQL development package in order to access MYSQL database in C. I installed MYSQL using this command. apt-get install mysql-server mysql-client
View 2 Replies View RelatedI am trying to scan in a file which has the format of
Quote:
username:password
hello:world
right now my program says
Code:
Scanner fin = null;
try
{
fin = new Scanner(new FileReader("proj1/passwd.txt"));
[Code]...
How do i correctly use delimiter to take in only the strings on one line?
I encounter a problem with my program recently, i get the core dump of my
program, and it produced by a segill signal, i wondered that how my program can happen to generate this error, and i never write a "0 divide"
I made a string key-value mapping struct in C, and functions to add and remove entries. I would also like to write a function to read in this file format:
Code:
key: value
another: another value
[code]...
Now that I've entered the realms of permanent beta software I'm completely lost.
I compile a program like this: icc main.c -L. -lxyz -L/usr/X11R6/lib -lX11 -lpthread -lm -std=c99
(But I have no concrete idea about what -L and -l mean. l is short for lib? Why? -L seems to specify the path for some library that follow directly afterwards?). Anyway, it works.
So I get an output file a.out (why a?), which I run by writing ./a.out .
Then I get this error message: error while loading shared libraries: lxyz.so: cannot open shared object file: No such file or directory
I have it in my directory but it won't find it? What's wrong?
I want to change data format in a file using bash. The orignal is like:
Code:
1 abc 6 pqr
2 def 7 stu
3 ghij 8 vwx
4 kl 9 yz
[Code]....
I am using C. I have a fuction that returns a string
Code:
I need to format this string so that I can create a text file like so:
So I'm trying:
Code:
But I get errors like:
I just started learning shell programming and I'm trying to create a shell script that produce something like this:
Input: 1 234 5 678 9
Output: < <<< 5 >>> >
Input:abc d 1234 5 5 67890 e f ghij
Output:abc d <<<< 5 5 >>>< e f ghij
Characters with values less than 5 will display '<' digit values greater than 5 display '>'. The digit '5' will be left unchanged.
Below is my unfinished code:
#!/bin/sh
read userInput
for f in "$userInput"
do
f1="$(echo ${f} | sed "s/[^0-9]//g")"
if test $f1 -lt 4
then
f3='<'
elif test $f1 -gt 6
then
f3='>'
fi
f2="$(echo ${f} | tr "$f1" "$f3")"
echo $f2
done
I was wondering, what would be a good, open-source file format for a beginner in the field, like me, to start editing sound files? This file format would have to be well documented, preferibly open-source, lossless and, most of all, convertible to more popular file formats, such as mp3 or wav maybe. I would like to design my own sound effects through directly editing the binary sequence of a sound file. I imagine this editing would have the purpose of adjusting the voltage variations of the sound device's output in time. It would be perhaps something like a PC-controlled signal generator. I'm thinking I might be able to do this in linux with something like
Code:
$ dd if=mysound.raw of=/dev/audio
But then, which book or resource woule be a good and through explenation of the relationship between the bit sequence in mysound.raw and the signal function generated in the output of, say, my computer's sound card.
I am trying to compile a software using a provided sdk. I suspect that the sdk has some mismatch of the platform library, but I am not sure.
The error I got is
Code:
The libidata.so.42 is there in that folder. I guess the file might be in a big endian. Is there a way to check if the libidata.so.42 i have might be a big endian format, rather than little endian?
If my guess is incorrect, This is a c++ code on fedora x86 machine.
I needed for the first time to do a slideshow of some pictures, I thought it would be a easy thing but now I have two days trying to do it. I downloaded Manslide, I spent about two hours working on it doing the slides but at end of the render process it do not produce any output. Then I discover that Manslide now is SMILE that is in Packman repo. I spent another two hours making again my slideshow but at the end it didn't produce the output video file. I have all the dependencies, I switch all of them to Packman rpms.
View 4 Replies View RelatedIf you install Smile (video slideshow creator) from Packman repository, you will probably find out that it doesn't produce any output file. This project is most probably dead, homepage is 404 and it's practically impossible to get any information about this program. Therefore it took me 3 exhausting hours to get it working Here is the solution: There is a missing fake.pl file, so you have to copy it to the right place, which is /opt/smile (for OpenSuse, for other distros it could be elsewhere, for example /usr/bin). You can obtain this file from the source package but as it is very small I post it right here to spare your time:
[Code].....
So create a new file /opt/smile/fake.pl and copy these lines into it. Btw. the original file from the source doesn't have the first line, but according to the tip from different forum it is supposed to be here. If Smile still doesn't work you might try to add some extra permission to fake.pl, something like chmod 755 /opt/smile/fake. And if it is still not working check the log file ~/.logsmile.txt This file is by the way also impossible to find, there is no sign of him in the documentation.
Groovy is an object-oriented programming language for the Java platform. I do not have experience in Java, only perl and shell scripts. Recently I have been asked to maintain a software written in groovy (also to make enhancements). So can I learn groovy without knowing java language. or isit I have to learn java before venturing into groovy.
View 1 Replies View RelatedI am going through a multi-step process to produce output files, which involves 25,000 greps at one stage. While I do achieve the desired result I am wondering whether the process could be improved (sped up and/or decluttered).input 1set of dated files called ids<yyyy><mm> containing numeric id's, one per line, 280,000 lines in total:
Code:
123456
999996
[code]....
is there a way to produce a .deb file out of a regular firefox precompiled downloadable binary, the ones we can download of their ftp? I don't want to start an iceweasel/firefox flame war.
View 9 Replies View RelatedIs there any software that can 'read' the log file in nagios and produce a so-called 'scoreboard' (something like a graph) to display the status of the services? I was told that one could 'read' the log file stored in nagios and create a scoreboard.
View 12 Replies View Relatedmy school we want to print a magazine but we have problem with the format of the files. We need to create a sheet in A3 format from two sheets in A4 format. I was reading about the pdftk library but it doesn't do what i need.
View 4 Replies View Relatedthere are number of threads floating on installation of ns2..however i am unable to get it on my 64 bit system ns: error while loading shared libraries: libotcl.so: cannot open shared object file: No such file or directory
View 1 Replies View RelatedWhen running the beta of blender 2.5, I get the following error. blender: error while loading shared libraries: libpython2.5.so.1.0: cannot open shared object file: No such file or directory In previous versions of ubuntu you could 'apt-get install python2.5' to resolve the issue, but it doesn't appear in any/all of the repositories. where I can get python2.5 for lucid-lynx?
View 1 Replies View RelatedI was looking to download "America's Army" and was doing alright until I hit a slight snag, It had an error while loading libgtk1.2, so I scoured the Internet for a way to fix this and the find command I found just told me it couldn't find the package, this is the first error I got when I tried to uncompress the "America's Army" version I downloaded:
/home/zac/.setup3597: error while loading shared libraries: libgtk-1.2.so.0: can not open shared object file: No such file or directory.
I followed [URL] that thread for installing BitPim on 10.04, but am getting this error:
Quote:
Traceback (most recent call last):
File "/opt/cx_Freeze-3.0.3/initscripts/ConsoleSetLibPath.py", line 35, in <module>
File "src/bp.py", line 20, in <module>
File "src/bp_cli.py", line 21, in <module>
[code]....