I'm working on a project which is written in C, but I would like to use Boost. I have included the Boost libraries in my main file as follows:
#define GNU_SOURCE
#define _GNU_SOURCE
#include <stdlib.h>
#include "initialize.h"
#include <stdio.h>
#include <math.h>
#include <boost/random/linear_congruential.hpp>
I am compiling with gcc -W -Wall -I/usr/local/boost_1_76_0 main.c -o executable -lm -lboost_random
.
main.c:8:10: fatal error: iostream: No such file or directory
8 | #include <iostream>
I guess that the Boost libraries are using <iostream>
, but since it's not a C library, I am not sure how to deal with that issue... Should I compile with C++ instead?