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

Then it gives linking error as:

View 2 Replies


ADVERTISEMENT

Red Hat / Fedora :: Compiling Sample LDAP Plug-in On RHDS?

Feb 24, 2010

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.

View 1 Replies View Related

Server :: Compiling Sample LDAP Plug-in On RHDS

Feb 24, 2010

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.

View 1 Replies View Related

Programming :: Compiling Sample LDAP Plug-in On RHDS?

Feb 24, 2010

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.

View 1 Replies View Related

General :: Writing And Compiling Java Program In Fedora 12?

Mar 21, 2010

how we can we write java programs in java and how we execute it.. to produce output?

View 2 Replies View Related

General :: A C Program Which Was Compiled Properly In DevCPP Is Not Compiling In Fedora?

Oct 30, 2010

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

View 2 Replies View Related

Programming :: Calculate The Time Taken For A Sample Program To Run?

Apr 24, 2011

i have the example code below, i want to calculate the time taken for a sample program to run. but i keep getting undefined reference error.

#include <sys/time.h>
#include <iostream>
int main(int argc, char **argv) {
struct timeval startTime;
struct timeval endTime;

[Code]...

View 9 Replies View Related

Programming :: How To Compile Libipq Sample Program

Feb 26, 2010

I want to capture the ip packets, so i installed

I am getting the following errors.

View 7 Replies View Related

Programming :: Sample Program To Record Audio Through Microphone Connected To P

Jul 14, 2010

Can i find sample program to record audio through microphone connected to PC.

View 9 Replies View Related

Fedora :: Compiling A Program Using WxWidgets?

May 28, 2010

Code:

g++ hworld.cpp `wx-config --libs` `wx-config --cxxflags` -o hworld
hworld.cpp:5:20: error: wx/wx.h: No such file or directory
(snip)

I looked at other topics with similar problems and I have both wxGTK and wxGTK-devel installed. I'm pretty sure the method of compiling is correct.

View 4 Replies View Related

Red Hat :: C Program Not Compiling In Fedora 13 / Solution For This?

Feb 5, 2011

Recently i have installed fedora 13 my laptop but when i try to compile a c program it says that gcc command not found.

i think repo file must be created first but i dont know how to create a repo file in fedora 13
or is there any other solution.

View 2 Replies View Related

Fedora :: Compiling C++ Program On 11 - No Such File Or Directory

May 25, 2010

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

View 2 Replies View Related

Software :: Compiling A Program Both For Fedora And Ubuntu?

Jun 28, 2010

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?

View 13 Replies View Related

General :: Compiling Another Program With Mpicc Using A Non Default Compiler?

Jul 1, 2011

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?

View 2 Replies View Related

General :: Error Compiling A Program With Boost Libraries -> Strerror_r?

Jun 28, 2011

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

View 3 Replies View Related

General :: Program Compiled With G++ -L Option Uses Library From /usr/lib?

Jun 28, 2011

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.

View 3 Replies View Related

General :: Dos Option - Format Hard Drives - Load Out Side Of A Windows Program

Mar 25, 2011

what are all the options dos- ect! to format a HD. for the Linux platform is there not a way to load Linux out side of a Windows program .

View 7 Replies View Related

Fedora :: Looking For Sample MySQL And Web Front End App?

May 9, 2010

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.

View 2 Replies View Related

OpenSUSE :: Compiling First Program In 11.3?

Dec 6, 2010

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:

[code]..

View 9 Replies View Related

Fedora Installation :: XMMS2 Playing Only The Sample Song?

Mar 26, 2010

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.

View 14 Replies View Related

Ubuntu :: Getting Error In Compiling RPC Program

Mar 22, 2010

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

Code:
#include <stdio.h>
#include<stdlib.h>
main(argc, argv)
int argc;
char **argv; {
int num;if (argc != 2) {
fprintf(stderr, "usage: rnusers hostname ");
exit(1);
} if ((num = rnusers(argv[1])) < 0)
{fprintf(stderr, "error: rnusers ");
exit(-1);
} printf("%d users on %s
", num, argv[1]);
exit(0); }

View 2 Replies View Related

Programming :: Meaning Of Compiling A Program?

Aug 17, 2010

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?

View 13 Replies View Related

Ubuntu :: Getting Error While Compiling A C Program / Fix It?

Mar 10, 2010

I got an error that header file sys/ddi.h , did the system is missing something

View 2 Replies View Related

Programming :: Compiling A C++ Program Using G++ With X86 Settings On X86_64?

Jan 25, 2010

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 ?

View 6 Replies View Related

Programming :: Compiling Libusb C++ Program To Run Without It's Dependencies?

Aug 6, 2010

I've built a piece of hardware that communicates using usb. I was wondering could I make a libusb based program run on it's own without gcc/ libusb

View 10 Replies View Related

Programming :: Compiling C Program For HPUX On IA/PA 64 Bits?

May 17, 2011

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.

View 1 Replies View Related

Programming :: Error Compiling C++ Program Using C Library

May 8, 2010

I've created 3 files: swap.h and swap.c then make static library from it

Code:

Then I write 2 program to test this library: test_swap.c and test_swap.cpp

I compile

Code:

What's wrong with this in C++? And how can I make a library that can work both for any C and C++ program?

Here the source code

Code:

Code:

Code:

View 2 Replies View Related

Programming :: G++ Fails Compiling New Program / Make It Possible?

Jul 16, 2009

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...

View 4 Replies View Related

CentOS 5 :: Compiling A Program With Blas And Lapack On 5.2?

Apr 20, 2009

I'm trying to compile a program on CentOS 5.2. It's giving the following error. Does anyone have a clue what it means?

/net/hulk/home4/tedhyu/openmpi/openmpi-1.1.1/install/bin/mpif77 -o quest_ompi.x lcaomain_tp.o utl_mpi.o lcaosubs_tp.o lcaosubs.o /project/source/seqquest/libs_32/scalapack-1.8.0/libscalapack.a /project/source/seqquest/libs_32/BLACS/LIB/blacsCinit_MPI-LINUX-1.a /project/source/seqquest/libs_32/BLACS

[code]....

View 5 Replies View Related

General :: Networking - Get Single Bandwidth Usage Sample?

Aug 27, 2011

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?

View 3 Replies View Related







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