๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
์ฒœ์ฒœํžˆ, ๊พธ์ค€ํžˆ../WRF-UCM

[WRF-UCM] kwgrib2 ๋นŒ๋“œ์—๋Ÿฌ ... [makefile:58: AAIG.o] Error 1 #config.h

by MIMI.L 2023. 12. 19.
๋ฐ˜์‘ํ˜•

kwgrib2 ํˆด ์„ค์น˜ ์‹œ,

config.h ๊ด€๋ จ ๋นŒ๋“œ์—๋Ÿฌ..

 

์—๋Ÿฌ ๋กœ๊ทธ .. ๊ธธ์–ด์„œ ์ ‘์–ด๋‘  !

๋”๋ณด๊ธฐ
make[1]: Entering directory '/home/admin0/Build_WRF/create_vtable/kwgrib2/wgrib2'
makefile:58: warning: ignoring prerequisites on suffix rule definition
cc -c -O3 -I/home/admin0/Build_WRF/create_vtable/kwgrib2/g2clib-1.2.1 -I/home/admin0/Build_WRF/create_vtable/kwgrib2/gctpc/source -I/home/admin0/Build_WRF/create_vtable/kwgrib2/jasper-1.900.1/src/libjasper/include -I/home/admin0/Build_WRF/create_vtable/kwgrib2/netcdf-3.6.2/libsrc -I/home/admin0/Build_WRF/create_vtable/kwgrib2/libpng-1.2.44 -I/home/admin0/Build_WRF/create_vtable/kwgrib2/zlib-1.2.5 -I/usr/include  -I/usr/include    AAIG.c
In file included from wgrib2.h:7,
                 from AAIG.c:6:
config.h:2:1: error: stray ‘\’ in program
    2 | \#define USE_REGEX
      | ^
config.h:2:2: error: stray ‘#’ in program
    2 | \#define USE_REGEX
      |  ^
config.h:2:3: error: unknown type name ‘define’
    2 | \#define USE_REGEX
      |   ^~~~~~
config.h:3:1: error: stray ‘\’ in program
    3 | \#define USE_TIGGE
      | ^
config.h:3:2: error: stray ‘#’ in program
    3 | \#define USE_TIGGE
      |  ^
config.h:3:3: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘define’
    3 | \#define USE_TIGGE
      |   ^~~~~~
config.h:3:3: error: unknown type name ‘define’
config.h:4:1: error: stray ‘\’ in program
    4 | \#define USE_NETCDF3
      | ^
config.h:4:2: error: stray ‘#’ in program
    4 | \#define USE_NETCDF3
      |  ^
config.h:9:1: error: stray ‘\’ in program
    9 | \#define CC "cc"
      | ^
config.h:9:2: error: stray ‘#’ in program
    9 | \#define CC "cc"
      |  ^
config.h:10:1: error: stray ‘\’ in program
   10 | \#define FORTRAN "f77"
      | ^
config.h:10:2: error: stray ‘#’ in program
   10 | \#define FORTRAN "f77"
      |  ^
make[1]: *** [makefile:58: AAIG.o] Error 1
make[1]: Leaving directory '/home/admin0/Build_WRF/create_vtable/kwgrib2/wgrib2'
make: *** [makefile:351: /home/admin0/Build_WRF/create_vtable/kwgrib2/UTIL/bin/kwgrib2] Error 2
admin0@admin0-VirtualBox:~/Build_WRF/create_vtable/kwgrib2$

 

์–ด์จŒ๋“ .. ์œ„์™€๊ฐ™์€ ์—๋Ÿฌ๋ฅผ ๋งˆ์ฃผํ•˜๊ณ ..

 

๊ธฐ์ƒ์ž๋ฃŒ๊ฐœ๋ฐฉํฌํ„ธ์— ๋ฌธ์˜ํ–ˆ๋”๋‹ˆ, ์•„๋ž˜์™€ ๊ฐ™์€ ๋‹ต๋ณ€์„ ๋ฐ›์Œ..

๊ธฐ์ƒ์ž๋ฃŒ๊ฐœ๋ฐฉํฌํ„ธ ๋‹ต๋ณ€

 

๋‚œ ํ• ๊ฒŒ ๋งŽ๊ณ ใ… ใ…  ๋‹ค์‹œ ๋ฌธ์˜ํ•˜๋Š”๊ฒŒ ๋น ๋ฅผ์ˆ˜๋„ ์žˆ์ง€๋งŒ.. 

์šฐ์„ ์€ ์•„๋ž˜์™€ ๊ฐ™์ด ์‹œ๋„ ํ•ด๋ด„

 

๋นŒ๋“œ๋„์ค‘? kwgrib2/wgrib2/config.h ํŒŒ์ผ์˜ #define ์•ž์— \ ๊ฐ€ ๋ถ™์Œ..

์ด๊ฑธ๋กœ ์ธํ•œ ์—๋Ÿฌ๋กœ ๋ณด์ž„

์™œ ๋ถ™์ด๋Š”๊ฑด์ง€ ๋ชจ๋ฅด๊ฒ ์œผ๋‚˜,.. -> ์ด๊ฒŒ ์ข€ ๋ถˆ์•ˆํ•˜๊ธดํ•œ๋ฐ.. ์ผ๋‹จ ์‚ฌ์šฉํ•  ๋•Œ ๋ฌธ์˜ํ•ด๋ด์•ผ์ง€..

๋นŒ๋“œ๋„์ค‘์— ์•„๋ž˜์™€ ๊ฐ™์ด ๋ฐ”๋€Œ๋Š”๊ฑธ๋กœ ํ™•์ธ๋˜๋Š”๋ฐ,

kwgrib2 ์„ค์น˜ ์ค‘, config.h ๋นŒ๋“œ์—๋Ÿฌ

๋ฐ”๋€Œ๋ฉด ์ƒˆ๋กœ๊ณ ์นจ ํ˜น์€ ๋‹ค์‹œ ์—ด์–ด์„œ \๋ฅผ ์ง€์›Œ์คŒ (// ๋กœ ์ฃผ์„์ฒ˜๋ฆฌ ๋˜์–ด ์žˆ๋Š” ๋ผ์ธ์€ ์ œ์™ธํ•˜๊ณ ..)

 

์ด๋ ‡๊ฒŒ ํ•ด์คฌ๋”๋‹ˆ ์ •์ƒ์ ์œผ๋กœ ๋นŒ๋“œ ๋˜๋Š” ๊ฒƒ์œผ๋กœ ํ™•์ธ..

 

kwgrib2 ์‚ฌ์šฉ๋ฐฉ๋ฒ• : ์ˆ˜์น˜ํ™œ์šฉ๋งค๋‰ด์–ผ(2016.5.31.) p.23 ์ฐธ๊ณ 

 

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€