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]

[Bug c++/56959] New: unable to find string literal operator âoperator""


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56959

             Bug #: 56959
           Summary: unable to find string literal operator âoperator""
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: daffra.claudio@gmail.com


claudio@ubuntu64:~/chtulu linux$ gcc --version
gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2

#define strCopyRight   "chtulu"\
"\nprogramming language"\
"\n[2013] LGPL (2) : daffra.claudio@gmail.com"

....

 const char *s = "\n"\
 strCopyRight\
 "\n\nUsage :\n"\
 "\n"strProjectName" : <input file> "\
 "\n\noptions\n"\
 "\nhelp file    : -h "\
 "\ninput file   : -i <input  file name>"\
 "\noutput file  : -o <output file name>"\
 "\n"; 

main.c: In function âvoid HelpFile()â:
main.c:34:2: error: unable to find string literal operator âoperator""
strProjectNameâ
-rwxrwxr-x 1 claudio claudio 28532 apr 14 22:47 ch\r
claudio@ubuntu64:~/chtulu linux$

this piece of code (up) compile with error , as you see

this ohter (down) piece of code compile without error :
i must separate strProjectName with space before and after
n.b. same version of gcc in windows tdm64-gcc-4.7.1-3 work good

 const char *s = "\n"\
 strCopyRight\
 "\n\nUsage :\n"\
 "\n" strProjectName " : <input file> "\
 "\n\noptions\n"\
 "\nhelp file    : -h "\
 "\ninput file   : -i <input  file name>"\
 "\noutput file  : -o <output file name>"\
 "\n";

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