#8 Fileproc.cpp can not compile on MSYS2

Closed
opened 3 years ago by scuti · 1 comments
scuti commented 3 years ago
source/Fileproc.cpp: In function ‘int Saverestoredfile(int)’:
source/Fileproc.cpp:384:13: error: aggregate ‘Saverestoredfile(int)::stat fileAttributes’ has incomplete type ad cannot be defined
 struct stat fileAttributes;
             ^
source/Fileproc.cpp:385:40: error: invalid use of incomplete type ‘struct Saverestoredfile(int)::stat’
 if( stat(hfile.c_str(), &fileAttributes) != 0 ) {
                                        ^
source/Fileproc.cpp:384:8: note: forward declaration of ‘struct Saverestoredfile(int)::stat’
 struct stat fileAttributes;
source/Fileproc.cpp: In function ‘int Saverestoredfile(int)’: source/Fileproc.cpp:384:13: error: aggregate ‘Saverestoredfile(int)::stat fileAttributes’ has incomplete type ad cannot be defined struct stat fileAttributes; ^ source/Fileproc.cpp:385:40: error: invalid use of incomplete type ‘struct Saverestoredfile(int)::stat’ if( stat(hfile.c_str(), &fileAttributes) != 0 ) { ^ source/Fileproc.cpp:384:8: note: forward declaration of ‘struct Saverestoredfile(int)::stat’ struct stat fileAttributes;
scuti added the
bug
label 3 years ago
scuti commented 3 years ago
Owner
https://git.teknik.io/scuti/paperback-cli/commit/b846bd342c7b836d52b4062da920a3100117f4c8
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
Cancel
Save
There is no content yet.