#include<stdio.h>
fprintf(STDERR, "eolconvert:ERROR: unable to open file
\"%s\" for input\r\n", "abc");
STDERR is not defined in stdio.h.
also, why does 0708's date say 7.0.0 20160609? I suspect there's a
version problem.
Fri 07/15/2016
17:26:18.94|C:\Users\Kristina\Desktop\prj\eolconvert\1.0\win|>g++ -v
-save-temps -DTEST -s -static -lstdc++ -std=c++11 -o 32\eolconvert.exe
eolconvert.cpp
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=c:/gcc-7-win32/bin/../libexec/gcc/i686-w64-mingw32/7.0.0/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: /home/cauchy/vcs/svn/gcc/trunk/configure
--prefix=/home/cauchy/native/gcc-7-win32
--with-sysroot=/home/cauchy/native/gcc-7-win32 --build=x
86_64-unknown-linux-gnu --host=i686-w64-mingw32
--target=i686-w64-mingw32 --disable-multilib --disable-nls
--disable-win32-registry --disable-gcov-tool --e
nable-checking=release --enable-languages=c,c++,fortran
--enable-fully-dynamic-string --with-arch=core2 --with-tune=generic
Thread model: win32
gcc version 7.0.0 20160609 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-D' 'TEST' '-s' '-static'
'-std=c++11' '-o' '32\eolconvert.exe' '-mtune=generic' '-march=core2'
c:/gcc-7-win32/bin/../libexec/gcc/i686-w64-mingw32/7.0.0/cc1plus.exe
-E -quiet -v -iprefix
c:\gcc-7-win32\bin\../lib/gcc/i686-w64-mingw32/7.0.0/ -isysroot
c:\gcc-7-win32\bin\../../gcc-7-win32 -U_REENTRANT -D TEST
eolconvert.cpp -mtune=generic -march=core2 -std=c++11 -fpch-preprocess
-o eolconvert.ii
ignoring duplicate directory
"c:/gcc-7-win32/lib/gcc/../../lib/gcc/i686-w64-mingw32/7.0.0/../../../../include/c++/7.0.0"
ignoring duplicate directory
"c:/gcc-7-win32/lib/gcc/../../lib/gcc/i686-w64-mingw32/7.0.0/../../../../include/c++/7.0.0/i686-w64-mingw32"
ignoring duplicate directory
"c:/gcc-7-win32/lib/gcc/../../lib/gcc/i686-w64-mingw32/7.0.0/../../../../include/c++/7.0.0/backward"
ignoring duplicate directory
"c:/gcc-7-win32/lib/gcc/../../lib/gcc/i686-w64-mingw32/7.0.0/include"
ignoring nonexistent directory
"c:\gcc-7-win32\bin\../../gcc-7-win32/home/cauchy/native/gcc-7-win32/lib/gcc/i686-w64-mingw32/7.0.0/../../../../include"
ignoring duplicate directory
"c:/gcc-7-win32/lib/gcc/../../lib/gcc/i686-w64-mingw32/7.0.0/include-fixed"
ignoring duplicate directory
"c:/gcc-7-win32/lib/gcc/../../lib/gcc/i686-w64-mingw32/7.0.0/../../../../i686-w64-mingw32/include"
ignoring nonexistent directory
"c:\gcc-7-win32\bin\../../gcc-7-win32/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
c:\gcc-7-win32\bin\../lib/gcc/i686-w64-mingw32/7.0.0/../../../../include/c++/7.0.0
c:\gcc-7-win32\bin\../lib/gcc/i686-w64-mingw32/7.0.0/../../../../include/c++/7.0.0/i686-w64-mingw32
c:\gcc-7-win32\bin\../lib/gcc/i686-w64-mingw32/7.0.0/../../../../include/c++/7.0.0/backward
c:\gcc-7-win32\bin\../lib/gcc/i686-w64-mingw32/7.0.0/include
c:\gcc-7-win32\bin\../lib/gcc/i686-w64-mingw32/7.0.0/include-fixed
c:\gcc-7-win32\bin\../lib/gcc/i686-w64-mingw32/7.0.0/../../../../i686-w64-mingw32/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-D' 'TEST' '-s' '-static'
'-std=c++11' '-o' '32\eolconvert.exe' '-mtune=generic' '-march=core2'
c:/gcc-7-win32/bin/../libexec/gcc/i686-w64-mingw32/7.0.0/cc1plus.exe
-fpreprocessed eolconvert.ii -quiet -dumpbase eolconvert.cpp
-mtune=generic -march=co
re2 -auxbase eolconvert -std=c++11 -version -o eolconvert.s
GNU C++11 (GCC) version 7.0.0 20160609 (experimental) (i686-w64-mingw32)
compiled by GNU C version 7.0.0 20160609 (experimental), GMP
version 6.1.0, MPFR version 3.1.4-p2, MPC version 1.0.3, isl version 0.15
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++11 (GCC) version 7.0.0 20160609 (experimental) (i686-w64-mingw32)
compiled by GNU C version 7.0.0 20160609 (experimental), GMP
version 6.1.0, MPFR version 3.1.4-p2, MPC version 1.0.3, isl version 0.15
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 85f4626b884448f9672ebbd3379aa3ed
eolconvert.cpp:106:146: error: explicit qualification in declaration of
'std::__cxx11::string str::str_replace(std::__cxx11::string&,
std::__cxx11::string&
, std::__cxx11::string&, size_t, bool, bool)'
std::string str::str_replace(std::string& target, std::string&
findwhat, std::string& replacewith, size_t pos=0, bool iCase=false, bool
all=true) {
^
eolconvert.cpp: In function 'int main(int, char**)':
eolconvert.cpp:191:12: error: 'STDERR' was not declared in this scope
fprintf(STDERR, "eolconvert:ERROR: unable to open file \"%s\" for
input\r\n", argv[i]);
^~~~~~
eolconvert.cpp:203:12: error: 'STDERR' was not declared in this scope
fprintf(STDERR, "eolconvert:ERROR: unable to open file \"%s\" for
output\r\n", argv[i]);
^~~~~~
also, const after a declaration errors.
eolconvert.cpp:6:33: error: expected ',' or '...' before 'const'
int compare(std::string& first const, std::string& second const, bool
iCase=false, size_t firstPos=0) const {
^~~~~
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public