g++ where does -L look for?

Whenever I try to use -L flag, ex. -L/myPath, It doesn't work. But whenever my files are in the same directory and use this flag, -L. it works.

So my question is, where does g++ look for? does g++ look at my current directory or does it look inside minGW directory?
Note that a path starting with / is an absolute path on Unix-like systems. If it's not an absolute path (or if you are using Windows) you should leave out the / between -L and myPath.
Last edited on
Topic archived. No new replies allowed.