Re: [Dev-C++] Path and name of executable file changed involuntarily.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2005-08-19 16:12:46
|
It seems like you have a symbol hh defined as '\', resulting in 'hh.exe' being rewritten as '\.exe'. /Per W On Fri, 19 Aug 2005, Jimmy Lao wrote: > I have a project named "hh" in "E:\MyApp\hh\" with all default settings. > A month ago, it worked well. Now it doesn't work. > > When I compile it in Dev-Cpp, it doesn't create executable file "hh.exe" > in the project directory, while a month ago it did. However, it creates > an executable file named ".exe" in "E:\". Because of that, using "Compile > and run" or "debug" in Dev-Cpp always have a message box said "Project is > not compiled". > > If I execute > make -f Makefile.win all > in the command line, the result is still "E:\.exe". > > If I change > $(CC) $(LINKOBJ) -o "hh.exe" $(LIBS) > in the auto-generated "Makefile.win" to > $(CC) $(LINKOBJ) -o hh.exe $(LIBS) > I have "E:\MyApp\hh\hh.exe", through "make" or Dev-Cpp compilation. > > However, > gcc.exe main.o -o "hh.exe" > and > gcc.exe main.o -o hh.exe > both generate "E:\MyApp\hh\hh.exe". > > I have uninstalled Dev-Cpp and installed it again. The same thing happens. > My Dev-Cpp version is 4.9.9.0. > > I guess there's something to do with the environment variables or Windows > patches, but just guess. > > Would anybody help me? Thanks. |