Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360333 - link with g++
Summary: link with g++
Status: RESOLVED INVALID
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-08 16:38 EDT by prunusis CLA
Modified: 2011-10-08 21:32 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.