#pragma question

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

#pragma question

1,016件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

885件の閲覧回数
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 件の賞賛
返信

885件の閲覧回数
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 件の賞賛
返信