Please, need help!!!
I'm trying to include libnodave libraries into Kdevelop compiler. Anyone knows how can I do it??? I try to include it in the Options-Compiler, and writing the libnodave directory in this options, but it doesn't work.
Thanks a lot.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I do not use KDevelop. How do you use any other libraries? I guess you have to do either of this:
a) copy nodave.h, setport.h and openSocket.h to /user/include.
copy libnodave.so to /usr/lib.
run ldconfig.
b) copy the above mentioned files elsewhere and add this "elsewhere" to the library and include search path.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I ussually work with Visual C++, and I'm a novice programmer in Linux. Kdevelop seemed to me nicefull and seems like Visual, there's the reason that makes me try Kdevelop. I used to include the search paths for the libraries I need into the compiler options. But it seems not work on Kdevelop. Either I don't know other developers to try your libraries.
Thanks, I'll say you something tomorrow about option a).
Good job, these libraries are very nice and the executables works fine!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, Thomas, I did what you said before. It seems to work, but now I receive an error about compiling rBenchmark. The PDU struct is not declared anywhere. Where is suposed to be this structure??
benchmark.c:1: error: parse error before '*' token
benchmark.c: In function `rBenchmark':
benchmark.c:5: error: `PDU' undeclared (first use in this function)
benchmark.c:5: error: (Each undeclared identifier is reported only once
benchmark.c:5: error: for each function it appears in.)
benchmark.c:5: error: parse error before "p"
benchmark.c:13: error: `dc' undeclared (first use in this function)
benchmark.c:14: warning: implicit declaration of function `printf'
benchmark.c:15: warning: implicit declaration of function `wait'
benchmark.c:23: warning: implicit declaration of function `daveReadBytes'
benchmark.c:23: error: `daveFlags' undeclared (first use in this function)
benchmark.c:23: error: `NULL' undeclared (first use in this function)
benchmark.c:26: warning: implicit declaration of function `fflush'
benchmark.c:26: error: `stdout' undeclared (first use in this function)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
benchmark.c is not meant to be compiled separately. It is meant to be included in my test programs (and only there), where nodave.h has been included before. Benchmark.c is for no use for user applications (unless you want to include benchmarks..).
It is just there to save me the pain to keep the same code in 5 or so different test programs up to date.
I guess you simply made a kdevelop project using a wizard. And this wizard simply puts every .c file on the list to compile it to object file. This is nonsense in this case.
If your intention is to compile one of my test programs just as a sample application:
1. Delete the lines:
if (benchmark) {
....
}
and
#include "benchmark.c"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please, need help!!!
I'm trying to include libnodave libraries into Kdevelop compiler. Anyone knows how can I do it??? I try to include it in the Options-Compiler, and writing the libnodave directory in this options, but it doesn't work.
Thanks a lot.
I do not use KDevelop. How do you use any other libraries? I guess you have to do either of this:
a) copy nodave.h, setport.h and openSocket.h to /user/include.
copy libnodave.so to /usr/lib.
run ldconfig.
b) copy the above mentioned files elsewhere and add this "elsewhere" to the library and include search path.
I ussually work with Visual C++, and I'm a novice programmer in Linux. Kdevelop seemed to me nicefull and seems like Visual, there's the reason that makes me try Kdevelop. I used to include the search paths for the libraries I need into the compiler options. But it seems not work on Kdevelop. Either I don't know other developers to try your libraries.
Thanks, I'll say you something tomorrow about option a).
Good job, these libraries are very nice and the executables works fine!!
Hello, Thomas, I did what you said before. It seems to work, but now I receive an error about compiling rBenchmark. The PDU struct is not declared anywhere. Where is suposed to be this structure??
benchmark.c:1: error: parse error before '*' token
benchmark.c: In function `rBenchmark':
benchmark.c:5: error: `PDU' undeclared (first use in this function)
benchmark.c:5: error: (Each undeclared identifier is reported only once
benchmark.c:5: error: for each function it appears in.)
benchmark.c:5: error: parse error before "p"
benchmark.c:13: error: `dc' undeclared (first use in this function)
benchmark.c:14: warning: implicit declaration of function `printf'
benchmark.c:15: warning: implicit declaration of function `wait'
benchmark.c:23: warning: implicit declaration of function `daveReadBytes'
benchmark.c:23: error: `daveFlags' undeclared (first use in this function)
benchmark.c:23: error: `NULL' undeclared (first use in this function)
benchmark.c:26: warning: implicit declaration of function `fflush'
benchmark.c:26: error: `stdout' undeclared (first use in this function)
benchmark.c is not meant to be compiled separately. It is meant to be included in my test programs (and only there), where nodave.h has been included before. Benchmark.c is for no use for user applications (unless you want to include benchmarks..).
It is just there to save me the pain to keep the same code in 5 or so different test programs up to date.
I guess you simply made a kdevelop project using a wizard. And this wizard simply puts every .c file on the list to compile it to object file. This is nonsense in this case.
If your intention is to compile one of my test programs just as a sample application:
1. Delete the lines:
if (benchmark) {
....
}
and
#include "benchmark.c"