bugAVR In-System Programmer - Bugs: bug #8605, NULL not defined

 
 

bug #8605: NULL not defined

Submitted by:  None
Submitted on:  Sat 17 Apr 2004 02:33:42 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Originator Email: -unavailable-Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 13 Oct 2004 09:06:28 PM UTC, comment #1:

This bug has been fixed in the CVS version.

Margarita Manterola <marga>
Project Administrator
Sat 17 Apr 2004 02:33:42 PM UTC, original submission:

after typing ./configure
make

I get the printout seen bellow. Several instances of NULL not being defined in Global.h. I added the following to Clobal.h:

#ifndef NULL
#define NULL 0
#endif

Then it compiled fine. I am running Slackware 9.1 on an AMD 2600 laptop and linux kernel 2.6.5 and gcc 3.4.0 20040324.
-----------------------------------------------------------

make[2]: Entering directory `/home/tcorner/src/uisp-20040311/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I. -Wall -Werror -g -O2 -MT Avr.o -MD -MP -MF ".deps/Avr.Tpo" \
-c -o Avr.o `test -f 'Avr.C' || echo './'`Avr.C; \
then mv -f ".deps/Avr.Tpo" ".deps/Avr.Po"; \
else rm -f ".deps/Avr.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -Wall -Werror -g -O2 -MT AvrAtmel.o -MD -MP -MF ".deps/AvrAtmel.Tpo" \
-c -o AvrAtmel.o `test -f 'AvrAtmel.C' || echo './'`AvrAtmel.C; \
then mv -f ".deps/AvrAtmel.Tpo" ".deps/AvrAtmel.Po"; \
else rm -f ".deps/AvrAtmel.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -Wall -Werror -g -O2 -MT AvrDummy.o -MD -MP -MF ".deps/AvrDummy.Tpo" \
-c -o AvrDummy.o `test -f 'AvrDummy.C' || echo './'`AvrDummy.C; \
then mv -f ".deps/AvrDummy.Tpo" ".deps/AvrDummy.Po"; \
else rm -f ".deps/AvrDummy.Tpo"; exit 1; \
fi
In file included from AvrDummy.h:31,
from AvrDummy.C:38:
Global.h: In member function `void TPt<TRec>::MkRef()':
Global.h:43: error: `NULL' undeclared (first use this function)
Global.h:43: error: (Each undeclared identifier is reported only once for each function it appears in.)
Global.h: In member function `void TPt<TRec>::UnRef()':
Global.h:44: error: `NULL' undeclared (first use this function)
Global.h: In constructor `TPt<TRec>::TPt()':
Global.h:46: error: `NULL' undeclared (first use this function)
Global.h: In member function `TRec* TPt<TRec>::operator->() const':
Global.h:57: error: `NULL' undeclared (first use this function)
Global.h: In member function `TRec& TPt<TRec>::operator*() const':
Global.h:58: error: `NULL' undeclared (first use this function)
Global.h: In member function `TRec& TPt<TRec>::operator[](int) const':
Global.h:59: error: `NULL' undeclared (first use this function)
make[2]: *** [AvrDummy.o] Error 1
make[2]: Leaving directory `/home/tcorner/src/uisp-20040311/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/tcorner/src/uisp-20040311/src'
make: *** [all-recursive] Error 1
tcorner@wanderer:~/src/uisp-20040311$

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 13 Oct 2004 09:05:24 PM UTCmargaStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1