Re: [Dev-C++] Problems with DEV-C++ version 4.9.9.2 and MinGW compiler version GNU 4.4.0.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Per W. <pw...@ia...> - 2009-09-03 05:59:59
|
Seems to be a problem with the MinGW installation. If your MinGW installation doesn't allow you to build your source from the command line, then the Dev-C++ IDE will also have problems. That your source code file only has 10 lines is irrelevant. If you look closer at the error messages, they not only mention line numbers, but also the corresponding source file. The recursively included files most definitely have more than 10 lines... /pwm On Wed, 2 Sep 2009, Hugo Barona wrote: > I am working with DEV-C++ version 4.9.9.2 and MinGW compiler version GNU 4.4.0. > I downloaded the following files: > binutils-2.19.1-mingw32-bin.tar.gz > w32api-3.13-mingw32-dev.tar.gz > mingwrt-3.16-mingw32-dev.tar.gz > mingwrt-3.16-mingw32-dll.tar.gz > gmp-4.2.4-mingw32-dll.tar.gz > libiconv-1.13-mingw32-dll-2.tar.gz > mpfr-2.4.1-mingw32-dll.tar.gz > pthreads-w32-2.8.0-mingw32-dll.tar.gz > gcc-core-4.4.0-mingw32-bin.tar.gz > gcc-core-4.4.0-mingw32-dll.tar.gz > gcc-c++-4.4.0-mingw32-bin.tar.gz > gcc-c++-4.4.0-mingw32-dll.tar.gz > mingw32-make-3.81-20080326-3.tar.gz > > And I installed the decompressed files into Dev-C++ directory to have a C++ enviroment > > To test the enviroment and the compiler, maker and linker, I run the following source code that was write in a file with name: > > No_Bytes.cpp: > > #include <iostream> > > using namespace std; > > int main() > { > return 0; > } > Only 10 lines of source code > > And the compiler gave me the following messages: > > Compilador: GNU 4.4.0 > Building Makefile: "C:\Dev-C++\Makefile.win" > Ejecutando (executing) make... > mingw32-make -f "C:\Dev-C++\Makefile.win" all > g++.exe -c No_Bytes.cpp -o No_Bytes.o -ansi -traditional-cpp -fexceptions -fmessage-length=0In file included from > > e:\dev-cpp\bin\../lib/gcc/mingw32/4.4.0/include/c++/bits/postypes.h:42, > from e:\dev-cpp\bin\../lib/gcc/mingw32/4.4.0/include/c++/iosfwd:42, > from e:\dev-cpp\bin\../lib/gcc/mingw32/4.4.0/include/c++/ios:39, > from e:\dev-cpp\bin\../lib/gcc/mingw32/4.4.0/include/c++/ostream:40, > from e:\dev-cpp\bin\../lib/gcc/mingw32/4.4.0/include/c++/iostream:40, > from No_Bytes.cpp:2: > e:\dev-cpp\bin\../lib/gcc/mingw32/4.4.0/include/c++/cwchar:159: error: '::swprintf' has not been declared > e:\dev-cpp\bin\../lib/gcc/mingw32/4.4.0/include/c++/cwchar:166: error: '::vswprintf' has not been declaredmingw32-make: *** > > [No_Bytes.o] Error 1Ejecución Terminada (execution ended) > > The compiler gave me other messages: > line= 42 > file: e:\dev-cpp\lib\gcc\mingw32\4.4.0\include\c++\bits\postypes.h:42, from e:\dev-cpp\lib\gcc\mingw32\4.4.0\include\c++\iosfwd > Message: In file included from e:\dev-cpp\bin\../lib/gcc/mingw32/4.4.0/include/c++/bits/postypes.h:42, from > > e:\dev-cpp\bin\../lib/gcc/mingw32/4.4.0/include/c++/iosfwd > > line= 39 > file: > file: e:\dev-cpp\lib\gcc\mingw32\4.4.0\include\c++\iosfwd:42, from e:\dev-cpp\lib\gcc\mingw32\4.4.0\include\c++\ios > Message: from e:\dev-cpp\bin\../lib/gcc/mingw32/4.4.0/include/c++/iosfwd:42, from > > e:\dev-cpp\bin\../lib/gcc/mingw32/4.4.0/include/c++/ios > > line= 40 > file: e:\dev-cpp\lib\gcc\mingw32\4.4.0\include\c++\ios:39, from e:\dev-cpp\lib\gcc\mingw32\4.4.0\include\c++\ostream > > message: from e:\dev-cpp\bin\../lib/gcc/mingw32/4.4.0/include/c++/ios:39, from > > e:\dev-cpp\bin\../lib/gcc/mingw32/4.4.0/include/c++/ostream > > line= 40 > file: e:\dev-cpp\lib\gcc\mingw32\4.4.0\include\c++\ostream:40, from e:\dev-cpp\lib\gcc\mingw32\4.4.0\include\c++\iostream > Message: from e:\dev-cpp\bin\../lib/gcc/mingw32/4.4.0/include/c++/ostream:40, from > > e:\dev-cpp\bin\../lib/gcc/mingw32/4.4.0/include/c++/iostream > > line= 2 > file: e:\dev-cpp\lib\gcc\mingw32\4.4.0\include\c++\iostream:40, from No_Bytes.cpp > Message: from e:\dev-cpp\bin\../lib/gcc/mingw32/4.4.0/include/c++/iostream:40, from No_Bytes.cpp > > line= 2 > file: C:\Dev-C++\No_Bytes.cpp > Message: from No_Bytes.cpp > > line= 159 > file: e:\dev-cpp\lib\gcc\mingw32\4.4.0\include\c++\cwchar ' > Message: ::swprintf' has not been declared > > > line= 166 > file: e:\dev-cpp\lib\gcc\mingw32\4.4.0\include\c++\cwchar ' > Message: ::vswprintf' has not been declared > > line= 166 > file: e:\dev-cpp\lib\gcc\mingw32\4.4.0\include\c++\cwchar > Message: *** [No_Bytes.o] Error 1 > > Like I told you, the original source code file only has 10 lines, BUT THE COMPILER TELL ME SOMETHING ABOU LINES: 42,39, 40,2 > > 159, AND 166. What it means? > > There is only one error, ...but I do not know why the compiler talks about functions not declared (swprintf and vswprintf. Are > > they C functions? Who call it and why? > > Hugo Barona Becerra Becerra Cabal Lemus Soto Mosquera de la Penilla > > > > ____________________________________________________________________________________ > ¡Obtén la mejor experiencia en la web! > Descarga gratis el nuevo Internet Explorer 8. > http://downloads.yahoo.com/ieak8/?l=e1 |