error while installing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • calvinLYP
    New Member
    • Sep 2007
    • 6

    error while installing

    hi all,

    i am getting an error when installing a software.

    source='zm.cpp' object='zm.o' libtool=no \
    depfile='.deps/zm.Po' tmpdepfile='.de ps/zm.TPo' \
    depmode=gcc3 /bin/bash ../conftools/depcomp \
    g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall -c -o zm.o `test -f 'zm.cpp' || echo './'`zm.cpp
    In file included from /usr/include/c++/4.3/clocale:48,
    from /usr/include/c++/4.3/i486-linux-gnu/bits/c++locale.h:47,
    from /usr/include/c++/4.3/bits/localefwd.h:47,
    from /usr/include/c++/4.3/string:50,
    from ./serial.h:60,
    from zm.cpp:39:
    /usr/include/locale.h:125: error: expected unqualified-id before ‘throw’
    /usr/include/locale.h:125: error: expected initializer before ‘throw’
    In file included from /usr/include/c++/4.3/i486-linux-gnu/bits/c++locale.h:47,
    from /usr/include/c++/4.3/bits/localefwd.h:47,
    from /usr/include/c++/4.3/string:50,
    from ./serial.h:60,
    from zm.cpp:39:
    /usr/include/c++/4.3/clocale:60: error: ‘::setlocale’ has not been declared
    In file included from zm.cpp:39:

    is there anyway i can solve the problem for
    "/usr/include/c++/4.3/clocale:60: error: ‘::setlocale’ has not been declared"

    pls advise.
    Attached Files
  • newb16
    Contributor
    • Jul 2008
    • 687

    #2
    There is little sense in attaching standard c++ headers. Anyway the first error was hit in /usr/include/locale.h:125

    Comment

    • calvinLYP
      New Member
      • Sep 2007
      • 6

      #3
      Originally posted by newb16
      There is little sense in attaching standard c++ headers. Anyway the first error was hit in /usr/include/locale.h:125
      sorry for me being a newbie for c++.

      the software i am using is sharc. it can download from
      Download Sharc for free. Sharc is used to download data from locally and remotely connected GPS receivers. It currently supports Several different receiver types


      however the cpp of some of the files of the sharc was being modified by my previous research colleague, and he left me without any documentation, thus i was to try to re-installed his version of sharc, which it appear to have the error as stated in my first post.


      and you mention the first error was hit in /usr/include/locale.h:125 but i do not know how do i check which cpp is using the locale.h?

      Comment

      • weaknessforcats
        Recognized Expert Expert
        • Mar 2007
        • 9214

        #4
        It looks like it is zm.cpp.

        Comment

        Working...