Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Linking static library does not work in Ubuntu 11.04
Linking static library does not work in Ubuntu 11.04 [message #821908] Thu, 15 March 2012 20:18
Eclipse UserFriend
I want to build a C project that uses a static library project. When link stops the build. Eclipse try it with:
Invoking: GCC C Linker
gcc-o "src_amrg". / amgr / amgr.o. / amgr / libamgr.o-l "/ home / timo / Projects / test_poc / eclipse / public / src_ioc / debug libsrc_ioc.a /"
/ usr / bin / ld: can not find -l/home/timo/Projects/test_poc/eclipse/public/src_ioc/Debug/libsrc_ioc.a



The following works in ubuntu terminal (without-l flag):
gcc-o "src_amrg". / amgr / amgr.o. / amgr / libamgr.o "/ home / timo / Projects / test_poc / eclipse / public / src_ioc / debug libsrc_ioc.a /"


Version: 3.7.0 Build id: I20110613-1736
C / C + + development tools 8.0.2.20120211192
Ubuntu 11:10
gcc (Ubuntu / Linaro 4.6.1-9ubuntu3) 4.6.1

My Test Project (Library are referenced as workspace-path)
+ test_poc
     + src
         + amrg (That, I would like to build)
              amgr.c /. h
              libarmg.c /. h
         + ioc (Static Library)
             ioc.c /. h
     + eclipse (Workspace)
          + public
              + src_amrg
              + src_ioc

[Updated on: Thu, 15 March 2012 20:23] by Moderator

Previous Topic:Error in inclusion of CDT in galileo Java IDE
Next Topic:How to install C++ Compiler on CDT ?
Goto Forum:
  


Current Time: Fri Jun 13 10:41:53 EDT 2025

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

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

Back to the top