void help(void) {
     printf("%s",
     PROGRAM_NAME " - " PROGRAM_DESCRIPTION "\r\n"
     "usage: " PROGRAM_NAME " [options] [file1 file2] ...\r\n"
     "options:\r\n"
     "  [/?|-[-]?|-[-]h[elp]|/h[elp]] this help.\r\n"
     "  [/version|-[-]version] gives version number.\r\n"
     "  [/license|-[-]license] gives license.\r\n"
     "  file1 file to compare with.\r\n"
     "  file2 file to compare file1 against.\r\n"
     "if both files are equal of content, then ERRORLEVEL is 0 else 
ERRORLEVEL is 1.\r\n"
     );
}


# 18 "compare.cpp"
void help(void) {
  printf("%s",
  "compare" " - " PROGRAM_DESCRIPTION "\r\n"
  "usage: " "compare" " [options] [file1 file2] ...\r\n"
  "options:\r\n"
  "  [/?|-[-]?|-[-]h[elp]|/h[elp]] this help.\r\n"
  "  [/version|-[-]version] gives version number.\r\n"
  "  [/license|-[-]license] gives license.\r\n"
  "  file1 file to compare with.\r\n"
  "  file2 file to compare file1 against.\r\n"
  "if both files are equal of content, then ERRORLEVEL is 0 else 
ERRORLEVEL is 1.\r\n"
  );
}

Sat 08/13/2016 
8:32:05.20|C:\Users\Kristina\Desktop\prj\compare\1.0\win|>g++ -static 
-save-temps -g -Xlinker compare.map  -lstdc++ -std=c++11 -o 32\compar
e.exe compare.cpp
compare.cpp: In function 'void help()':
compare.cpp:20:18: error: expected ')' before 'PROGRAM_DESCRIPTION'
   PROGRAM_NAME " - " PROGRAM_DESCRIPTION "\r\n"
                   ^~~~~~~~~~~~~~~~~~~

Sat 08/13/2016 
8:46:33.27|C:\Users\Kristina\Desktop\prj\compare\1.0\win|>g++ -v
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 20160715 (experimental) (GCC)


------------------------------------------------------------------------------
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

Reply via email to