GCP #pragma message ignored

I am trying to display a compilation message in GCC , through

#pragma message "hello world" 

But when I compile with -Wall , it gives a warning

 warning: ignoring #pragma message 

I am using GCC 4.2.1 on Mac OS X 10.6.8 (Snow Leopard).

Why doesn't it display a message? How can I display this message?

+6
source share
1 answer

If you read the correct documentation , you will find that #pragma message not supported in GCC 4.2.1.

+12
source

Source: https://habr.com/ru/post/910655/


All Articles