Compilation Errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am getting the following two compilation errors. Please clarify for resolving this.

* In file test.h

  typedef struct {
              int x;
              char y;
  }simple;

& in another header file test1.h, which is also included in file test.c, the following statement is used which gives the 'parse error before token *'.

func( simple *i);

*In file test.h

#define CONST const

& in another header file test1.h, which is also included in file test.c, the following statement is used which again gives the parse error.

func( CONST char *c);

Errors are appeared even after the files are compiled with appropriate include paths. What may be the reason for this?

Thanks

--Kris

_________________________________________________________________
Staying fit. It's about being happy! http://server1.msn.co.in/features/stayingfit/index.asp Check out the new mantra.


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux