简体   繁体   中英

linker error in c

how can i resolve a linker error in c?

this is the error message:

undefined reference to HPDF_Page_SetRGBStroke

If you are using an external library, you have to tell the linker that it should be included. It has no means of automagically finding out what you're using there.

Using gcc you can do this by compiling the program with -l library .

Apparently, you're trying to use a routine from the libharu PDF library, and it seems you're not linking against this library.

How exactly you would resolve this depends on the toolchain you're using -- under gcc, you would have to add a -lharu option or similar to the linker options.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM