Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360333

Summary: link with g++
Product: [Tools] CDT Reporter: prunusis
Component: cdt-coreAssignee: Project Inbox <cdt-core-inbox>
Status: RESOLVED INVALID QA Contact: Doug Schaefer <cdtdoug>
Severity: normal    
Priority: P3    
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description prunusis CLA 2011-10-08 16:38:57 EDT
Build Identifier: 5.3.0

When I try to build my project, the log shows that it can't find "-l/usr/lib/libgmp.so". I tried this command without "-l" in terminal and it works.
**** Build of configuration Debug for project test ****

make all 
Building target: test
Invoking: GCC C++ Linker
g++  -o "test"  ./test.o   -l/usr/lib/libgmp.so
/usr/bin/ld: cannot find -l/usr/lib/libgmp.so
collect2: ld returned 1 exit status
make: *** [test] Error 1

**** Build Finished ****

Reproducible: Always
Comment 1 prunusis CLA 2011-10-08 16:40:37 EDT
gcc version 4.6.1 20110819 (prerelease) (GCC)
Comment 2 Andrew Gvozdev CLA 2011-10-08 21:32:20 EDT
That message is coming from gcc compiler/linker not from CDT. You probably need to use -lgmp instead. If you need help, please, use GCC online documentation or ask in user forum at Eclipse Community Forums http://www.eclipse.org/forums/ - Language IDEs - CDT.