Re: How to compile (Linux, Debian or Ubuntu, x86-64) FOX toolkit (snapshot) with -g and -O2 [RefPerSys]
Roland Hughes via Foxgui-users <[email protected]>
| Newsgroups | gmane.comp.lib.fox-toolkit.user |
|---|---|
| Message-ID | <[email protected]> |
Here's a stupid question for a Friday. Did you try using double quotes instead of single ticks.? https://askubuntu.com/questions/432525/when-to-use-single-or-double-quotes-in-ubuntu-command-line https://askubuntu.com/questions/20034/differences-between-doublequotes-singlequotes-and-backticks-on-comm https://stackoverflow.com/questions/60217717/configure-cxxflags-refuses-to-accept-more-than-one-include-path On 4/1/22 09:44, Basile Starynkevitch wrote: > > > On 01/04/2022 14:08, Basile Starynkevitch wrote: >> >> Hello all, >> >> As you probably know, on recent Linux distributions the recent GCC >> <https://gcc.gnu.org/> or Clang <https://clang.llvm.org/> compilers >> can be invoked with both -O2 and -g (or even -g3) >> >> For the *RefPerSys* project (symbolic AI, open source, GPLv3+; see >> *http://refpersys.org/* <http://refpersys.org/> and source code on >> https://github.com/RefPerSys/RefPerSys ...) we are considering using >> FOX toolkit, but we need DWARF debugging information for several >> important reasons: >> >> >> * manual debugging with GDB at first. >> * generation (at "runtime") of C++ code compiled to some dlopen >> <https://man7.org/linux/man-pages/man3/dlopen.3.html>-ed plugin. >> The generated C++ code would depend upon some rules entered thru >> the FOX graphical user interface >> * software introspection and runtime reflection using Ian Lance >> Taylor libbacktrace >> <https://github.com/ianlancetaylor/libbacktrace> combioned with >> dladdr <https://man7.org/linux/man-pages/man3/dladdr.3.html>. >> * Hopefully, homoiconicity >> <https://en.wikipedia.org/wiki/Homoiconicity> of the /RefPerSys/ >> system and rule language >> >> >> I tried several times to configure FOX source tree /fox-1.7.80/ using >> ./configure --enable-debug CFLAGS='-O2 -g3' CXXFLAGS='-O2 -g3' but >> the compilation of FOX did not show any -O flag. >> >> This is on Ubuntu 21.10, with g++ being GCC 11.1 >> > > > It seems (I am not sure) that using make CXXFLAGS='-O2 -g3' in FOX > toolkit source tree solved the problem. > > > I am unhappy of that ugly way to solve it. > > > So, a better solution is welcome. > > > Thanks > > -- > Basile Starynkevitch<[email protected]> > (only mine opinions / les opinions sont miennes uniquement) > 92340 Bourg-la-Reine, France > web page: starynkevitch.net/Basile/ > > > > _______________________________________________ > Foxgui-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/foxgui-users -- Roland Hughes, President Logikal Solutions (630)-205-1593 http://www.theminimumyouneedtoknow.com http://www.infiniteexposure.net http://www.johnsmith-book.com http://www.logikalblog.com http://www.interestingauthors.com/blog _______________________________________________ Foxgui-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/foxgui-users