Compiling in Windows using MSYS environment

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
rjaeger
Posts: 102
Joined: Thu Aug 31, 2006 9:57 pm
Location: UC Davis

Compiling in Windows using MSYS environment

Post by rjaeger »

I'm trying to compile my CVS checkout from last night and I'm running into problems during the compile process. The error is definitely tcl related but I don't know how to fix it.

Here's the output from make:

Code: Select all

In file included from commands.cpp:42:
C:/msys/home/Robbie/src/OpenSees-Berk/SRC/OPS_Globals.h:54:1: warning: "_stdcall" redefined
<built-in>:81:1: warning: this is the location of the previous definition
commands.cpp: In function `int g3AppInit(Tcl_Interp*)':
commands.cpp:422: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:422: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:424: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:424: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:426: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:426: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:428: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:428: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:430: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:430: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:432: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:432: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:434: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:434: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:436: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:436: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:438: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:438: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:440: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:440: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:442: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:442: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:444: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:444: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:446: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:446: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:448: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:448: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:450: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:450: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:452: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:452: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:454: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:454: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:456: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:456: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:458: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:458: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:460: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:460: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:462: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:462: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:464: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:464: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:466: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:466: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:468: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:468: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:470: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:470: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:472: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:472: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:474: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:474: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:476: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:476: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:478: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:478: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:480: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:480: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:482: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:482: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:484: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:484: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:486: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:486: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:488: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:488: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:490: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:490: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:492: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:492: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:494: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:494: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:496: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)'
commands.cpp:496: error:   initializing argument 3 of `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
commands.cpp:498: error: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' t
I have compiled and installed tcl/tk 8.4.14 to /opt/tcl (also tried /usr/local). The version of GCC that I have is 3.4.2 (mingw).

I am using the UCD Makefile and Makefile.def that I edited to fit my environment.

Any help is appreciated. Thanks.
-Robbie
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

you need to add -D_TCL84 to the C++ flags line, that Makefile.def was obviously created
pre tcl8.4.x
rjaeger
Posts: 102
Joined: Thu Aug 31, 2006 9:57 pm
Location: UC Davis

Post by rjaeger »

Thank you Frank. That did allow me to get further in the compiling process but I'm running into problems with the required libraries libX11 and libGL. This confuses me a little bit since opensees is a console app. Either way, I'll keep trying.

Thanks again for all of your help.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

yes it is a console app, but it does allow you to display things like xy plots and 3d rendereings of your structure .. .. you can turn off graphics totall by setting/adding GRAPHICS = NONE to the Makefile.def
rjaeger
Posts: 102
Joined: Thu Aug 31, 2006 9:57 pm
Location: UC Davis

Post by rjaeger »

it makes sense now...thank you for the clarification.
fmk wrote:yes it is a console app, but it does allow you to display things like xy plots and 3d rendereings of your structure .. .. you can turn off graphics totall by setting/adding GRAPHICS = NONE to the Makefile.def
Post Reply