Re: g++ and linker issue



conrad <conrad@xxxxxxxxxx> wrote in news:60da658a-fa37-48df-9013-
ff03906ea39c@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:

My directory /home/foo/bunk
contains a shared object(gb.so) and
a C++ source file.
I invoke g++:
g++ -L/home/foo/bunk -o driver driver.cc -lgb
/usr/bin/ld: cannot find -lgb
collect2: ld returned 1 exit status

What am I missing here?


When you specify -lgb, ld expects the name of the
shared object file to be libgb.so

MV


--
I do not want replies; please follow-up to the group.
.



Relevant Pages

  • Re: Putting #ifndef #endif around #include "StdAfx.h" causes problem
    ... source file) about what he needs to add to stdafx.h. ... indeed ignored by compiler, but they're useful info for a user. ... course a user should be familiar with the pch mechanism, ... compile if some #include is missing in stdafx.h. ...
    (microsoft.public.vc.mfc)
  • Re: Movie Maker wont save movie
    ... usmcordie wrote: ... either the source file is missing or that I have no room ... Both are false indications. ...
    (microsoft.public.windowsxp.moviemaker)
  • Re: HP-48GX/49G emulator for Linux?
    ... > I use Ubuntu Linux 5.04. ... > creating pixmaps/Makefile ... But once one source file fails, ...
    (comp.sys.hp48)
  • Error: missing } in XML expression
    ... Error: missing} in XML expression ... Source File: http://www.foo.com/js/maps.js ... The JavaScript code: ...
    (comp.lang.javascript)
  • Re: Pesky Error
    ... [snip over 100 lines of code] ... You are missing the required newline at the end of your source file, ...
    (comp.lang.c)