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

GCC error No such file or directory when including a separate file

$
0
0

When I try to compile including the file stack.h my GCC gives me the error "No such file or directory"

gcc -std=c99 -Wall -o Ou1 ou1.c -I C:\Users\NAME\Documents\C programmering\DOA\stack.h

The code looks like this:

#include <stdio.h>
#include <stdbool.h>
#include "stack.h"

I've tried to change its folder and changing the .h to .c and the .c to .h.


Viewing all articles
Browse latest Browse all 21994

Trending Articles



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