Connecting Tech Pros Worldwide Forums | Help | Site Map

error while installing

Newbie
 
Join Date: Sep 2007
Posts: 6
#1: Jun 9 '09
hi all,

i am getting an error when installing a software.

source='zm.cpp' object='zm.o' libtool=no \
depfile='.deps/zm.Po' tmpdepfile='.deps/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
File Type: zip clocale.zip (1.3 KB, 3 views)

Needs Regular Fix
 
Join Date: Jul 2008
Posts: 385
#2: Jun 9 '09

re: error while installing


There is little sense in attaching standard c++ headers. Anyway the first error was hit in /usr/include/locale.h:125
Newbie
 
Join Date: Sep 2007
Posts: 6
#3: Jun 9 '09

re: error while installing


Quote:

Originally Posted by newb16 View Post

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
http://sourceforge.net/projects/sharc/

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?
Moderator
 
Join Date: Mar 2007
Location: North Bend Washington USA
Posts: 5,375
#4: Jun 9 '09

re: error while installing


It looks like it is zm.cpp.
Reply