Peterp

Problem with struct and #include

Discussion created by Peterp on Feb 20, 2009
Latest reply on Feb 20, 2009 by Peterp

Hello,

i have a probem with a self defined datatype, i have my headerfile type.h

with this def.

[code]

struct my_float8
{
   float4 nibble1;
   float4 nibble2;
};

[/code]

And i want to use it in my br-file like this:

[code]

#include "type.h"

void funk(int length, float *daten)
{
     my_float8 mf8;
 }

[/code]

But i always get this compile error:

Error (parse error) before 'Identifier' my_float8 mf8;

Outcomes