How to setup environment for MinGW gcc

M

Mike

For example, I want to compile a c file in d:\xxx\yyy\zzz\.cfile.c.
This file depends on header file @d:/xxx/base/std.h

In a shell, i have an environment variable INCLUDE=d:/xxx/base. I
thought gcc would pick it up and search "std.h" from directory "d:/xxx/
base". But it doesn't do that. It complains about std.h can not be
found.

Could any one tell me how to set environment properly, so that gcc
know where to find included files and library files.

Thanks.
 
I

Ian Collins

Mike said:
For example, I want to compile a c file in d:\xxx\yyy\zzz\.cfile.c.
This file depends on header file @d:/xxx/base/std.h
Off topic here, I'm sure MinGW has its own list, or failing that try a
gcc one.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top