'Optimal command that links static libraries
I have many static libs to be linked to my project. I do this by describing path and file name (like ../lib/libaws-crt-cpp.a ) in command line:
g++ main.cpp -I ../include/ ../lib/libaws-crt-cpp.a ../lib/libDiscovery-cpp.a
I have much more files to be linked ant is too boring write ../lib/ each time. Can I make this shorter? Can I somehow omit path?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
