[RkWard-devel] Compiling Problems

Doc linuxero at ya.com
Tue Aug 24 17:42:40 UTC 2004


I downloaded 0.2.5 and did ./configure, then make and after a while I get:

g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/kde/include 
-I/usr/lib/qt/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  
-D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W 
-Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE 
-Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security 
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  
-c -o rembedinternal.o `test -f 'rembedinternal.cpp' || echo 
'./'`rembedinternal.cpp
rembedinternal.cpp:21:24: Rinternals.h: No such file or directory
rembedinternal.cpp:22:15: R.h: No such file or directory
rembedinternal.cpp:47: error: parse error before `char'
rembedinternal.cpp:53: error: `command' was not declared in this scope
rembedinternal.cpp:54: error: parse error before `,' token
rembedinternal.cpp:58: error: syntax error before `++' token
rembedinternal.cpp:61: error: `cv' was not declared in this scope
rembedinternal.cpp:61: error: `STRSXP' was not declared in this scope
rembedinternal.cpp:61: error: `allocVector' was not declared in this scope
rembedinternal.cpp:61: error: ISO C++ forbids declaration of `PROTECT' 
with no
   type
rembedinternal.cpp:62: error: `cv' was not declared in this scope
rembedinternal.cpp:62: error: `command' was not declared in this scope
rembedinternal.cpp:62: error: `mkChar' was not declared in this scope
rembedinternal.cpp:62: error: ISO C++ forbids declaration of 
`SET_VECTOR_ELT'
   with no type
rembedinternal.cpp:62: error: initializer list being treated as compound
   expression
rembedinternal.cpp:64: error: parse error before `while'
rembedinternal.cpp:66: error: ISO C++ forbids declaration of `pr' with 
no type
rembedinternal.cpp:66: error: `cv' was not declared in this scope
rembedinternal.cpp:66: error: `maxParts' was not declared in this scope
rembedinternal.cpp:66: error: `R_ParseVector' was not declared in this scope
rembedinternal.cpp:68: error: parse error before `if'
rembedinternal.cpp:72: error: syntax error before `--' token
rembedinternal.cpp:74: error: ISO C++ forbids declaration of `UNPROTECT' 
with
   no type
rembedinternal.cpp:76: error: parse error before `if'
rembedinternal.cpp:79: error: ISO C++ forbids declaration of `exp' with 
no type
rembedinternal.cpp:79: error: `R_NilValue' was not declared in this scope
rembedinternal.cpp:80: error: parse error before `if'
rembedinternal.cpp:84: error: ISO C++ forbids declaration of `r_error' 
with no
   type
rembedinternal.cpp:84: error: redefinition of `int r_error'
rembedinternal.cpp:50: error: `int r_error' previously defined here
rembedinternal.cpp:85: error: ISO C++ forbids declaration of `exp' with 
no type
rembedinternal.cpp:85: error: redefinition of `int exp'
rembedinternal.cpp:79: error: `int exp' previously defined here
rembedinternal.cpp:85: error: `pxp' was not declared in this scope
rembedinternal.cpp:85: error: `R_GlobalEnv' was not declared in this scope
rembedinternal.cpp:85: error: `R_tryEval' was not declared in this scope
rembedinternal.cpp:86: error: syntax error before `++' token
rembedinternal.cpp:93: error: ISO C++ forbids declaration of `exp' with 
no type
rembedinternal.cpp:93: error: redefinition of `int exp'
rembedinternal.cpp:85: error: `int exp' previously defined here
rembedinternal.cpp:93: error: `R_GlobalEnv' was not declared in this scope
rembedinternal.cpp:93: error: `R_tryEval' was not declared in this scope
rembedinternal.cpp:94: error: parse error before `}' token
rembedinternal.cpp:96: error: ISO C++ forbids declaration of `UNPROTECT' 
with
   no type
rembedinternal.cpp:96: error: redefinition of `int UNPROTECT'
rembedinternal.cpp:74: error: `int UNPROTECT' previously defined here
rembedinternal.cpp:97: error: parse error before `}' token
rembedinternal.cpp:99: error: ISO C++ forbids declaration of `error' with no
   type
rembedinternal.cpp:99: error: cannot convert `bool' to `int*' in 
initialization
rembedinternal.cpp:100: error: parse error before `return'
rembedinternal.cpp: In member function `void
   REmbedInternal::runCommandInternal(const char*, bool*)':
