On 06/19/18 22:56, Matthew R. Trower wrote:
DtMail attempts to detect whether the non-standard strcasestr() is
available, and defines it if it is not.  Unfortunately, the detection
code is imperfect.  Fortunately, we can make it a class method to avoid
collision even if it does exist.


I've found that this patch has broken gcc support on all suns.
After some research I found an explanation:
https://stackoverflow.com/questions/31305717/member-function-with-static-linkage

And indeed: If I remove the static from FindDialog.C it builds and runs
again also with gcc.
But I never had problems with this part and don't understand the reason
for the patch. So the question to Matthew is: Is your original problem
still solved if you remove the static from the definition?


I offer a choice of two patches here.  The first patch removes Sun from
the detection code, allowing compilation on OpenSolaris, but retaining
the system strcasestr() on some systems.  The second patch removes the
detection code entirely, always using the in-house implementation.


-mrt



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel



--
Ulrich Wilkens
Email: m...@uwilkens.de


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to