Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Torby
PostPosted: Nov 02, 2013 - 05:40 PM
Raving lunatic


Joined: Nov 11, 2003
Posts: 6226
Location: Tulsa OK USA

Code:

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:

Code:

#ifndef REMEMBER_H_
#define REMEMBER_H_

#include <avr/io.h>

typedef enum
{
   dtMyName,
   dtDevice
} DataType ;

#include <avr/io.h>

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

Cartesian coordinates are SO 17th century.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
sternst
PostPosted: Nov 02, 2013 - 05:43 PM
Raving lunatic


Joined: Jul 23, 2001
Posts: 2728
Location: Osnabrueck, Germany

Code:
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()?
 
 View user's profile Send private message  
Reply with quote Back to top
Torby
PostPosted: Nov 02, 2013 - 06:17 PM
Raving lunatic


Joined: Nov 11, 2003
Posts: 6226
Location: Tulsa OK USA

void!

Thanks.

_________________
Torby

Cartesian coordinates are SO 17th century.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
blargg
PostPosted: Nov 03, 2013 - 04:28 AM
Wannabe


Joined: Aug 30, 2013
Posts: 94


Torby wrote:
Code:

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.
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Nov 03, 2013 - 12:08 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 71883
Location: (using avr-gcc in) Finchingfield, Essex, England

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.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits