c - How do I compile the Sundown Markdown Renderer example? Keeps returning errors -
sundown (formerly) popular markdown editor includes examples directory, , want play around on command line, i'm having difficulties.
i navigate examples, run gcc sundown.c -o sundown , complains don't have markdown.h. dump contents of src directory , html directory examples category, , run it. 
i get:
undefined symbols architecture x86_64:   "_bufgrow", referenced from:       _main in sundown-3bac08.o   "_bufnew", referenced from:       _main in sundown-3bac08.o   "_bufrelease", referenced from:       _main in sundown-3bac08.o   "_sd_markdown_free", referenced from:       _main in sundown-3bac08.o   "_sd_markdown_new", referenced from:       _main in sundown-3bac08.o   "_sd_markdown_render", referenced from:       _main in sundown-3bac08.o   "_sdhtml_renderer", referenced from:       _main in sundown-3bac08.o   what doing wrong here? feel should relatively simple, i'm @ wits end trying figure out i'm doing wrong.
you tell gcc obtain #include files adding parameter:
'-ipathtoincludes'   you tell gcc obtain needed libraries adding parameters:
'-lpathtoolibrary' , '-lshortlibraryname   note: -l lower case 'l'
the library path , library name parameters must last in gcc command line, linker looks @ linker parameters in order listed on command line
Comments
Post a Comment