*/}}

#23 Missing ; when running make

オープン
3 日 前elblue によって開かれました · 0 コメント
elblue3 日 前 にコメントしました

When running make there looks like there is a missing ; right before line 2236:

> make
[ 10%] Building C object CMakeFiles/OurPaint.dir/BuildResources/data_splash.c.o
[ 20%] Building C object CMakeFiles/OurPaint.dir/BuildResources/data_splash_highdpi.c.o
[ 30%] Building C object CMakeFiles/OurPaint.dir/ournodes.c.o
[ 40%] Building C object CMakeFiles/OurPaint.dir/ouroperations.c.o
~/OurPaint/ouroperations.c: In function ‘our_RenderThumbnail’:
~/OurPaint/ouroperations.c:2236:5: error: expected ‘;’ before ‘png_set_IHDR’
 2236 |     png_set_IHDR(png_ptr, info_ptr,use_w,use_h,8,PNG_COLOR_TYPE_RGBA,PNG_INTERLACE_NONE,PNG_COMPRESSION_TYPE_BASE,PNG_FILTER_TYPE_BASE);
      |     ^~~~~~~~~~~~
make[2]: *** [CMakeFiles/OurPaint.dir/build.make:118: CMakeFiles/OurPaint.dir/ouroperations.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/OurPaint.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

I was able to resolve the issue by adding a ; to the line before 2236 in ouroperations.c before trying again.

When running make there looks like there is a missing ; right before line 2236: ``` > make [ 10%] Building C object CMakeFiles/OurPaint.dir/BuildResources/data_splash.c.o [ 20%] Building C object CMakeFiles/OurPaint.dir/BuildResources/data_splash_highdpi.c.o [ 30%] Building C object CMakeFiles/OurPaint.dir/ournodes.c.o [ 40%] Building C object CMakeFiles/OurPaint.dir/ouroperations.c.o ~/OurPaint/ouroperations.c: In function ‘our_RenderThumbnail’: ~/OurPaint/ouroperations.c:2236:5: error: expected ‘;’ before ‘png_set_IHDR’ 2236 | png_set_IHDR(png_ptr, info_ptr,use_w,use_h,8,PNG_COLOR_TYPE_RGBA,PNG_INTERLACE_NONE,PNG_COMPRESSION_TYPE_BASE,PNG_FILTER_TYPE_BASE); | ^~~~~~~~~~~~ make[2]: *** [CMakeFiles/OurPaint.dir/build.make:118: CMakeFiles/OurPaint.dir/ouroperations.c.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/OurPaint.dir/all] Error 2 make: *** [Makefile:136: all] Error 2 ``` I was able to resolve the issue by adding a ; to the line before 2236 in ouroperations.c before trying again.
会話に参加するには サインイン してください。
ラベルなし
マイルストーンなし
担当者なし
1 参加者
読み込み中…
キャンセル
保存
まだコンテンツがありません