Mail Archives: djgpp/1999/01/20/01:35:43
I'm trying your C++ but don't understand how to use the string class.
Could someone over there help me, please? Thank you very much and my
compliments for the quality of your products!
Paolo
Cortelli cortelli AT acronet DOT it
LIST OF SETS
------------
DJGPP=D:\DJGPP\DJGPP.ENV
TMPDIR=E:
SOURCE OF PROVA.CPP
-------------------
#include <iostream.h>
#include <string.h>
void main()
{
string dd("1212");
cout << dd << endl;
}
OUTPUT FROM COMPILATION
-----------------------
Reading specs from d:/djgpp/lib/gcc-lib/djgpp/2.81/specs
gcc version 2.8.1
d:/djgpp/lib/gcc-lib/djgpp/2.81/cpp.exe -lang-c++ -v -undef
-D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=8 -Dunix -Di386
-DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=1 -D__unix__ -D__i386__
-D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=1 -D__unix
-D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=1 -D__EXCEPTIONS
prova.cpp E:\ccaa3mnh
GNU CPP version 2.8.1 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
d:/djgpp/lang/cxx
d:/djgpp/lib/gcc-lib/djgpp/2.81/include
d:/djgpp/include
End of search list.
d:/djgpp/lib/gcc-lib/djgpp/2.81/cc1plus.exe E:\ccaa3mnh -quiet
-dumpbase prova.cc -version -o E:\ccba3mnh
GNU C++ version 2.8.1 (djgpp) compiled by GNU C version 2.8.1.
d:/djgpp/lang/cxx/std/straits.h: In function `static char *
string_char_traits<char>::move(char *, const char *, long unsigned
int)':
In file included from d:/djgpp/lang/cxx/std/bastring.h:36,
from d:/djgpp/lang/cxx/string.h:6,
from prova.cpp:2:
d:/djgpp/lang/cxx/std/straits.h:129: warning: implicit declaration of
function `int memmove(...)'
d:/djgpp/lang/cxx/std/straits.h: In function `static char *
string_char_traits<char>::set(char *, const char &, long unsigned int)':
d:/djgpp/lang/cxx/std/straits.h:131: warning: implicit declaration of
function `int memset(...)'
d:/djgpp/bin/as.exe -o prova.o E:\ccba3mnh
- Raw text -