Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22044

Function signatures in export file (*.h) using bool return type

$
0
0

I have a file:

// mylib.c// -------#include <stdbool.h>bool is_zero(int n){  return (n == 0);}

And a file detailing what functions to export:

// mylib.h// -------bool is_zero(int n);

When I compile, I get "mylib.o: error: unkown type name 'bool'"

Am I missing something? Do I need to do something special when my exported functions have a signature that requires an exported type?


Viewing all articles
Browse latest Browse all 22044

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>