[Gambas-user] How to compile with debugging information enabled
richard
rterry at ...1823...
Thu Nov 22 12:06:33 CET 2012
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 at ...3044...:~/svn/gambas3/trunk$
More information about the User
mailing list