c++ - g++ linking local libraries -


new c++ , new compiled languages in general. i've been passed university specific code library class use in completing assignments. however, cannot figure out how link it. directories laid out follows:

assignment     lib        universitycpplib           .cpp , .h files     res     src        .cpp assignment 

just calling

    g++ -o assignment.cpp assignment 

gives me

    no such file or directory 

and not sure how use -l specify local library.

*edit: also, relatively new in general. mind telling me why keep getting downvotes? still learning here , gladly correct myself if breaking of rules here.

to - l option give complete path until lib directory . use - l option name of library without suffix.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -