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
ADVERTISEMENT
Jan 31, 2011
I am very new in c programming. I could not get a simple compiled program to run,I am using Fedora 14. To learn the correct way I sign in to and fallow the examples listed they all compile and generate the executable file but none run.To run them I try both way double chick the executable end on the command line but it does not do any thing.
View 10 Replies
View Related
May 28, 2010
I'm currently trying to get a windows compiled program to work through Wine to run on Linux and MacOSX.
When I run the program through wine, it prompts me to install Gecko which I do. Later on in the program, it attempts to use MSHTML to render HTML but I get these error messages on my console instead.
err:mshtml:init_xpcom NS_InitXPCOM2 failed: 80004005
err:mshtml:HTMLDocument_Create Failed to init Gecko, returning CLASS_E_CLASSNOTAVAILABLE
fixme:ole:CoCreateInstance no instance created for interface {00000000-0000-0000-c000-000000000046} of class {25336920-03f9-11cf-8fd0-00aa00686f13}, hres is 0x80040111
I'm using Wine 1.1.34 and a similar bug was supposedly fixed in 1.1.33 [URL]
View 3 Replies
View Related
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
Aug 18, 2011
I am installing a program on a server as a non-root user. Specifically it is tmux 1.5, but this should apply broadly to all locally installed program in my opinion (I mention the program name in case this problem ends up not being my own error).
The program requires me to install some dependent libraries (e.g. libevent and ncurses). So, I installed them both locally since I do not have root access
cd $HOME/library/installation/folder
DIR=$HOME/local
./configure --prefix=$DIR
#... make ... make install
[Code]....
Ok, so this installs the program without problems into $HOME/local/bin, but if I run the executable: $HOME/local/bin/tmux , I get the following error:
tmux: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory
It would seem to me that the program cannot find the desired libraries, but the file libevent-2.0.so.5 does indeed exist in $HOME/local/lib as specified in the configure options. I am wondering how I can get the program to recognize the installed library in order to run. I tried putting symbolic links in $HOME/lib, $HOME/bin, and $HOME/local/bin, but none of these worked.
View 2 Replies
View Related
Feb 13, 2010
I am getting some error when i compile cross compile "dbus-1.2.20". error Code: checking for XML_ParserCreate_MM in -lexpat... no configure: error: Could not find expat.h, check config.log for failed attempts so i downloaded te expat library sources i cross compiled. But again i am getting same error. I think i have to add "-lexpat" in LDFLAG. But i dont know how to do that.
View 1 Replies
View Related
Nov 19, 2010
I need a design which requires complete modularity and speed. I have a huge monolithic process that i'm seperating now with individual modules as libraries.I'm just worried how to go about the no of shared libraries? for example can i have 10 shared libraries in place of 1? what will be the advantage in that case?
View 2 Replies
View Related
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
View Related
Jul 25, 2011
I just saw library application of ipad, and i am wonder if there is any application for ubuntu like that?I searched on web and found somethings like :
alexandria
calibre
but these apps just show some data of e-books like author, publishers , ...i need something that adds pdf files that are IN MY HARD drive
presents them and lets me to read them
View 2 Replies
View Related
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
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
Jun 27, 2010
I've started programming in c recently . following are the details about scene:
* vim is editor and program is compiled in gcc whenever a program involving math function appears it gives error i.though math.h is included in header file compiler complains about it it gives error of unrecognized function that math function like sqrt, etc question is how to connect math.h to a program.
View 14 Replies
View Related
Jan 12, 2010
I am trying to add some functions to a Postgresql database. The functions use a shared library which they think is: /usr/lib/pgsql/postgis-1.4.so They say: "ERROR: could not load library "/usr/lib/pgsql/postgis-1.4.so": libgeos_c.so.1: cannot open shared object file: No such file or directory"
I cd to /usr/lib/pgsql/ and do an ls. postgis-1.4.so is there. libgeos_c.so.1 is as well (and it's in /usr/lib/ )
Both the files seem to exist. I cannot copy either of them (cp says "cannot stat '[file]': No such file or directory".
View 6 Replies
View Related
Mar 10, 2010
it possible to access main program function from dynamicallyinked library in c language?For example:main.c:
Code:
#include<stdio.h>
void func()
[code]...
View 2 Replies
View Related
Apr 28, 2010
I'd like to get path of one library to link it dynamically in my program. Probobly the best way would be to add macro to my configure.ac file.
View 2 Replies
View Related
Aug 19, 2010
Is there any equivalent of WaitFOrMultipleObjects on Linux?
I was finding a cross Platform library that allow you to run another program from your C++ application. I found POCO but it does not support functionality like WaitFOrMultipleObjects for both (linux and windows). I tried boost Process but its not official till now.
View 1 Replies
View Related
May 17, 2009
I have a program that is completed under Linux, it requires library tidy, PCRE and libcurl, which could be found in Cygwin too.
I could compile my linux program through Cygwin and produce an EXE file, however it do require 'cygwin.dll' installed by the users.
I am wondering if I could have someway to produce out a stand-alone EXE file that could run independently from Cygwin ? ( I don't mind to combine that cygwin.dll and the EXE together for a larger EXE file).
View 1 Replies
View Related
Apr 16, 2010
I need to write program (preffer Python) to change range for users. Does anyone know some library which can help me to do that? Maybe someone has written program like that?
View 5 Replies
View Related
Apr 13, 2011
I'm tring to run AMDOverdriveCtrl, since they don't have an RPM file for Fedora i tried to compile from source i followed the instruction in the readme files run the make command
Code:
% make
g++ -mwindows -s -pthread -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8 -ldl -o./Release/AMDOverdriveCtrl ./src/CFanSpeedPanel.o ./src/COvdrSettingsPanel.o ./src/CFanControlPanel.o ./src/CColorTempPanel.o ./src/BezierMath.o ./src/Color.o
[code]....
and tried to run the application, and i get this error message
Code:
$ AMDOverdriveCtrl
Fatal Error: Mismatch between the program and library build versions detected.
The library used 2.8 (no debug,Unicode,compiler with C++ ABI 1002,wx containers,compatible with 2.4,compatible with 2.6), and your program used 2.8 (no debug,Unicode,compiler with C++ ABI 1002,wx containers,compatible with 2.6).
View 1 Replies
View Related
Jan 24, 2010
How can i change the option appear when right click any program
i mean like open,properties!!! and add new one ..
i want to make video so when i right click any program ,option show ex.called video so when click on it the video appear ..
View 3 Replies
View Related
Sep 4, 2015
So I had decided to install debian but I thought I couls do it by myself without anything which I was wrong about, because I wound up installing Debian on my C: drive/windows partition. So far nothing has been bad and I am still running windows but now my C: drive has been renamed to "Install Debian GNU/Linux" I know the name doesn't mean shit but I'm curious why every time I go to change it it auto changes back. Also now every time it boots up it asks me to choose between UNetbootin, which i uninstalled, and windows. how do i get rid of the option to remove unetbootin even though I uninstalled the program. Same with Debian I deleted everything i could find but it still changes the drive name, how to fix any of this and might there be files I haven't found where would they be located?
View 3 Replies
View Related
Sep 9, 2010
Problem is that Ubuntu installation program doesn't want to "offer" Dual-Boot option on my main HDD. Only format option and manual partitioning.
View 1 Replies
View Related
Aug 1, 2010
Kernel 2.6.21.5, Slackware 12.0 Mplayer 1.0rc2-4.1.2.
I have compiled and installed the mplayer tarball and I have disposed of both the tarball and its contents. There was the option to compile either for the physical console alone or for both this and the GUI. And I really don't remember which one I did choose.
View 7 Replies
View Related
Aug 4, 2011
./configure script fails to configure libsf. Please check the following last few lines of configure script error.
But find command shows the following;
It seems the file libdb does exist. man dbopen displays man page for dbopen. I also tried to ln -s /usr/lib/libdb.a and libdb.so /lib dir but all were in vain.
View 6 Replies
View Related
Jun 28, 2010
I am trying out Zenwalk Linux and so far love it. I have had to compile a couple of bits of software from source and don't know how I would update them when a new version comes out.The options are:1. Compile the new version and hope it overwrites the old one2.Uninstall the old version and compile the new.Option 2 feels safer but how do I uninstall a bit of software installed by compiling?
View 3 Replies
View Related
Jan 22, 2011
i couldn't find anything on google. So here is my problem: It's Debian GNU/Linux. I installed apache2 a few weeks ago, but due to some work I couldn't go on installing further things. Today I installed php5 and mysql. Everything seemed to work fine. I loaded an existing MyBB Board and WordPress Site onto the server and imported the mysql db. I can open the sites and login. However, there are problems. I think my problems are due to the compiled modules. Some are missing. I checked several sites. They all give me this listing:
Code:
apache2 -l
Compiled in modules:
core.c
mod_access.c
[Code]...
What should I do? How can I get the missing modules? Do I have to install apache again (how? remove - install? install what?)? Step-by-step instructions would be kind, because I don't know a lot about unix systems.
View 3 Replies
View Related
Feb 16, 2011
install a newly compiled linker as the default linker on my VM running Ubuntu. I compiled and installed a new custom kernel on my VM (linux-2.6.36) and also compiled (not install) a custom gnu c library (glibc-2.11.2) on the newly installed custom kernel. I am able to run a simple helloworld.c program to verify that my program worked successfully using the newly build dynamic linker in the /elf directory.
I want to replace the real linker inside /lib with the new linker that I compiled. I tried to make the soft link named ld-linux-x86-64.so.2 that originally points to the real linker file ld-2.11.1.so, point to my newly compiled linker, but my VM crashed. I also tried moving the compiled linker and wrote it over the original linker, and the VM crashed. None of the commands worked after that as they could not access any of the shared libraries and I received this error '/bin/bash: No such file or directory'. I also tried to change the LD_LIBRARY_PATH to point to my linker and did not have any luck there either.
View 2 Replies
View Related
Jan 13, 2011
I already have compiled the source and I want to make an rpm. What do i do with it? Can i utilize the make file?
View 1 Replies
View Related
Jan 18, 2011
I just have a short simple question. I download yukon a opengl Video capture software and tried to install it and I got it installed but I can't get it to function right. So figured I would uninstall it and ran "make uninstall" in the source and it gave me an error that is has nothing to do.
So this is my questions
if I did
Code:
$whereis yukon
#rm -rf /etc/yukon /usr/bin/yukon (and the rest of the direcories listed)
Would that work fine? for removing it from my system.
View 9 Replies
View Related
Feb 26, 2011
I compiled a kernel 2.6.37.1 and after compilation i am not able to boot with new kernel.
I am getting following errors
Alert :
View 2 Replies
View Related