Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Linker can not find libraries
Linker can not find libraries [message #157784] Fri, 11 November 2005 16:03 Go to next message
Eclipse UserFriend
Originally posted by: kwallis.gmail.com

Hello. I am using cygwin on WinXP. I have 4 c++ projects, 3 of which
create static libraries (libxxxx.a files), and the 4th creates an
executable that I need to link with these other 3 libraries. Under
Properties in the linker section I have specified library include paths,
and included the lib files to include, but the linker can not find my
libraries. I have tried a number of different options, relative paths,
full paths etc, but none work. I get the following in the console:

Building target: RHP_InternalPool.exe
Invoking: GCC C++ Linker
g++ -L../../../POOL/Debug -L../../../UT/Debug -L../../NHL/Debug
-oRHP_InternalPool.exe ./IP_Coach.o ./IP_Defenceman.o ./IP_Enforcer.o
/IP_Goalie.o ./IP_Group.o ./IP_Player.o ./IP_Pool.o ./IP_Scorer.o
/main.o -llibpool.a -llibut.a -llibnhl.a
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin /bin/ld:
cannot find -llibpool.a
collect2: ld returned 1 exit status
make: *** [RHP_InternalPool.exe] Error 1
make: Target `all' not remade because of errors.
Build complete for project RHP_InternalPool

Any help would be appreciated.
Thanks.
Re: Linker can not find libraries [message #158755 is a reply to message #157784] Tue, 22 November 2005 15:48 Go to previous message
Eclipse UserFriend
Originally posted by: kwallis.gmail.com

Found the solution to my problem in a newer thread:

http://www.eclipse.org/newsportal/article.php?id=9006&gr oup=eclipse.tools.cdt#9006
Previous Topic:Can I debug a C program with multi-process?
Next Topic:Defines while indexing
Goto Forum:
  


Current Time: Fri Dec 27 02:32:31 GMT 2024

Powered by FUDForum. Page generated in 0.03193 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top