Guidance Forums / wxWidgets (wxWindows) in C++ / Weird "No such file or directory" when trying to compile wx samples.

Search 搜索
Home Home

Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Weird "No such file or directory" when trying to compile wx samples.
Posted by: 2005-01-27 21:19:46
I have a very weird problem. I successfully built and installed wxWidgets 2.5.3 using the MingGW compiler that comes with dev-c++ Now I'm trying to build the minimal sample that comes with wxWidgets from within dev-c++, but I'm getting:

C:\DOCUME~1\ARON No such file or directory

in my Compile Log, which is weird, because the preceeding command in the Compile Log is:

mingw32-g++.exe minimal.o  -o "Minimal.exe" -L"C:/Program/Dev-Cpp/lib" -L"C:/Elvis/wx-2.5.3-debug-build/lib" -mwindows -lwx_mswud_core-2.5 -lwx_baseud-2.5 -lwxtiffd-2.5 -lwxjpegd-2.5 -lwxpngd-2.5 -lwxzlibd-2.5 -lwxregexud-2.5 -lwxexpatd-2.5 -mthreads -lunicows -lrpcrt4 -loleaut32 -lole32 -luuid -lodbc32 -lole32 -loleaut32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32

and that command works fine when I execute it from within a MSYS shell.

Anyone know what dev-c++ might be looking for in C:\DOCUME~1\ARON? Nothing in the Makefile refers to this location, so I think it's very strange.

None of the paths in the Makefile contains any spaces either. The full path to my Profile directory is: "C:\Documents and Settings\Aron & Viktor" btw.

I don't know why dev-c++ is looking for something in my profile directory at this point, but I've tried starting dev-c++ with the -c option to specify a different path for the configuration file (devcpp.ini), didn't make any difference.

Greatful for all help. I would really like to use dev-c++ and not write my Makefiles myself.

Thanks, Aron

(PS. Below is a copy of the Makefile generated by dev-c++, typing make -f in the MSYS also works fine, just not from within dev-c++. DS)

# Project: Minimal
# Makefile created by Dev-C++

CPP  = mingw32-g++.exe
CC   = mingw32-gcc.exe
WINDRES = windres.exe
RES  =
OBJ  = minimal.o $(RES)
LINKOBJ  = minimal.o $(RES)
LIBS =  -L"C:/Program/Dev-Cpp/lib" -L"C:/Elvis/wx-2.5.3-debug-build/lib" -mwindows -lwx_mswud_core-2.5 -lwx_baseud-2.5 -lwxtiffd-2.5 -lwxjpegd-2.5 -lwxpngd-2.5 -lwxzlibd-2.5 -lwxregexud-2.5 -lwxexpatd-2.5 -mthreads -lunicows -lrpcrt4 -loleaut32 -lole32 -luuid -lodbc32 -lole32 -loleaut32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32 
INCS =  -I"C:/Program/Dev-Cpp/include"  -I"C:/Elvis/wxWidgets-2.5.3/include"  -I"C:/Elvis/wxWidgets-2.5.3/msw-debug/lib/wx/include/msw-unicode-debug-static-2.5"
CXXINCS =  -I"C:/Program/Dev-Cpp/include/c++/3.3.1"  -I"C:/Program/Dev-Cpp/include/c++/3.3.1/mingw32"  -I"C:/Program/Dev-Cpp/include/c++/3.3.1/backward"  -I"C:/Program/Dev-Cpp/lib/gcc-lib/mingw32/3.3.1/include"  -I"C:/Program/Dev-Cpp/include"  -I"C:/Elvis/wxWidgets-2.5.3/include"  -I"C:/Elvis/wxWidgets-2.5.3/msw-debug/lib/wx/include/msw-unicode-debug-static-2.5"
BIN  = Minimal.exe
CXXFLAGS = $(CXXINCS) -DNO_GCC_PRAGMA -D__WXDEBUG__ -D__WXMSW__ -ggdb -O0 -mthreads -Wall 

.PHONY: all all-before all-after clean clean-custom

all: all-before Minimal.exe all-after

clean: clean-custom
   rm -f $(OBJ) $(BIN)

$(BIN): $(OBJ)
   $(CPP) $(LINKOBJ) -o "Minimal.exe" $(LIBS)

minimal.o: minimal.cpp
   $(CPP) -c minimal.cpp -o minimal.o $(CXXFLAGS)
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
© Wed 2022-8-10  Guidance Laboratory Inc. Hits:0