Monday, October 3, 2016 5:00AM to 11:00AM (UTC) Schedouled down time to change site domain

Message on thread MinGW compiler version 4.4.0

MinGW compiler version 4.4.0 (2009-09-03 10:09, hbbco, #45678)

I am working with DEV-C++ version and MinGW compiler version GNU 4.4.0.
I downloaded the following files:

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++\"
Ejecutando (executing) make...
mingw32-make -f "C:\Dev-C++\" 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: 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?

Reply to #45678×

You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login


MinGW compiler version 4.4.0 (2009-09-03 10:09, hbbco, #45678)