Hi
I just downloaded the stable.tar.gz and when I try to compile it under linux (suse 9.3) I get these errors. Can you help me?
Andre
TclDatabaseCommands.cpp: In function `int TclAddDatabase(void*, Tcl_Interp*,
int, char**, Domain&, FEM_ObjectBroker&)':
TclDatabaseCommands.cpp:91: error: invalid conversion from `int (*)(void*,
Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
char**)'
TclDatabaseCommands.cpp:93: error: invalid conversion from `int (*)(void*,
Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
char**)'
make[2]: *** [TclDatabaseCommands.o] Error 1
make[1]: *** [all] Error 2
Makefile.lib:18: warning: overriding commands for target `.c.o'
../../Makefile.def:285: warning: ignoring old commands for target `.c.o'
commands.cpp: In function `int g3AppInit(Tcl_Interp*)':
commands.cpp:302: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:304: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:306: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:308: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:310: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:312: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:314: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:316: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:318: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:320: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:322: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:324: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:326: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:328: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:330: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:332: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:334: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:336: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:338: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:340: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:342: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:344: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:346: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:348: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:350: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:352: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:354: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:356: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:358: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:360: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:362: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:364: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:366: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:370: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:372: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:376: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:378: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:380: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:382: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:384: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp: In function `int specifySOE(void*, Tcl_Interp*, int, char**)':
commands.cpp warning: unused variable `double thresh'
commands.cpp warning: unused variable `int result'
commands.cpp warning: unused variable `int result'
make[1]: *** [commands.o] Error 1
myCommands.cpp: In function `int myCommands(Tcl_Interp*)':
myCommands.cpp:57: error: invalid conversion from `int (*)(void*, Tcl_Interp*,
int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
make[1]: *** [myCommands.o] Error 1
make: *** [all] Error 2
compile error in linux
Moderators: silvia, selimgunay, Moderators
compile error in linux
André
Hi again... I have one other problem
First, I don't have the libGL.a but have the libGL.so... do you know if it works?
Then I now get a big output of errors, which I am only sending the end.
I suspect is related to the graphics library.
/usr/include/tkDecls.h error: type specifier omitted for parameter `
Pixmap'
/usr/include/tkDecls.h error: syntax error before `)' token
/usr/include/tkDecls.h error: `Display' was not declared in this scope
/usr/include/tkDecls.h error: `display' was not declared in this scope
/usr/include/tkDecls.h error: syntax error before `)' token
/usr/include/tkDecls.h error: type specifier omitted for parameter `
Drawable'
/usr/include/tkDecls.h error: syntax error before `,' token
make[1]: *** [myCommands.o] Error 1
make[1]: Leaving directory `/home/andre/OpenSees/SRC/modelbuilder/tcl'
make: *** [all] Error 2
First, I don't have the libGL.a but have the libGL.so... do you know if it works?
Then I now get a big output of errors, which I am only sending the end.
I suspect is related to the graphics library.
/usr/include/tkDecls.h error: type specifier omitted for parameter `
Pixmap'
/usr/include/tkDecls.h error: syntax error before `)' token
/usr/include/tkDecls.h error: `Display' was not declared in this scope
/usr/include/tkDecls.h error: `display' was not declared in this scope
/usr/include/tkDecls.h error: syntax error before `)' token
/usr/include/tkDecls.h error: type specifier omitted for parameter `
Drawable'
/usr/include/tkDecls.h error: syntax error before `,' token
make[1]: *** [myCommands.o] Error 1
make[1]: Leaving directory `/home/andre/OpenSees/SRC/modelbuilder/tcl'
make: *** [all] Error 2
André