This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ada/9349: g++ static const char [] error


>Number:         9349
>Category:       ada
>Synopsis:       g++ static const char [] error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 17 02:56:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     G.Di Marco
>Release:        gcc 3.2.1
>Organization:
>Environment:
aix 5.1.0
>Description:
ld: 0711-317 ERROR: Undefined symbol: myClass::myStaticConst
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
>How-To-Repeat:
#include <iostream>

class myClass {
public:
   static const char myStaticConst[]="myStaticConstValue";
};

main()
{
        std::cout << myClass::myStaticConst << std::endl;
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]