plot - Compiling and Linking against plplot library on debian -


i using code::blocks ide on debian 8. have installed plplot library form synaptic (not source). when create new project in c::b , try run simple plplot example compiler not recognize includes , linker not recognize plplot library. how compile , link plplot library when have installed synaptic not source? possible, or should remove current packages , install source only?

in general when install new library (from synaptic or source) how find out should compiler flags , search directories , linker too? think installing source should less problems prone way!

till doing file search included header , add directory search path compiler. cumbersome , naive approach. better if add compiler flag job, how find out. flags find in forums not in documentation of libraries. why there no file third program library tell flags should 1 use? nevertheless when o files done have linker errors "undefined reference to...".

for plplot library linker flag should -lplplotd. compiler options have no flags did search unknown headers , added directories search directories path. example 00 works fine. though found -lplplotd flag shooting! x11 examples 1 should add flag -lplplotcxxd.

in general got find linker flag have search library so file , name of file commonly flag, e.g. library libplplotcxxd.so flag -lplplotcxxd.

anyway, i'd glad if tells me better clue on finding these linker flags.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -