Ιnterpeter displays 32bit when compiled with gcc

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
ChrisS
Posts: 14
Joined: Sun Aug 09, 2015 1:16 pm

Ιnterpeter displays 32bit when compiled with gcc

Post by ChrisS »

Dear moderators, my apologies if I'm posting in wrong section.
When OpenSees is compiled with 64 bit gcc (Linux or Cygwin) the initial message of the tcl interpreter indicates that the architecture is 32bit. The bug, though insubstantial, caused me great frustration, as I am a Linux novice.

As Theodore has pointed out (https://tedfem.wordpress.com/2017/01/30 ... -opensees/) it is a macro - compiler issue.
Please consider changing lines 33~37 in file OPS_Globals.h with the following:

#if defined(_WIN64) || defined(__x86_64)
#define WIN_ARCH "64-Bit"
#else
#define WIN_ARCH "32-Bit"
#endif

I have checked both Linux and Cygwin. Any additional compiler definition, you see fit, could be appended with an or (||) at the end of line 33.
Note: As OPS_Globals.h comments, the complete project should be recompiled
Post Reply