Skip to content

Conversation

@surrealegg
Copy link

This will solve the compile error note: forward declaration of ‘struct tm’.

/usr/include/wchar.h:83:8: note: forward declaration of ‘struct tm’
   83 | struct tm;
      |        ^~
../src/greenworks_zip.cc:118:29: error: invalid use of incomplete type ‘struct tm’
  118 |     tmzip->tm_min = filedate->tm_min;
      |                             ^~
/usr/include/wchar.h:83:8: note: forward declaration of ‘struct tm’
   83 | struct tm;
      |        ^~
../src/greenworks_zip.cc:119:30: error: invalid use of incomplete type ‘struct tm’
  119 |     tmzip->tm_hour = filedate->tm_hour;
      |                              ^~
/usr/include/wchar.h:83:8: note: forward declaration of ‘struct tm’
   83 | struct tm;
      |        ^~
../src/greenworks_zip.cc:120:30: error: invalid use of incomplete type ‘struct tm’
  120 |     tmzip->tm_mday = filedate->tm_mday;
      |                              ^~
/usr/include/wchar.h:83:8: note: forward declaration of ‘struct tm’
   83 | struct tm;
      |        ^~
../src/greenworks_zip.cc:121:29: error: invalid use of incomplete type ‘struct tm’
  121 |     tmzip->tm_mon = filedate->tm_mon;
      |                             ^~
/usr/include/wchar.h:83:8: note: forward declaration of ‘struct tm’
   83 | struct tm;
      |        ^~
../src/greenworks_zip.cc:122:30: error: invalid use of incomplete type ‘struct tm’
  122 |     tmzip->tm_year = filedate->tm_year;
      |                              ^~
/usr/include/wchar.h:83:8: note: forward declaration of ‘struct tm’
   83 | struct tm;

This will solve the compile error note: forward declaration of ‘struct tm’.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant