cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
g++ where does -L look for?
g++ where does -L look for?
Apr 3, 2015 at 2:21am UTC
yj1214
(120)
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?
Apr 3, 2015 at 6:59am UTC
Peter87
(11238)
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
Apr 3, 2015 at 7:02am UTC
Topic archived. No new replies allowed.