"Main.cpp:428:5: error" latest SVN (ArchLinux)

Linux geeks and Mac OS hipsters unite! A board for discussion of Supermodel on non-Windows platforms.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

"Main.cpp:428:5: error" latest SVN (ArchLinux)

Postby zuppa_di_pesce » Sat Sep 19, 2020 5:19 am

r828 compiles fine.

Cannot compile latest svn (r829) due to:

Code: Select all
Src/OSD/SDL/Main.cpp: In function ‘void Screenshot()’:
Src/OSD/SDL/Main.cpp:428:5: error: ‘string’ was not declared in this scope; did you mean ‘std::string’?
  428 |     string info = "Screenshot created: ";
      |     ^~~~~~
      |     std::string
In file included from /usr/include/c++/10.2.0/iosfwd:39,
                 from /usr/include/c++/10.2.0/memory:74,
                 from Src/OSD/SDL/Main.cpp:56:
/usr/include/c++/10.2.0/bits/stringfwd.h:79:33: note: ‘std::string’ declared here
   79 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
Generating dependencies: Src/Inputs/InputSystem.cpp -> obj/InputSystem.d
Compiling              : Src/Inputs/InputSystem.cpp -> obj/InputSystem.o
Src/OSD/SDL/Main.cpp:434:5: error: ‘info’ was not declared in this scope
  434 |     info += file;
      |     ^~~~



Code: Select all
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++,d --with-isl --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-install-libiberty --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-libunwind-exceptions --disable-werror gdc_include_dir=/usr/include/dlang/gdc
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.0 (GCC)
"Did you surfcast that fish?" - "Kinda... But... That wasn't a fish... It was a GNU!"
User avatar
zuppa_di_pesce
 
Posts: 120
Joined: Fri Jun 12, 2020 1:51 pm
Location: surfCASTING on a beach

Re: "Main.cpp:428:5: error" latest SVN (ArchLinux)

Postby Ian » Sat Sep 19, 2020 7:46 am

try 830
Ian
 
Posts: 2044
Joined: Tue Feb 23, 2016 9:23 am

Re: "Main.cpp:428:5: error" latest SVN (ArchLinux)

Postby zuppa_di_pesce » Sat Sep 19, 2020 4:37 pm

Ian wrote:try 830

fixed! 8-)

Thank you guys!!! ;)
"Did you surfcast that fish?" - "Kinda... But... That wasn't a fish... It was a GNU!"
User avatar
zuppa_di_pesce
 
Posts: 120
Joined: Fri Jun 12, 2020 1:51 pm
Location: surfCASTING on a beach

Re: "Main.cpp:428:5: error" latest SVN (ArchLinux)

Postby Spindizzi » Sun Sep 20, 2020 1:29 am

I only see this message now, thanks Ian
Spindizzi
 
Posts: 196
Joined: Thu Nov 17, 2016 8:55 am
Location: France


Return to Alternative Fashion

Who is online

Users browsing this forum: No registered users and 0 guests

cron