From: Earnie B. <ear...@ya...> - 2003-05-23 20:46:59
|
Dave Lawrence wrote: > The visual c++ compiler has a flag -Fo<file> to name the object file. > When I use msys/mingw to compile, it doesn't work for certain > filenames. For example: > > $ cd /h/dgl/tmp > $ cl -c -Fohello.obj hello.c > works > Great! > $ cl -c -Fo../tmp/hello.obj hello.c > works > Great! > $ cl -c -Fo/h/dgl/tmp/hello.obj hello.c > fails with this error: > fatal error C1083: Cannot open compiler generated file: > '/h/dgl/tmp/hello.obj': No s > uch file or directory > -Fo/path/to/file isn't a rule that MSYS understands, yet. Unfortunately you must also butt the file against the switch for it to find the argument. I'll see what I can manage, probably something like - followed by F then start path transalation at char [3]. Yuck, yuck, yuck!!!! > > PS - you might ask why I don't just use the h:/dgl/tmp/hello.obj > syntax. The answer is, I'm using the $(CURDIR) variable in make > and it returns /h/dgl/tmp for the current directory. > What happens for you if you ``make --win32''? Earnie. |