Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get rid of prefix ? #15

Open
aftabnaveed opened this issue Aug 24, 2021 · 1 comment
Open

How to get rid of prefix ? #15

aftabnaveed opened this issue Aug 24, 2021 · 1 comment

Comments

@aftabnaveed
Copy link

Hi,

First, many thanks for making such a cool library, it makes it really easy to load dynamic libraries. Now, when I try to use

dynalo::to_native_name()

function it adds a prefix lib which I don't want it to add, all of my shared libraries are in plugins folder. How can I remove the prefix?

Thanks

@lifeinaglasshouse
Copy link

I think you can just remove the prefix. If its a std::string, I will use std::string::substr to remove the lib

std::string s = "libhello";
std::string result = s.substr(3); // "hello"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants