There is the “:” prefix that allows you to give different names to your libraries.
If you use
g++ -o build/bin/myapp -l:_mylib.so other_source_files
should search your path for the _mylib.so.
More Related Contents:
- Compilation fails with “relocation R_X86_64_32 against `.rodata.str1.8′ can not be used when making a shared object”
- What does exactly the warning mean about hidden symbol being referenced by DSO?
- Static variables initialisation order
- C/C++ with GCC: Statically add resource files to executable/library
- What is __gxx_personality_v0 for?
- Linking a shared library with another shared lib in linux
- gcc: undefined reference to
- Where do object file “Version References” come from?
- How to use OpenSSL with GCC?
- cmake find_package specify path
- Can I link a plain file into my executable? [duplicate]
- Can different GCC dialects be linked together?
- Linking C++ code with ‘gcc’ (without g++)
- Why is GCC saying multiple definitions of main? I have one main [closed]
- Implementation C++14 make_integer_sequence
- How does #include work in C++? [duplicate]
- C++ Dynamic Shared Library on Linux
- Is it a conforming compiler extension to treat non-constexpr standard library functions as constexpr?
- What do C and Assembler actually compile to? [closed]
- Undefined reference error for template method [duplicate]
- How to define a string literal in gcc command line?
- “relocation R_X86_64_32S against ” linking Error
- Is there a compiler bug exposed by my implementation of an is_complete type trait?
- GCC: Difference between -O3 and -Os
- Using bts assembly instruction with gcc compiler
- Undefined reference to google::protobuf::internal::empty_string_[abi:cxx11]
- Why do the usual access control checking applies to names used to specify explicit instantiation when accessed through template parameters?
- What information does GCC Profile Guided Optimization (PGO) collect and which optimizations use it?
- Compile with older libc (version `GLIBC_2.14′ not found)
- How to assert if a std::mutex is locked?