General :: Compiling 32 Bit Sample Program On 64 Bit Fedora Using - M32 Option
Oct 7, 2009
I have Fedoara 11 install on my PC. I want to compile program as 32 by g++ option -m32. I have 32 bit library install on my machine which present in path
When i compile my sample program with -c & -m32 option it compile correctly
I am writing an sample LDAP Plug-in on RHDS. While compiling plug-in file, i am getting an error related to missing header files(prtypes.h, prprf.h etc..).
'slapi-plugin.h' file is generated in the path /usr/include/dirsrv. But inside this file, they are using some other header files like prtypes.h, prprf.h, etc. But there is no files generated with this names. Because of this i am getting "No such file or directory" error for these files. I can get these header files from Netscape coporation(Thirdpary), but can we use the same header files for Redhat or is there any separate header files are there for RHDS.
I am writing an sample LDAP Plug-in on RHDS. While compiling plug-in file, i am getting an error related to missing header files(prtypes.h, prprf.h etc..).
'slapi-plugin.h' file is generated in the path /usr/include/dirsrv. But inside this file, they are using some other header files like prtypes.h, prprf.h, etc. But there is no files generated with this names. Because of this i am getting "No such file or directory" error for these files. I can get these header files from Netscape coporation(Thirdpary), but can we use the same header files for Redhat or is there any separate header files are there for RHDS.
I am writing an sample LDAP Plug-in on RHDS. While compiling plug-in file, i am getting an error related to missing header files(prtypes.h, prprf.h etc..) 'slapi-plugin.h' file is generated in the path /usr/include/dirsrv. But inside this file, they are using some other header files like prtypes.h, prprf.h, etc. But there is no files generated with this names. Because of this i am getting "No such file or directory" error for these files. I can get these header files from Netscape coporation(Thirdpary), but can we use the same header files for Redhat or is there any separate header files are there for RHDS.
A C program which compiled well in Dev CPP compiler is not compiling in Linux-Fedora.It shows the following error message/tmp/ccy02C6e.o.eh_frame+0x12):undefined reference to '__gxx_personality_v0'collect2:ld returned 1 exit status
I wrote a program in c++ on fedora 11. When i compiled it using g++. it displays the following error:
g++ fibnocci.cpp fibnocci.cpp:2:22: error: iostream.h: No such file or directory fibnocci.cpp: In function int main(): fibnocci.cpp:8: error: cout was not declared in this scope fibnocci.cpp:8: error: endl was not declared in this scope
I'm sometimes compiling a piece of software on my Fedora 13 machine and then transferring it to an Ubuntu box. Recently I noticed this would yield issues with Fedora's .so files:
Given I had a program's binary and an .so file the program would attempt to load, both compiled on Fedora, the program would run fine on Ubuntu 8.04 LTS but would be unable to load to open the Fedora .so with an "ELF file OS ABI invalid" error.
Now any program I natively compile on Ubuntu which I run on Fedora instead, will throw the *same* error with Fedora .so's - so basically neither a Fedora bin on Ubuntu, nor an Ubuntu bin on Fedora can load the Fedora .so files, only a Fedora bin natively on Fedora can.
That means Fedora .so files are always a problem on Ubuntu, and Ubuntu bins are always a problem on Fedora (unable to load system libs there).
This is a bit odd for e.g. binary redistributions of programs (which are rare I know) and I also found out that e.g. Tibia's linux client suffers from this issue (throws "ELF file OS ABI invalid" on my Fedora 13 when attempting to load my system's libGl).
And I started to wonder whether the only way to work-around to get something that works on all platforms is a Fedora binary shipped with .so files compiled on Ubuntu - which seems a bit stupid and ridiculously complicated just to get something that works flawlessly everywhere. Isn't there e.g. a gcc switch that will allow me to compile the .so files on Fedora in such a way that they can also be used on an Ubuntu system so just compiling everything on Fedora, yet getting it to work on Ubuntu aswell would be possible?
I am trying to compile a program with mpicc. To compile I use:
CC=/usr/bin/mpicc ./configure
However mpicc's default C compiler is gcc 4.4.2 and I need to use 4.0.0 which I have installed in another directory. I do not (nor can get) root privileges so I cannot edit mpicc's default compiler. Is there an option I can set while configuring?
I'm compiling a project that uses boost libraries (1.45.0) for a MIPS target, and when trying to compile with bjam I get the following error:
Code: libboost_system-mt.a(error_code.o): In function `(anonymous namespace)::generic_error_category::message(int) const': error_code.cpp:(.text+0x55c): undefined reference to `__glibc_strerror_r' collect2: ld returned 1 exit status
I was unable to compile a program that used libicu42 on Ubuntu 11.04, because Ubuntu 11.04 has only libicu44 and does not have libicu42 installed. So during compile time I used g++ prog.c -L mylib/ to compile the program. mylib had libicu42 (This library is a shared library and has the .so extension). The program compiled successfully, but when I tried to run it, it failed and complained that it did not find libicu42. So I had to manually install libicu42 in /usr/lib. Then the program worked.'ldd prog' revealed that it looked for libicu42 in /usr/libWhat was the point of specifying the library path using -L, if the compiled program looked for the library in /usr/lib? It's almost like it was just to satisfy the compiler.
Really interested if anyone knows of any pre-compiled or pre-built demo applications that could run on a MySQL back-end with a web-based front-end?
Ideally, it would be really, really simple having a web front-end that attaches to the database and just either reads data from it (or even enter data into it). Nothing too flash.
I'm thinking along the lines of a LAMP (Linux, Apache, MYSQL, PHP) install but I'm not a developer so if I have to build something I'll probably be out of my league here Does MySQL/Apache etc. have sample/demo databases with a web-front end application that could be fired up and installed without having to build the environment?
Years ago I remember M$ had the PetShop .Net app running on a SQL2000 environment easy to setup and simple enough to showcase the database and a simple front-end. A colleague wrote a small .NET app to just read the data from it and continuously scroll the data in a text box which was fine. Something like that on Linux would be perfect.
I was reading the following forum guide:openSUSE software installation hints So I decide to install from the souce code the following webcam application:
GTK+ UVC Viewer In order to avoid problems ( it is my first installation from souce code) I downloaded and unpacked everything in an USB key and I worked from, as the guide said, from the Linux terminal. Once I was in the right directory and I compute the command:
I just installed XMMS2 and everytime I tell it to play one of my mp3 files it only plays the sample song provided with the program. I haven't found any solution to this, just other people with the same problem.
I am trying to compile a simple remote procedure call program. I am getting an error: /tmp/ccy0M5rT.o: In function 'main': rpchighlayer.c.text+0x5c): undefined reference to 'rnusers' collect2: ld returned 1 exit status
I have been using gcc to compile C programs. I want to know what exactly is the meaning of Compiling a C program. I checked cc -S prog.c will give an .S file and if you analyze the hexdump I saw some assembly instructions. So what does the compiler do which is not required in case of interpreted languages?
How can I compile a C++ application using g++ with x86 platform settings on a x86_64 machine ? What are the possible negative side-effects of compiling a C++ application with x86 settings on a x86_64 platform ?
I had developed a C program on linux (x86). Now I need to port it to HP-UX OS on IA/PA 64 bit arch. What are the options to be used with cc compiler, on linux (x86), so that this could be done, if at all.
I am trying to compile systemc. Configuration is done OK and Makefiles are created. As soon as the "make" command i issue, recursively reaches the "utils" directory, errors are produced -declaration and include errors.
The files referenced by the errors DO exist and i hava managed to give g++ "-I ${LD_INCLUDE_PATH}, ie the variable, where all header dirs are listed. Libraries and compilers for gcc3.3 and g++3.3, i believe, are installed OK. code...
What I want to do is to write a script that gathers some information (like cpu temperature and bandwidth usage) and logs it into a file. I can't figure out how to get a single sample of the current used bandwidth: I've found that there's plenty of tools to get this information from command line, but the majority of them are curses based, so I can't take their output to put it into a file. Among these I've found bmon, that has a nice ascii output. The problem is that this output is updated constantly, while what I want is a single "sample" per program call.
Is there a way to get this done with bmon or someone knows another program to accomplish this task?