Usr/bin/ld: cannot find -lemu?

You need to tell the linker where it is: gcc stuff -L/opt/libemu -lemu or: gcc stuff /opt/libemu/libemu. A where stuff is your normal compile/link options files etc You can also specify library paths in the LIBRARY_PATH environment variable: LIBRARY_PATH=/opt/libemu export LIBRARY_PATH before you run your build. Yet another option is to see where gcc looks for libraries by running: gcc --print-search-dirs and put your library in one of the listed directories Edit: It is really not clear from your latest info what you are trying to build.

Are you trying to turn a static library into a shared library? Most important What is the exact filename of the library file you have copied into the /opt/libemu directory?

You need to tell the linker where it is: gcc stuff -L/opt/libemu -lemu or: gcc stuff /opt/libemu/libemu. A where stuff is your normal compile/link options files etc. You can also specify library paths in the LIBRARY_PATH environment variable: LIBRARY_PATH=/opt/libemu export LIBRARY_PATH before you run your build. Yet another option is to see where gcc looks for libraries by running: gcc --print-search-dirs and put your library in one of the listed directories.

Edit: It is really not clear from your latest info what you are trying to build. Are you trying to turn a static library into a shared library? Most important - What is the exact filename of the library file you have copied into the /opt/libemu directory?

I am attempting to compile a third party application where I simply issue: "make install". Where would I specify the -L/opt/ . ..? – Louis Jun 4 '10 at 15:36.

The environment variable LD_LIBRARY_PATH should include (but probably does not by default) /opt/libemu. Try running: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/libemu make install.

The export failed on Ubuntu, stating an invalid path identifier. After some Googling I came up with: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib Which allowed me to export, however the library was still not located when I attempted to make again . .. – Louis Jun 4 '10 at 15:50.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions