Click here to Skip to main content
15,868,141 members
Home / Discussions / Linux Programming
   

Linux Programming

 
GeneralRe: Linking to library Pin
k50543-Mar-19 7:44
mvek50543-Mar-19 7:44 
GeneralRe: Linking to library Pin
Vaclav_3-Mar-19 8:12
Vaclav_3-Mar-19 8:12 
GeneralRe: Linking to library Pin
k50543-Mar-19 9:04
mvek50543-Mar-19 9:04 
GeneralRe: Linking to library Pin
Richard MacCutchan3-Mar-19 21:34
mveRichard MacCutchan3-Mar-19 21:34 
GeneralRe: Linking to library Pin
Vaclav_4-Mar-19 4:28
Vaclav_4-Mar-19 4:28 
GeneralRe: Linking to library Pin
Richard MacCutchan4-Mar-19 4:56
mveRichard MacCutchan4-Mar-19 4:56 
GeneralRe: Linking to library Pin
k50544-Mar-19 7:42
mvek50544-Mar-19 7:42 
GeneralRe: Linking to library Pin
Richard MacCutchan4-Mar-19 9:47
mveRichard MacCutchan4-Mar-19 9:47 
$ g++ hello.cpp -l:mcheck.a -o hello
/usr/bin/ld: cannot find -l:mcheck.a
collect2: error: ld returned 1 exit status
$ g++ hello.cpp -l:libmcheck.a -o hello

Now why are you using the -l: version for a normally named library? For files named libxxx.a all you need is -lxxx, as I explained in my previous post (and in the man page). The only time you need the colon version is if the name does not begin with the lib prefix.
GeneralRe: Linking to library Pin
k50544-Mar-19 12:45
mvek50544-Mar-19 12:45 
GeneralRe: Linking to library Pin
Richard MacCutchan4-Mar-19 21:44
mveRichard MacCutchan4-Mar-19 21:44 
QuestionSOLVED system call syntax ? Pin
Vaclav_7-Feb-19 6:40
Vaclav_7-Feb-19 6:40 
AnswerRe: system call syntax ? Pin
k50547-Feb-19 8:02
mvek50547-Feb-19 8:02 
GeneralRe: system call syntax ? Pin
Vaclav_7-Feb-19 10:23
Vaclav_7-Feb-19 10:23 
GeneralRe: system call syntax ? Pin
k50547-Feb-19 11:20
mvek50547-Feb-19 11:20 
AnswerRe: system call syntax ? Pin
Richard MacCutchan7-Feb-19 22:26
mveRichard MacCutchan7-Feb-19 22:26 
GeneralRe: system call syntax ? Pin
Vaclav_8-Feb-19 3:23
Vaclav_8-Feb-19 3:23 
GeneralRe: system call syntax ? Pin
Richard MacCutchan8-Feb-19 4:56
mveRichard MacCutchan8-Feb-19 4:56 
GeneralRe: system call syntax ? Pin
k50548-Feb-19 5:23
mvek50548-Feb-19 5:23 
GeneralRe: system call syntax ? Pin
Richard MacCutchan8-Feb-19 5:53
mveRichard MacCutchan8-Feb-19 5:53 
GeneralRe: system call syntax ? Pin
Vaclav_8-Feb-19 9:42
Vaclav_8-Feb-19 9:42 
GeneralRe: system call syntax ? Pin
k50548-Feb-19 10:03
mvek50548-Feb-19 10:03 
GeneralRe: system call syntax ? Pin
Vaclav_8-Feb-19 14:37
Vaclav_8-Feb-19 14:37 
GeneralRe: system call syntax ? Pin
Richard MacCutchan8-Feb-19 22:27
mveRichard MacCutchan8-Feb-19 22:27 
Questionfrom "ls" to C++ buffer? Pin
Vaclav_15-Jan-19 4:03
Vaclav_15-Jan-19 4:03 
AnswerRe: from "ls" to C++ buffer? Pin
k505415-Jan-19 6:02
mvek505415-Jan-19 6:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.