Re: [Dev-C++] Dev-cpp-users Digest, Vol 40, Issue 1
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Rafael O. L. <raf...@gm...> - 2009-09-03 15:33:40
|
Hyia Hugo. This kind of error is common if you don't have set the Include and Library files path (normaly, when you install the DEV-C++ without MinGW) First of all, you must set up the correct path of the Include and Library files in compiler options. To have a better view of it, try to install he standard DEV-C++ with MinGW, open it, go to "Compiler Options", "Directories", "C++ Includes". You'll shall see in the box something like: X:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include X:\Dev-Cpp\include\c++\3.4.2\backward X:\Dev-Cpp\include\c++\3.4.2\mingw32 X:\Dev-Cpp\include\c++\3.4.2\ X:\Dev-Cpp\include change the paths to the new 4.4.0 might be like: X:\Dev-Cpp\lib\gcc\mingw32\4.4.0\include X:\Dev-Cpp\include\c++\4.4.0\backward X:\Dev-Cpp\include\c++\4.4.0\mingw32 X:\Dev-Cpp\include\c++\4.4.0\ X:\Dev-Cpp\include And, as Per answear says, the other lines is because the recursive inclusion of files. If you look inside the iostream header, you'll see ohter include files that apears in the erros. Change de C++ includes will make de Dev-Cpp look at the correct libraries and includes. 2009/9/3 <dev...@li...> > Send Dev-cpp-users mailing list submissions to > dev...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > or, via email, send a message with subject or body 'help' to > dev...@li... > > You can reach the person managing the list at > dev...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Dev-cpp-users digest..." > > > Today's Topics: > > 1. Problems with DEV-C++ version 4.9.9.2 and MinGW compiler > version GNU 4.4.0. (Hugo Barona) > 2. Re: Problems with DEV-C++ version 4.9.9.2 and MinGW compiler > version GNU 4.4.0. (Per Westermark) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 2 Sep 2009 17:05:31 -0700 (PDT) > From: Hugo Barona <hb...@ya...> > Subject: [Dev-C++] Problems with DEV-C++ version 4.9.9.2 and MinGW > compiler version GNU 4.4.0. > To: dev...@li... > Message-ID: <235...@we...> > Content-Type: text/plain; charset="iso-8859-1" > > 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 > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 2 > Date: Thu, 3 Sep 2009 07:59:41 +0200 (CEST) > From: Per Westermark <pw...@ia...> > Subject: Re: [Dev-C++] Problems with DEV-C++ version 4.9.9.2 and MinGW > compiler version GNU 4.4.0. > To: Hugo Barona <hb...@ya...> > Cc: dev...@li... > Message-ID: <Pin...@ia...> > Content-Type: TEXT/PLAIN; charset=ISO-8859-1 > > 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 > > > > > ------------------------------ > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > ------------------------------ > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > End of Dev-cpp-users Digest, Vol 40, Issue 1 > ******************************************** > -- Rafael Oliveira de Lima Programador e Depurador Assembly em Arquiteturas RISC Microchip 8 bits (eca!). (famílias PIC12*, PIC14*, PIC16* e PIC18*). |