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

Undefined Reference Errors When Using PFD_SKIP_IMPLEMENTATION #88

Open
Chuvi-w opened this issue Apr 7, 2023 · 0 comments
Open

Undefined Reference Errors When Using PFD_SKIP_IMPLEMENTATION #88

Chuvi-w opened this issue Apr 7, 2023 · 0 comments

Comments

@Chuvi-w
Copy link

Chuvi-w commented Apr 7, 2023

I've got linking errors like this
in function main':
ld-temp.o:(.text.main+0x12): undefined reference to pfd::settings::available()' ld-temp.o:(.text.main+0x24): undefined reference to pfd::settings::verbose(bool)'
ld-temp.o:(.text.main+0xb5): undefined reference to pfd::notify::notify(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, pfd::icon)' ld-temp.o:(.text.main+0x1fd): undefined reference to pfd::message::message(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, pfd::choice, pfd::icon)'
ld-temp.o:(.text.main+0x22a): undefined reference to pfd::internal::dialog::ready(int) const'
And so on.
I've created sample on godbolt.

https://godbolt.org/z/r9Ga8E6xj

I think, that external-defined functions shouldn't be marked as inline

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

1 participant