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
Post a Comment