data definition has no type or storage class

Last post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
RemPut(uint8_t dt, uint16_t i, uint8_t * value, uint8_t siz) ;

I have this line of code in a .h file. The compiler points to it and complains. I don't know enough to understand the complaint, so I figure the compiler must know something I don't.

Googling gets me dozens of hits at stackoverflow.com, but none seem related.

The .h file:

#ifndef REMEMBER_H_
#define REMEMBER_H_

#include 

typedef enum
{
	dtMyName,
	dtDevice
} DataType ;

#include 

uint8_t * RemGet( uint8_t dt, uint16_t i);   // returns pointer to the i'th dt memory
RemPut(uint8_t dt, uint16_t i, uint8_t * value, uint8_t siz) ; //Remember this
											
void RemGetMyName( char NameBuffer[]) ; // Max 19 chars + 0
void RemPutMyName(char * NameBuffer) ;

#endif /* REMEMBER_H_ */

(Yea, Rem is kindof lame. Maybe I should put NV or something. It organizes storage in eeprom, or perhaps fails to.)

Torby

 

Don't grow up! It's a trap!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
uint8_t * RemGet( uint8_t dt, uint16_t i);   // returns pointer to the i'th dt memory
          RemPut(uint8_t dt, uint16_t i, uint8_t * value, uint8_t siz) ; //Remember this
void      RemGetMyName( char NameBuffer[]) ; // Max 19 chars + 0
void      RemPutMyName(char * NameBuffer) ; 

Don't you see a significant difference here regarding RemPut()?

Stefan Ernst

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

void!

Thanks.

Torby

 

Don't grow up! It's a trap!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Torby wrote:

RemPut(uint8_t dt, uint16_t i, uint8_t * value, uint8_t siz) ;

I have this line of code in a .h file. The compiler points to it and complains.


In the future it helps to include the error/warning from the compiler in the post.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

In the future it helps to include the error/warning from the compiler in the post.

He did - it's in the thread title.