#pragma question

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

#pragma question

463 Views
Skaptor
Contributor I

Hello, I am developing a function that uses a boolean value as an argument, but the compiler seems unable to understand.

 

I have the function in a .C file named control.c

and the declaration is in the also named control.h

 

when I compile, there is a warning C2450 (expected ,) on the .h file.

 

I believe a pragma instruction will fix this?

BTW im using CW6.2

 

thanks in advance

Labels (1)
0 Kudos
2 Replies

332 Views
bigmac
Specialist III

Hello,

 

What type is your function argument?  If this is a non-standard type, involving a typedef, perhaps the typedef is inaccessible because you have not included the required header file.

 

Regards,

Mac

 

0 Kudos

332 Views
Skaptor
Contributor I

Hello,

 

Never mind, I wasn´t including a .h file, I included it and now compiles and works perfectly!

 

Thanks for your help

 

Regards

0 Kudos