compiling c++ programs in ubuntu g++

Feb 8, 2013 at 8:25am
hi every one i am new to c++ programming. i got an error as shown below


"root@ubuntu:/home/ramreddy/Desktop/tts/speech_tools# make
Making in directory ./siod ...
gcc -c -fno-implicit-templates -O3 -Wall -DSUPPORT_EDITLINE -I../include slib.cc
In file included from ../include/EST_String.h:50:0,
from ../include/siod.h:17,
from slib.cc:88:
../include/EST_iostream.h:53:25: fatal error: iostream.h: No such file or directory
compilation terminated."

please help me is there any lib file is missing or any other

thanks in advance
Feb 8, 2013 at 9:09am
Working as root?

iostream.h is deprecated. It's part of the old I/O Stream library and was replaced by the C++98 standard.

The replacement is
 
#include <iostream> 
Feb 8, 2013 at 10:56am
hi,
thanks for the response. initially i got an error as

../../include/../base_class/EST_TSimpleMatrix.cc:54:5: error: ‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from /usr/include/string.h:642:0,
from /usr/include/c++/4.7/cstring:44,
from ../../include/EST_String.h:42,
from ../../include/EST_error.h:182,
from ../../include/../base_class/EST_TMatrix.cc:48,
from matrix_i_t.cc:50:
/usr/include/i386-linux-gnu/bits/string3.h:49:1: note: ‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
make[2]: *** [matrix_i_t.o] Error 1
make[1]: *** [inst_tmpl] Error 2
make: *** [base_class] Error 2

please help me
thanks.
Feb 8, 2013 at 11:48am
Include <cstring> before using memcpy.
Feb 27, 2013 at 11:18am
thank you it worked
Topic archived. No new replies allowed.