Closed
Bug 1234130
Opened 9 years ago
Closed 8 years ago
MSVC linker warning LNK4217: locally defined symbol Hunspell::Hunspell() imported in function mozHunspell::SetDictionary()
Categories
(Core :: Spelling checker, defect)
Tracking
()
RESOLVED
FIXED
mozilla47
People
(Reporter: cpeterson, Assigned: glandium)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
925 bytes,
patch
|
mshal
:
review+
jorgk-bmo
:
feedback+
|
Details | Diff | Splinter Review |
mozHunspell.obj : warning LNK4217: locally defined symbol ??0Hunspell@@QAE@PBD00@Z (public: __thiscall Hunspell::Hunspell(char const *,char const *,char const *)) imported in function "public: virtual enum nsresult __stdcall mozHunspell::SetDictionary(wchar_t const *)" (?SetDictionary@mozHunspell@@UAG?AW4nsresult@@PB_W@Z) mozHunspell.obj : warning LNK4217: locally defined symbol ??1Hunspell@@QAE@XZ (public: __thiscall Hunspell::~Hunspell(void)) imported in function "protected: virtual __thiscall mozHunspell::~mozHunspell(void)" (??1mozHunspell@@MAE@XZ) mozHunspell.obj : warning LNK4217: locally defined symbol ?spell@Hunspell@@QAEHPBDPAHPAPAD@Z (public: int __thiscall Hunspell::spell(char const *,int *,char * *)) imported in function "public: virtual enum nsresult __stdcall mozHunspell::Check(wchar_t const *,bool *)" (?Check@mozHunspell@@UAG?AW4nsresult@@PB_WPA_N@Z) mozHunspell.obj : warning LNK4217: locally defined symbol ?suggest@Hunspell@@QAEHPAPAPADPBD@Z (public: int __thiscall Hunspell::suggest(char * * *,char const *)) imported in function "public: virtual enum nsresult __stdcall mozHunspell::Suggest(wchar_t const *,wchar_t * * *,unsigned int *)" (?Suggest@mozHunspell@@UAG?AW4nsresult@@PB_WPAPAPA_WPAI@Z) mozHunspell.obj : warning LNK4217: locally defined symbol ?get_dic_encoding@Hunspell@@QAEPADXZ (public: char * __thiscall Hunspell::get_dic_encoding(void)) imported in function "public: virtual enum nsresult __stdcall mozHunspell::SetDictionary(wchar_t const *)" (?SetDictionary@mozHunspell@@UAG?AW4nsresult@@PB_W@Z)
Comment 1•8 years ago
|
||
This was caused by bug 1200065. https://hg.mozilla.org/releases/mozilla-aurora/rev/04b17a8de4ed These warnings are a little annoying, so it would be good to fix the issue or shut up the warning. I tried to make some sense if it but only found some very MS specific information: https://msdn.microsoft.com/en-us/library/aa3se25k%28v=vs.120%29.aspx http://stackoverflow.com/questions/6979491/how-to-delete-warnings-lnk4217-and-lnk4049
Flags: needinfo?(sajitk)
Flags: needinfo?(mh+mozilla)
Hardware: Unspecified → x86
Version: unspecified → Trunk
Assignee | ||
Comment 2•8 years ago
|
||
DEFINES['HUNSPELL_STATIC'] = True needs to be added to extensions/spellcheck/hunspell/glue/moz.build
Flags: needinfo?(mh+mozilla)
Assignee | ||
Comment 3•8 years ago
|
||
Assignee: nobody → mh+mozilla
Attachment #8711944 -
Flags: review?(mshal)
Comment 4•8 years ago
|
||
Great! Thank you so much.
Comment 5•8 years ago
|
||
Comment on attachment 8711944 [details] [diff] [review] Fix MSVC LNK4217 warning in hunspell Solves the problem for me.
Attachment #8711944 -
Flags: feedback+
Updated•8 years ago
|
Attachment #8711944 -
Flags: review?(mshal) → review+
Comment 7•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a09bdadea91c
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•