Title: | C++ |
Notice: | Read 1.* and use keywords (e.g. SHOW KEY/FULL KIT_CXX_VAX_VMS) |
Moderator: | DECCXX::AMARTIN |
Created: | Fri Nov 06 1987 |
Last Modified: | Thu Jun 05 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 3604 |
Total number of notes: | 18242 |
Hello, env: D-Unix V3.2G, cxx V5.5 One of our customer has the following warning message: Warning: theVerbModuleSMTest defined as GLOBAL BSS but is defined in a shared lib as a GLOBAL OBJECT theVerbModuleSMTest is an instance of one of our classes defined as a global variable in one of our shared libraries. We haven't seen this message so far and I haven't received any additional info yet from our customer. Is it a well known message and would it be possible to get some more info on the meaning of this warning ? Thanks and regards, Marc.
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
3428.1 | one thing to look at... | DECC::J_WARD | Tue Feb 04 1997 10:25 | 28 | |
When I see this error message it means that I'm trying to link with both an archive (non-shared) version of a library and a shared version of the same library. For example if you explicitly link with the archive libcxx.a you get the errors because the cxx driver already links with the shared version. You can probably look at the linker (ld) documentation for more info. cosf.zko.dec.com> cxx -all t.cxx $aosf_bld/libcxx.a ld: Warning: __Complex_Error_Mutex defined as GLOBAL BSS but is defined in a shared lib as a GLOBAL OBJECT Warning: __Message_Mutex defined as GLOBAL BSS but is defined in a shared lib as a GLOBAL OBJECT Warning: __cxxl_lock_array defined as GLOBAL BSS but is defined in a shared lib as a GLOBAL OBJECT Warning: __pcout defined as GLOBAL BSS but is defined in a shared lib as a GLOBAL OBJECT Warning: __pcin defined as GLOBAL BSS but is defined in a shared lib as a GLOBAL OBJECT Warning: __pcerr defined as GLOBAL BSS but is defined in a shared lib as a GLOBAL OBJECT Warning: __pclog defined as GLOBAL BSS but is defined in a shared lib as a GLOBAL OBJECT | |||||
3428.2 | Thanks | TAEC::FLAUW | Marc Flauw, TeMIP Technical Office, VBO | Tue Feb 04 1997 11:50 | 8 |
Thanks, I have reproduced it that way. Another way I found was to redeclare the same variable both in my shared lib and in one of the source file of the executable. Best regards, Marc. |