warning LINK4217: locally defined symbol

Mar 4, 2019 at 10:45pm
I need this project to compile without warnings but I have no idea what this warning is:

1
2
  main-865b33.o : warning LNK4217: locally defined symbol __std_terminate imported in function "int `public: __cdecl std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)'::`1'::dtor$2" (?dtor$2@?0???0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@XZ@4HA)
main-865b33.o : warning LNK4217: locally defined symbol _CxxThrowException imported in function "public: void __cdecl RadList::loadPlaylist(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?loadPlaylist@RadList@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)

the compile options im required to use are:
clang++ -g3 -O0 -std=c++17 -pedantic -Wall -Wold-style-cast -Wextra -Woverloaded-virtual -I./ -o
Mar 5, 2019 at 4:58am
Typing in error messages into google does wonders.
https://www.google.com/search?q=warning+LNK4217%3A+locally+defined+symbol
Mar 18, 2019 at 10:51pm
that doesn't help salem. I said I am required to use the compile options I posted and every solution i found on google requires an additional option. Read the post before replying. It was a windows related issue and it compiled fine on Ubuntu.
Mar 18, 2019 at 11:06pm
It does look like your compiler is clang, yet the linker is from Microsoft. Is that the proper tool combination?
Mar 18, 2019 at 11:09pm
closed account (E0p9LyTq)
Clang can be used with Visual Studio.

https://devblogs.microsoft.com/cppblog/use-any-c-compiler-with-visual-studio/
Topic archived. No new replies allowed.