[etherlab-users] compiling test1 pdserver

Mark Lautermann stay-ml at gmx.net
Mon Nov 17 22:38:33 CET 2014


Hi,
i installed the pdserver successful and recompile / run the test1.cpp 
while connecting tho the  test_manager.
I have a RT preeamt program and need this file in c. Can anyone help me 
making it run!?

gcc -Wall -o t2   test1.c -L/usr/local/lib/i386-linux-gnu/ -lpdserv 
-I/usr/local/include/


test1.c: In function ‘copy_param’:
test1.c:50:23: error: parameter name omitted
  int copy_param(struct pdtask *, const struct pdvariable *,
                        ^
test1.c:50:46: error: parameter name omitted
  int copy_param(struct pdtask *, const struct pdvariable *,
                                               ^
test1.c:53:5: warning: incompatible implicit declaration of built-in 
function ‘memcpy’ [enabled by default]
      memcpy(dst, src, len);
      ^
test1.c: In function ‘clear_event’:
test1.c:63:31: error: parameter name omitted
  void clear_event(const struct pdevent* /*event*/, size_t /*index*/,
                                ^
test1.c:63:31: error: parameter name omitted
test1.c:64:9: error: parameter name omitted
          char /*state*/, void * /*priv_data*/)
          ^
test1.c:64:9: error: parameter name omitted
test1.c: In function ‘main’:
test1.c:72:23: error: ‘program_invocation_short_name’ undeclared (first 
use in this function)
          pdserv_create(program_invocation_short_name, "1.0", gettime);
                        ^
test1.c:72:23: note: each undeclared identifier is reported only once 
for each function it appears in




---
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist aktiv.
http://www.avast.com




More information about the Etherlab-users mailing list