Hello,
first: I am a newbye!
Here's my config:
* windows xp pro
* msys 1.0.9
* win32api 3.7
* mingw runtime 3.7
* binutils 2.17
* gcc 3.2.3
If I try to compile a program (mkcls v2003) with this config I get the fo=
llowing errors:
g++ Wall W DNDEBUG O3 Wnodeprecated c general.C o general.o
general.C:34:26: sys/resource.h: No such file or directory
general.C: In function `void zufallSeed(int)':
general.C:76: `srand48' undeclared (first use this function)
general.C:76: (Each undeclared identifier is reported only once for each =
function it appears in.)
general.C: In function `double zufall01()':
general.C:87: `drand48' undeclared (first use this function)
general.C: In function `double clockSec()':
general.C:115: `RUSAGE_SELF' undeclared (first use this function)
general.C:117: aggregate `rusage rusage' has incomplete type and cannot b=
e
defined
make: *** [general.o] Error 1
I try then to install newlib 1.12 :
./configure followed by make produce nothing if run from newlib1.12.0
then I run ./configure withnewlib followed by make and make install ..=
. and I obtain the following dir:
/usr/local/i686pcmingw32
with subdirs 'include' and 'lib'. The latter contains:
libc.a, libg.a, libm.a
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
now lets move to mkclsv2
If now I run make in the mkcls dir nothing change.
In fact the libraris in /usr/local are not seen by gcc
SO I copy include and lib in /mingw .
When then I run make again I got the following errors:
g++ Wall W DNDEBUG O3 Wnodeprecated c general.C o general.o
In file included from :
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/bits/stl_algobase.h:67,
from C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/memory:=
54,
from C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/string:=
48,
from C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/bits/lo=
calefwd.h:49,
from C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/ios:48,=
from C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/ostream=
:45,
from C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/iostrea=
m:45,
from general.h:34,
from general.C:39:
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cstdlib:159: `strtold' not de=
clared
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cstdlib:174: `strtold' not de=
clared
In file included from C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/bits/lo=
cale_facets.h:63,
from C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/bits/ba=
sic_ios.h:41,
from C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/ios:51,=
from C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/ostream=
:45,
from C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/iostrea=
m:45,
from general.h:34,
from general.C:39:
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/mingw32/bits/ctype_base.h:44:=
`
_UPPER' was not declared in this scope
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/mingw32/bits/ctype_base.h:45:=
`
_LOWER' was not declared in this scope
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/mingw32/bits/ctype_base.h:46:=
`
_ALPHA' was not declared in this scope
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/mingw32/bits/ctype_base.h:47:=
`
_DIGIT' was not declared in this scope
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/mingw32/bits/ctype_base.h:48:=
`_HEX
' was not declared in this scope
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/mingw32/bits/ctype_base.h:49:=
`
_SPACE' was not declared in this scope
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/mingw32/bits/ctype_base.h:50:=
`
_BLANK' was not declared in this scope
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/mingw32/bits/ctype_base.h:50:=
`
_PUNCT' was not declared in this scope
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/mingw32/bits/ctype_base.h:50:=
`
_ALPHA' was not declared in this scope
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/mingw32/bits/ctype_base.h:50:=
`
_DIGIT' was not declared in this scope
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/mingw32/bits/ctype_base.h:51:=
`
_PUNCT' was not declared in this scope
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/mingw32/bits/ctype_base.h:51:=
`
_ALPHA' was not declared in this scope
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/mingw32/bits/ctype_base.h:51:=
`
_DIGIT' was not declared in this scope
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/mingw32/bits/ctype_base.h:52:=
`
_CONTROL' was not declared in this scope
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/mingw32/bits/ctype_base.h:53:=
`
_PUNCT' was not declared in this scope
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/mingw32/bits/ctype_base.h:54:=
`
_ALPHA' was not declared in this scope
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/mingw32/bits/ctype_base.h:54:=
`
_DIGIT' was not declared in this scope
In file included from C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/bits/lo=
cale_facets.tcc:41,
from C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/locale:=
46,
from C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/bits/os=
tream.tcc:37,
from C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/ostream=
:275,
from C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/iostrea=
m:45,
from general.h:34,
from general.C:39:
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath: In function `long doub=
le
std::acos(long double)':
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath:109: `::acosl' undeclar=
ed
(first use here)
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath: In function `long doub=
le
std::asin(long double)':
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath:127: `::asinl' undeclar=
ed
(first use here)
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath: In function `long doub=
le
std::atan(long double)':
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath:145: `::atanl' undeclar=
ed
(first use here)
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath: In function `long doub=
le
std::atan2(long double, long double)':
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath:164: `::atan2l' undecla=
red
(first use here)
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath: In function `long doub=
le
std::ceil(long double)':
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath:183: `::ceill' undeclar=
ed
(first use here)
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath: In function `long doub=
le
std::cosh(long double)':
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath:211: `::coshl' undeclar=
ed
(first use here)
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath: In function `long doub=
le
std::exp(long double)':
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath:229: `::expl' undeclare=
d
(first use here)
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath: In function `long doub=
le
std::floor(long double)':
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath:257: `::floorl' undecla=
red
(first use here)
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath: In function `long doub=
le
std::fmod(long double, long double)':
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath:276: `::fmodl' undeclar=
ed
(first use here)
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath: In function `long doub=
le
std::frexp(long double, int*)':
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath:295: `::frexpl' undecla=
red
(first use here)
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath: In function `long doub=
le
std::ldexp(long double, int)':
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath:315: `::ldexpl' undecla=
red
(first use here)
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath: In function `long doub=
le
std::log(long double)':
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath:334: `::logl' undeclare=
d
(first use here)
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath: In function `long doub=
le
std::log10(long double)':
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath:352: `::log10l' undecla=
red
(first use here)
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath: In function `long doub=
le
std::modf(long double, long double*)':
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath:376: `::modfl' undeclar=
ed
(first use here)
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath: In function `long doub=
le
std::pow(long double, long double)':
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath:410: `::powl' undeclare=
d
(first use here)
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath: In function `long doub=
le
std::sinh(long double)':
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath:451: `::sinhl' undeclar=
ed
(first use here)
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath: In function `long doub=
le
std::tan(long double)':
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath:479: `::tanl' undeclare=
d
(first use here)
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath: In function `long doub=
le
std::tanh(long double)':
C:/Minimal_Gnu/MSYS/mingw/include/c++/3.2.3/cmath:497: `::tanhl' undeclar=
ed
(first use here)
make: *** [general.o] Error 1
I have no idea what to do now ... is there a problem of libraries version=
s
I just can tell that the newlib cersion is the only one that I manage to =
compile...
Thanks in advance
Bruno
=0A=0A=0A=0AMutui =
a tassi scontati da 30 banche. Richiedi online e risparmia...Servizio gra=
tuito. http://www.mutuionline.it=0Ahttp://click.libero.it/mutuionline30ott=0A
