Le 22/11/2012 12:06, richard a écrit : > On 22/11/12 21:45, Benoît Minisini wrote: >> Le 22/11/2012 11:38, richard a écrit : >>> Compile Gambas from sources with debugging information enabled ?? can >>> any one point me to the URL which describes how to do this. >>> >>> Thanks >>> >>> richard >>> >> The fastest way is: instead of typing: >> >> $ make >> >> you type: >> >> $ make clean && make "CFLAGS=-O0 -g" "CXXFLAGS=-O0 -g" >> >> 'make clean' is needed to remove all previously compiled files that do >> not have debugging information in it. >> >> Regards, > > Ok, have run the above and got to this point in the make when it crashed: > > ?? where to head. > > Regards > > richard > > make[5]: Entering directory `/home/richard/svn/gambas3/trunk/gb.xml/src' > CXX gb_xml_la-main.lo > CXX gb_xml_la-gbi.lo > CXX gb_xml_la-utils.lo > utils.cpp: In function 'void insertString(char*&, size_t&, const char*, > size_t, char*&)': > utils.cpp:159:37: error: 'realloc' was not declared in this scope > utils.cpp: In constructor 'XMLParseException::XMLParseException(const > char*, const char*, size_t, const char*)': > utils.cpp:172:36: error: 'malloc' was not declared in this scope > utils.cpp: In destructor 'virtual XMLParseException::~XMLParseException()': > utils.cpp:199:23: error: 'free' was not declared in this scope > utils.cpp:200:25: error: 'free' was not declared in this scope > utils.cpp: In member function 'void XMLParseException::AnalyzeText(const > char*, size_t, const char*)': > utils.cpp:223:37: error: 'malloc' was not declared in this scope > make[5]: *** [gb_xml_la-utils.lo] Error 1 > make[5]: Leaving directory `/home/richard/svn/gambas3/trunk/gb.xml/src' > make[4]: *** [all-recursive] Error 1 > make[4]: Leaving directory `/home/richard/svn/gambas3/trunk/gb.xml/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/richard/svn/gambas3/trunk/gb.xml' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/richard/svn/gambas3/trunk/gb.xml' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/richard/svn/gambas3/trunk' > make: *** [all] Error 2 > richard@ASUSG74S:~/svn/gambas3/trunk$ >
If you add the following line at the beginning of the 'gb.xml/src/utils.h' file: #include <stdlib> Do you have the same error after running "make" again? -- Benoît Minisini ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
