Jump to content

Problem compiling my C program.

Gat Pelsinger

My folder has a main.c, bench.c, bench.h, mystring.c and mystring.h. But whenever I try to compile the bench.c file, I get an error that bench.h was not found, even though it is present in the same directory. Somehow the mystring.c is compiling (because it is not including anything).

Microsoft owns my soul.

 

Also, Dell is evil, but HP kinda nice.

Link to comment
Share on other sites

Link to post
Share on other sites

What about the mystring.h file? Does it compile? Is it a dependancy of the mystring.c file?

Link to comment
Share on other sites

Link to post
Share on other sites

16 minutes ago, AAVVIronAlex said:

What about the mystring.h file? Does it compile? Is it a dependancy of the mystring.c file?

I just found out, using the quotes ("") is not an alternative, but necessary to include local header files 🥴. It works now.

Microsoft owns my soul.

 

Also, Dell is evil, but HP kinda nice.

Link to comment
Share on other sites

Link to post
Share on other sites

12 hours ago, Gat Pelsinger said:

I just found out, using the quotes ("") is not an alternative, but necessary to include local header files 🥴. It works now.

Yea, that is essential. I always use the "" quotes, not the '' quotes, I find them versitile.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×