rembedinternal.cpp:104: error: `runCommandInternalBase' undeclared 
(first use
   this function)
rembedinternal.cpp:104: error: (Each undeclared identifier is reported only
   once for each function it appears in.)
rembedinternal.cpp: In member function `char**
   REmbedInternal::getCommandAsStringVector(const char*, int*, bool*)':
rembedinternal.cpp:108: error: parse error before `;' token
rembedinternal.cpp:111: error: `runCommandInternalBase' undeclared 
(first use
   this function)
rembedinternal.cpp:111: error: `PROTECT' cannot be used as a function
rembedinternal.cpp:114: error: `SEXP' undeclared (first use this function)
rembedinternal.cpp:114: error: parse error before `;' token
rembedinternal.cpp:115: error: `strexp' undeclared (first use this function)
rembedinternal.cpp:115: error: `STRSXP' undeclared (first use this function)
rembedinternal.cpp:115: error: `coerceVector' undeclared (first use this
   function)
rembedinternal.cpp:115: error: `PROTECT' cannot be used as a function
rembedinternal.cpp:116: error: `length' undeclared (first use this function)
rembedinternal.cpp:119: error: parse error before `=' token
rembedinternal.cpp:121: error: `dummy' undeclared (first use this function)
rembedinternal.cpp:121: error: `TYPEOF' undeclared (first use this function)
rembedinternal.cpp:121: error: `CHARSXP' undeclared (first use this 
function)
rembedinternal.cpp:124: error: `STRING_PTR' undeclared (first use this
   function)
rembedinternal.cpp:127: error: `UNPROTECT' cannot be used as a function
rembedinternal.cpp:130: error: `UNPROTECT' cannot be used as a function
rembedinternal.cpp: In member function `double*
   REmbedInternal::getCommandAsRealVector(const char*, int*, bool*)':
rembedinternal.cpp:140: error: parse error before `;' token
rembedinternal.cpp:143: error: `runCommandInternalBase' undeclared 
(first use
   this function)
rembedinternal.cpp:143: error: `PROTECT' cannot be used as a function
rembedinternal.cpp:146: error: `SEXP' undeclared (first use this function)
rembedinternal.cpp:146: error: parse error before `;' token
rembedinternal.cpp:147: error: `realexp' undeclared (first use this 
function)
rembedinternal.cpp:147: error: `REALSXP' undeclared (first use this 
function)
rembedinternal.cpp:147: error: `coerceVector' undeclared (first use this
   function)
rembedinternal.cpp:147: error: `PROTECT' cannot be used as a function
rembedinternal.cpp:148: error: `length' undeclared (first use this function)
rembedinternal.cpp:151: error: `REAL' undeclared (first use this function)
rembedinternal.cpp:153: error: `UNPROTECT' cannot be used as a function
rembedinternal.cpp:156: error: `UNPROTECT' cannot be used as a function
rembedinternal.cpp: In member function `int*
   REmbedInternal::getCommandAsIntVector(const char*, int*, bool*)':
rembedinternal.cpp:166: error: parse error before `;' token
rembedinternal.cpp:169: error: `runCommandInternalBase' undeclared 
(first use
   this function)
rembedinternal.cpp:169: error: `PROTECT' cannot be used as a function
rembedinternal.cpp:172: error: `SEXP' undeclared (first use this function)
rembedinternal.cpp:172: error: parse error before `;' token
rembedinternal.cpp:173: error: `intexp' undeclared (first use this function)
rembedinternal.cpp:173: error: `INTSXP' undeclared (first use this function)
rembedinternal.cpp:173: error: `coerceVector' undeclared (first use this
   function)
rembedinternal.cpp:173: error: `PROTECT' cannot be used as a function
rembedinternal.cpp:174: error: `length' undeclared (first use this function)
rembedinternal.cpp:177: error: `INTEGER' undeclared (first use this 
function)
rembedinternal.cpp:179: error: `UNPROTECT' cannot be used as a function
rembedinternal.cpp:182: error: `UNPROTECT' cannot be used as a function
rembedinternal.cpp: At global scope:
rembedinternal.cpp:191: error: parse error before `}' token
make[3]: *** [rembedinternal.o] Error 1
make[3]: Leaving directory `/home/doc/rkward-0.2.5/rkward/rbackend'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/doc/rkward-0.2.5/rkward'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/doc/rkward-0.2.5'
make: *** [all] Error 2

help please!




More information about the Rkward-devel mailing list