Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Adding .a file in Eclipse with MingW compiler(Adding .a file in Eclipse with MingW compiler)
icon5.gif  Adding .a file in Eclipse with MingW compiler [message #1620398] Tue, 17 February 2015 06:45
Sid Kumar is currently offline Sid KumarFriend
Messages: 1
Registered: February 2015
Junior Member
HI Everybody,

I am new to Eclipse IDE use. I have installed MingW in my windows O/S and created a "C" project in Eclipse IDE(eclipse-automotive-luna-SR1a-incubation-win32-x86_64). I have cretaed anothe C library using eclipse with MingW compiler(libTestLib.a). Now I am trying to add the .a library to my EXE.

I tried to add like below
project->properties0->c/C++ build->setting->mingW C Linker->Libraries

under Libraries(-l) i added libTestLib and under Library search Path "D:\libTestLib\Debug"


But while building its giving error "cannot find -libTestLib" under error section. And under compile section, I am getting below error

"Info: Internal Builder is used for build
gcc -O0 -g3 -Wall -c -fmessage-length=0 -o "Source\\main.o" "..\\Source\\main.c"
gcc -O0 -g3 -Wall -c -fmessage-length=0 -o "Source\\TestExecutable.o" "..\\Source\\TestExecutable.c"
gcc "-LD:\libTestLib\Debug" -o TestExecutable.exe "Source\\main.o" "Source\\TestExecutable.o" -libTestLib
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -libTestLib
collect2.exe: error: ld returned 1 exit status


Please help.
Thank you all.
Previous Topic:Custom tool chain
Next Topic:Path-Variables are not evaluated for Cross-Tools Path
Goto Forum:
  


Current Time: Fri Apr 19 00:05:33 GMT 2024

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

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

Back to the top