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 -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -