설명
기고자: Lutz Westermann, 2012년 10월
소형 모델 유형 :C 및 CPP
카테고리 : 슬롯 사이트 추천 API 라이브러리
메인 파일 : Cex1.gms
$title 'GDX를 읽고 쓰기 위한 전문가 수준 C API 테스트' (CEX1,SEQ=3)
$onText
기고자: Lutz Westermann, 2012년 10월
$offText
$set srcRoot %슬롯 사이트 추천sysdir%apifiles%system.dirsep%C%system.dirsep%
$ifThen %system.filesys% == UNIX
$ 설정되지 않은 경우 COMPILER $set COMPILER GNU
$else
$ 설정되지 않은 경우 COMPILER $set COMPILER INTEL
$endIf
$ifThen %COMPILER% == GNU
$ CCOMP gcc 설정
$ ifThen %system.filesys% == UNIX
$ OUT 설정 -oxp_example1
$ 플래그 설정 -ldl -lpthread
$ 다른
$ OUT 설정 -oxp_example1.exe
$ 플래그 설정
$ endIf
$elseIf %COMPILER% == INTEL
$ CCOMP cl 설정
$ 플래그 설정
$ OUT 설정 -Fexp_example1.exe
$else
$ 중단 알 수 없는 컴파일러: %COMPILER%
$endIf
$call rm -rf Demanddata.gdx
$call.checkErrorLevel cp "%srcRoot%api%system.dirsep%gdxcc.c" .
$call.checkErrorLevel cp "%srcRoot%xp_example1.c" .
$call %CCOMP% xp_example1.c gdxcc.c -I"%srcRoot%api" %OUT% %FLAGS%
$if errorlevel 1 $abort 'xp_example1.c 컴파일 문제'
$call .%system.dirsep%xp_example1 "%슬롯 사이트 추천sysdir%."
$if errorlevel 1 $abort 'GDX 파일을 쓰는 xp_example1 실행 중 문제 발생'
$call gdxdiffdemanddata.gdxdemandwant.gdx
$if errorlevel 1 $abort '수요 데이터가 예상과 다릅니다.'
$call .%system.dirsep%xp_example1 "%슬롯 사이트 추천sysdir%." trnsport.gdx
$if errorlevel 1 $abort 'GDX 파일을 읽는 xp_example1 실행 문제'