Click here to Skip to main content
15,887,822 members
Home / Discussions / Linux Programming
   

Linux Programming

 
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 
Yes, by using system you are not calling the omp_get_num_procs function at all. You need to understand the difference between using system to run an external application, and calling a library function directly. In the above case you are missing the library that contains the omp_get_num_procs function. So you just need to add it to the LIB section of your makefile, or in the linker section of your project in the IDE (not sure which one you are using here).

modified 9-Feb-19 4:39am.

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 
GeneralRe: from "ls" to C++ buffer? Pin
Vaclav_15-Jan-19 9:10
Vaclav_15-Jan-19 9:10 
GeneralRe: from "ls" to C++ buffer? Pin
k505415-Jan-19 20:37
mvek505415-Jan-19 20:37 
AnswerRe: from "ls" to C++ buffer? Pin
Vaclav_15-Jan-19 14:30
Vaclav_15-Jan-19 14:30 
GeneralRe: from "ls" to C++ buffer? Pin
Richard MacCutchan15-Jan-19 21:24
mveRichard MacCutchan15-Jan-19 21:24 
GeneralRe: from "ls" to C++ buffer? Pin
Vaclav_16-Jan-19 7:05
Vaclav_16-Jan-19 7:05 
GeneralRe: from "ls" to C++ buffer? Pin
Richard MacCutchan16-Jan-19 8:20
mveRichard MacCutchan16-Jan-19 8:20 
GeneralRe: from "ls" to C++ buffer? Pin
Vaclav_16-Jan-19 15:03
Vaclav_16-Jan-19 15:03 
Questionioctl - from code to hardware Pin
Vaclav_3-Jan-19 4:41
Vaclav_3-Jan-19 4:41 
SuggestionRe: ioctl - from code to hardware Pin
Richard MacCutchan3-Jan-19 6:31
mveRichard MacCutchan3-Jan-19 6:31 
GeneralRe: ioctl - from code to hardware Pin
Vaclav_3-Jan-19 11:03
Vaclav_3-Jan-19 11:03 
GeneralRe: ioctl - from code to hardware Pin
Richard MacCutchan3-Jan-19 22:11
mveRichard MacCutchan3-Jan-19 22:11 
GeneralRe: ioctl - from code to hardware Pin
Vaclav_4-Jan-19 5:36
Vaclav_4-Jan-19 5:36 
QuestionWhich is most current Linux "man" resource to consult with? Pin
Vaclav_2-Jan-19 5:36
Vaclav_2-Jan-19 5:36 
AnswerRe: Which is most current Linux "man" resource to consult with? Pin
Richard MacCutchan2-Jan-19 6:29
mveRichard MacCutchan2-Jan-19 6:29 
QuestionCoding C++ ioctl SPI_IOC_MESSAGE Pin
Vaclav_26-Dec-18 4:44
Vaclav_26-Dec-18 4:44 

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.