Redhat Linux に 2.2.1 をダウンロードしてインストールし、text_demo.c をコンパイルしようとしましたが、grid_sheet.h が見つからないというエラーが表示されます。そこで、2.0.8 をダウンロードして grid_sheet.h を取得しました。コンパイルしようとすると、次のエラーが発生します。
gcc -o text_demo -I /usr/local/include I /home/downloads/libharu-2.0.8/demo -L /usr/local/lib text_demo.c
/tmp/ccmPxCcu.o: 関数
show_stripe_pattern': text_demo.c:(.text+0x68): undefined reference to
内 HPDF_Page_SetRGBStroke' text_demo.c:(.text+0x7c): HPDF_Page_MoveTo' への未定義の参照HPDF_Page_SetLineWidth' text_demo.c:(.text+0xa6): undefined reference to
' text_demo.c:(.text+0xd0): HPDF_Page_LineTo' への未定義の参照HPDF_Page_TextWidth' text_demo.c:(.text+0xe9): undefined reference to
' text_demo.c:(.text +0xf4): HPDF_Page_SetLineWidth' への未定義の参照HPDF_Page_Stroke' text_demo.c:(.text+0x116): undefined reference to
' /tmp/ccmPxCcu.o: 関数show_description': text_demo.c:(.text+0x129): undefined reference to
HPDF_Page_GetCurrentFontSize' 内' text_demo.c:(.text+0x137): HPDF_Page_GetRGBFill' への未定義の参照HPDF_Page_GetCurrentFont' text_demo.c:(.text+0x14c): undefined reference to
' text_demo.c:(.text+0x15a): への未定義の参照HPDF_Page_BeginText' text_demo.c:(.text+0x180): undefined reference to
HPDF_Page_SetRGBFill' text_demo.c:(.text+0x193): HPDF_Page_SetFontAndSize' への未定義の参照HPDF_Page_SetTextRenderingMode' text_demo.c:(.text+0x1ae): undefined reference to
' text_demo.c:(.text+0x1d6): HPDF_Page_EndText' への未定義の参照HPDF_Page_TextOut' text_demo.c:(.text+0x1e1): undefined reference to
' text_demo.c:(.text+0x1fa): への未定義の参照HPDF_Page_SetFontAndSize' text_demo.c:(.text+0x21a): undefined reference to
HPDF_Page_SetRGBFill' /tmp/ccmPxCcu.o: 関数main': text_demo.c:(.text+0x2ab): undefined reference to
内 HPDF_New' text_demo.c:(.text+0x2ea): HPDF_SetCompressionMode への未定義参照 ' text_demo.c:(.text+0x327): HPDF_AddPage' text_demo.c:(HPDF_Free' text_demo.c:(.text+0x30c): undefined reference to
への未定義参照HPDF_GetFont' text_demo.c:(.text+0x335): undefined reference to
.text+0x34a):print_grid' text_demo.c:(.text+0x365): undefined reference to
HPDF_Page_SetFontAndSize' text_demo.c:(.text+0x377): への未定義参照:HPDF_Page_TextWidth' text_demo.c:(.text+0x385): undefined reference to
HPDF_Page_BeginText' text_demo.c:(.text+0x390): への未定義参照HPDF_Page_GetHeight' text_demo.c:(.text+0x3a9): undefined reference to
' text_demo.c:(.text +0x3d4): HPDF_Page_EndText へHPDF_Page_TextOut' text_demo.c:(.text+0x3df): undefined reference to
の未定義参照 text_demo.c:(.text+0x3ea): HPDF_Page_GetHeight へHPDF_Page_BeginText' text_demo.c:(.text+0x3f5): undefined reference to
の未定義参照 text_demo.c:(.text+0x415): HPDF_Page_SetFontAndSize への未定義参照HPDF_Page_MoveTextPos' text_demo.c:(.text+0x43b): undefined reference to
text_demo.c:(.text+0x45c ): への未定義の参照HPDF_Page_MoveTextPos' text_demo.c:(.text+0x47c): undefined reference to
HPDF_Page_GetWidth' text_demo.c:(.text+0x4aa): HPDF_Page_ShowText' への未定義HPDF_Page_MeasureText' text_demo.c:(.text+0x4cd): undefined reference to
参照 text_demo.c:(.text+0x4ea): HPDF_Page_SetFontAndSize'HPDF_Page_MoveTextPos' text_demo.c:(.text+0x505): undefined reference to
への未定義参照HPDF_Page_ShowText' text_demo.c:(.text+0x57c): undefined reference to
text_demo.c:(.text+0x599):HPDF_Page_MoveTextPos' text_demo.c:(.text+0x5ac): undefined reference to
HPDF_Page_ShowText' への未定義参照 text_demo.c:(.text+0x5c7): HPDF_Page_MoveTextPos へ の未定義参照HPDF_Page_SetFontAndSize' text_demo.c:(.text+0x5e4): undefined reference to
text_demo.c:(.text+0x665): HPDF_Page_ShowText' text_demo への未定義参照HPDF_Page_SetRGBFill' text_demo.c:(.text+0x67a): undefined reference to
。 c:(.text+0x6a3): HPDF_Page_SetRGBFill へHPDF_Page_MoveTextPos' text_demo.c:(.text+0x6fe): undefined reference to
の未定義参照 text_demo.c:(.text+0x713): HPDF_Page_MoveTextPos への未定義参照HPDF_Page_ShowText' text_demo.c:(.text+0x73c): undefined reference to
text_demo.c:(.text+0x797): への未定義参照HPDF_Page_SetRGBFill' text_demo.c:(.text+0x7ac): undefined reference to
HPDF_Page_ShowText' text_demo.c:(.text+0x7c3): HPDF_Page_SetFontAndSize' へHPDF_Page_EndText' text_demo.c:(.text+0x7e6): undefined reference to
の未定義の参照HPDF_Page_SetRGBFill' text_demo.c:(.text+0x820): undefined reference to
' text_demo.c:(.text+0x80c): HPDF_Page_SetLineWidth' への未定義の参照HPDF_Page_SetTextRenderingMode' text_demo.c:(.text+0x861): undefined reference to
' text_demo.c:(.text+0x884):HPDF_Page_TextOut' text_demo.c:(.text+0x88f): undefined reference to
HPDF_Page_EndText' への未定義の参照 text_demo.c:(.text+0x8cd):HPDF_Page_SetTextRenderingMode' text_demo.c:(.text+0x8d8): undefined reference to
HPDF_Page_BeginText' への未定義の参照 text_demo.c:(.text+0x903): HPDF_Page_EndText' text_demo への未定義の参照HPDF_Page_TextOut' text_demo.c:(.text+0x90e): undefined reference to
。 c:(.text+0x94c): HPDF_Page_BeginText へHPDF_Page_SetTextRenderingMode' text_demo.c:(.text+0x957): undefined reference to
の未定義参照 text_demo.c:(.text+0x982): HPDF_Page_EndText への未定義参照HPDF_Page_TextOut' text_demo.c:(.text+0x98d): undefined reference to
text_demo.c:(.text+0x9c3): への未定義参照HPDF_Page_GSave' text_demo.c:(.text+0x9d6): undefined reference to
HPDF_Page_SetTextRenderingMode' text_demo.c:(.text+0x9e1): HPDF_Page_TextOut' への未定義HPDF_Page_BeginText' text_demo.c:(.text+0xa0c): undefined reference to
参照text_demo.c:(.text+0xa17): HPDF_Page_GRestore'HPDF_Page_EndText' text_demo.c:(.text+0xa45): undefined reference to
への未定義参照HPDF_Page_GSave' text_demo.c:(.text+0xa8e): undefined reference to
text_demo.c:(.text+0xa99):HPDF_Page_BeginText' text_demo.c:(.text+0xac4): undefined reference to
HPDF_Page_TextOut' への未定義参照 text_demo.c:(.text+0xacf):HPDF_Page_EndText' text_demo.c:(.text+0xafd): undefined reference to
HPDF_Page_GRestore' への未定義参照 text_demo.c:(.text+0xb33): HPDF_Page_SetTextRenderingMode' text_demo への未定義参照HPDF_Page_GSave' text_demo.c:(.text+0xb46): undefined reference to
。 c:(.text+0xb51):HPDF_Page_BeginText' text_demo.c:(.text+0xb7c): undefined reference to
HPDF_Page_TextOut' text_demo.c:(.text+0xb87): への未定義の参照:HPDF_Page_EndText' text_demo.c:(.text+0xbb5): undefined reference to
HPDF_Page_GRestore' への未定義の参照 text_demo.c:(.text+0xbc8): への未定義の参照HPDF_Page_SetTextRenderingMode' text_demo.c:(.text+0xbee): undefined reference to
HPDF_Page_SetRGBFill' text_demo.c:(.text+0xc09):HPDF_Page_SetFontAndSize' text_demo.c:(.text+0xc5d): undefined reference to
HPDF_Page_BeginText' への未定義参照 text_demo.c:(.text+0xc79): sin' への未定義参照text_demo.c:(.text+0xcb3): cos'cos' text_demo.c:(.text+0xc8a): undefined reference to
への未定義参照sin' text_demo.c:(.text+0xcc4): undefined reference to
text_demo.c:(.text+0xd0a):HPDF_Page_SetTextMatrix' text_demo.c:(.text+0xd1d): undefined reference to
HPDF_Page_ShowText' への未定義の参照 text_demo.c:(.text+0xd28): HPDF_Page_BeginText' への未定義の参照text_demo.c:(.text+0xdb6): tan' text_demoHPDF_Page_EndText' text_demo.c:(.text+0xd5e): undefined reference to
への未定義の参照。tan' text_demo.c:(.text+0xdc7): undefined reference to
c:(.text+0xe11):HPDF_Page_SetTextMatrix' text_demo.c:(.text+0xe24): undefined reference to
HPDF_Page_ShowText' text_demo.c:(.text+0xe2f): への未定義の参照:HPDF_Page_EndText' text_demo.c:(.text+0xe65): undefined reference to
HPDF_Page_BeginText' text_demo.c:(.text+0xeac): への未定義の参照HPDF_Page_SetTextMatrix' text_demo.c:(.text+0xebf): undefined reference to
' text_demo.c: (.text+0xeca): 未定義の参照HPDF_Page_EndText' text_demo.c:(.text+0xf00): undefined reference to
HPDF_Page_BeginText' text_demo.c:(.text+0xf47): HPDF_Page_ShowText' への未定義参照HPDF_Page_SetTextMatrix' text_demo.c:(.text+0xf5a): undefined reference to
text_demo.c:(.text+0xf65): HPDF_Page_SetFontAndSize' への未定義参照 text_demo.c:(.text+0x1015): HPDF_Page_BeginText'HPDF_Page_EndText' text_demo.c:(.text+0xfef): undefined reference to
への未定義参照HPDF_Page_SetRGBFill' text_demo.c:(.text+0x1020): undefined reference to
text_demo.c:(.text+0x1044):HPDF_Page_TextOut' text_demo.c:(.text+0x104f): undefined reference to
HPDF_Page_EndText' への未定義参照 text_demo.c:(.text+0x1063):HPDF_Page_SetCharSpace' text_demo.c:(.text+0x106e): undefined reference to
HPDF_Page_BeginText' への未定義参照 text_demo.c:(.text+0x1092): HPDF_Page_EndText' text_demo への未定義参照HPDF_Page_TextOut' text_demo.c:(.text+0x109d): undefined reference to
。 c:(.text+0x10b1): HPDF_Page_BeginText への未定義の参照HPDF_Page_SetWordSpace' text_demo.c:(.text+0x10bc): undefined reference to
' text_demo.c:(.text+0x10e0):HPDF_Page_TextOut' text_demo.c:(.text+0x10eb): undefined reference to
HPDF_Page_EndText' への未定義の参照 text_demo.c:(.text+0x1100): HPDF_Free への未定義の参照HPDF_SaveToFile' text_demo.c:(.text+0x110b): undefined reference to
' collect2: ld が返されました1 終了ステータス