Problem with paths Windows 7
-
- CodeLite Curious
- Posts: 5
- Joined: Thu Jun 20, 2013 3:50 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Problem with paths Windows 7
Hi,
I wonder if anyone can point me in the right direction
I installed from the complete download which includes MinGW & wxWidgets
Followed the defaults on installation but get the following error in bold
C:\windows\system32\cmd.exe /c "mingw32-make.exe -j 2 -e -f "test.mk" all"
----------Building project:[ test - Debug ]----------
g++ -c "C:/Users/Banaz/Documents/programs/test/test/main.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:\wxWidgets-2.9.4\lib\gcc_dll\mswud -IC:\wxWidgets-2.9.4\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -o ./Debug/main.o -I.
C:/Users/Banaz/Documents/programs/test/test/main.cpp:1:21: fatal error: wx/init.h: No such file or directory
compilation terminated.
mingw32-make.exe: *** [Debug/main.o] Error 1
test.mk:95: recipe for target `Debug/main.o' failed
1 errors, 0 warnings
If I give the full path to "C:\wxWidgets-2.9.4\include\wx\init.h" in the source file then the error changes to indicate an include file is missing from within init.h which makes sense as I have not globally altered the include path.
I have tried both / & \ for the path it makes no difference
C:\wxWidgets-2.9.4\include Is the correct path for wxWidgets
C:\MinGW-4.7.1 is correct for MinGW
Hope someone can point me in the right direction
best regards
Ian
I wonder if anyone can point me in the right direction
I installed from the complete download which includes MinGW & wxWidgets
Followed the defaults on installation but get the following error in bold
C:\windows\system32\cmd.exe /c "mingw32-make.exe -j 2 -e -f "test.mk" all"
----------Building project:[ test - Debug ]----------
g++ -c "C:/Users/Banaz/Documents/programs/test/test/main.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:\wxWidgets-2.9.4\lib\gcc_dll\mswud -IC:\wxWidgets-2.9.4\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -o ./Debug/main.o -I.
C:/Users/Banaz/Documents/programs/test/test/main.cpp:1:21: fatal error: wx/init.h: No such file or directory
compilation terminated.
mingw32-make.exe: *** [Debug/main.o] Error 1
test.mk:95: recipe for target `Debug/main.o' failed
1 errors, 0 warnings
If I give the full path to "C:\wxWidgets-2.9.4\include\wx\init.h" in the source file then the error changes to indicate an include file is missing from within init.h which makes sense as I have not globally altered the include path.
I have tried both / & \ for the path it makes no difference
C:\wxWidgets-2.9.4\include Is the correct path for wxWidgets
C:\MinGW-4.7.1 is correct for MinGW
Hope someone can point me in the right direction
best regards
Ian
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Problem with paths Windows 7
My guess: you have another mingw32-make.exe in your path (probably MSYS) that does not understand backslashes
Open a file in codelite, right click on its tab and select 'Open Shell at file path'
Next,type 'which mingw32-make' and confirm which mingw32-make.exe is being used by codelite
Eran
Open a file in codelite, right click on its tab and select 'Open Shell at file path'
Next,type 'which mingw32-make' and confirm which mingw32-make.exe is being used by codelite
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 5
- Joined: Thu Jun 20, 2013 3:50 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Problem with paths Windows 7
Hi Eran,
Thanks for such a quick response, please find below output from shell
C:\Users\Banaz\Documents\programs>which mingw32-make
C:/MinGW-4.7.1/bin/mingw32-make.EXE
This seems correct?
All the best
Ian
Thanks for such a quick response, please find below output from shell
C:\Users\Banaz\Documents\programs>which mingw32-make
C:/MinGW-4.7.1/bin/mingw32-make.EXE
This seems correct?
All the best
Ian
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Problem with paths Windows 7
This problem definitily seems like a problem in the installation of mingw.
Try typing 'which g++'
Do you have another MinGW installation? or Cygwin?
Eran
Try typing 'which g++'
Do you have another MinGW installation? or Cygwin?
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 5
- Joined: Thu Jun 20, 2013 3:50 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Problem with paths Windows 7
Hi Eran,
I have deleted everything that I think could be related, I had codeblocks but I uninstalled it, I had and old MinGW which I had renamed but have now deleted.
I am sure it is something silly on my part but I just cannot find it.
Here is my system path -
PATH=C:\Program Files (x86)\ActiveState Komodo Edit 8\;C:\WinAVR-20100110\bin;C:
\WinAVR-20100110\utils\bin;C:\Program Files\Common Files\Microsoft Shared\Window
s Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\wind
ows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowe
rShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Microso
ft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Atmel\Flip 3.4.7\bin;C:\Pro
gram Files (x86)\GNU Tools ARM Embedded\4.7 2013q1\bin;C:\wxWidgets-2.9.4\includ
e\;C:\MinGW-4.7.1\bin
Here is the path from the codelite shell
C:\Users\Banaz\Documents\programs\test\test>path
PATH=C:\wxWidgets-2.9.4\lib\gcc_dll;C:\MinGW-4.7.1\bin;C:\wxWidgets-2.9.4\include
And responses from the which command
C:\Users\Banaz\Documents\programs\test\test>which g++
C:/MinGW-4.7.1/bin/g++.EXE
C:\Users\Banaz\Documents\programs\test\test>which mingw32-make
C:/MinGW-4.7.1/bin/mingw32-make.EXE
All the best
Ian
I have deleted everything that I think could be related, I had codeblocks but I uninstalled it, I had and old MinGW which I had renamed but have now deleted.
I am sure it is something silly on my part but I just cannot find it.
Here is my system path -
PATH=C:\Program Files (x86)\ActiveState Komodo Edit 8\;C:\WinAVR-20100110\bin;C:
\WinAVR-20100110\utils\bin;C:\Program Files\Common Files\Microsoft Shared\Window
s Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\wind
ows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowe
rShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Microso
ft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Atmel\Flip 3.4.7\bin;C:\Pro
gram Files (x86)\GNU Tools ARM Embedded\4.7 2013q1\bin;C:\wxWidgets-2.9.4\includ
e\;C:\MinGW-4.7.1\bin
Here is the path from the codelite shell
C:\Users\Banaz\Documents\programs\test\test>path
PATH=C:\wxWidgets-2.9.4\lib\gcc_dll;C:\MinGW-4.7.1\bin;C:\wxWidgets-2.9.4\include
And responses from the which command
C:\Users\Banaz\Documents\programs\test\test>which g++
C:/MinGW-4.7.1/bin/g++.EXE
C:\Users\Banaz\Documents\programs\test\test>which mingw32-make
C:/MinGW-4.7.1/bin/mingw32-make.EXE
All the best
Ian
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Problem with paths Windows 7
What do you have under C:\WinAVR-20100110\bin ?
Eran
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 5
- Joined: Thu Jun 20, 2013 3:50 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Problem with paths Windows 7
Hi Eran,
The listing cygwin1.dll is all that stands but I renamed that and restarted codelite and the problem is still the same
Directory of C:\WinAVR-20100110\bin
07/03/2013 23:38 <DIR> .
07/03/2013 23:38 <DIR> ..
19/01/2010 14:09 1,642,496 avarice.exe
19/01/2010 14:09 598,016 avr-addr2line.exe
19/01/2010 14:09 618,496 avr-ar.exe
19/01/2010 14:09 794,112 avr-as.exe
19/01/2010 14:09 235,520 avr-c++.exe
19/01/2010 14:09 597,504 avr-c++filt.exe
19/01/2010 14:09 233,472 avr-cpp.exe
19/01/2010 14:09 235,520 avr-g++.exe
19/01/2010 14:09 230,912 avr-gcc-4.3.3.exe
19/01/2010 14:09 230,912 avr-gcc.exe
06/01/2010 19:10 16,134 avr-gccbug
19/01/2010 14:09 30,720 avr-gcov.exe
19/01/2010 14:09 2,742,272 avr-gdb.exe
19/01/2010 14:09 663,552 avr-gprof.exe
19/01/2010 14:09 2,742,272 avr-insight.exe
19/01/2010 14:09 1,038,336 avr-ld.exe
06/01/2010 15:23 1,704 avr-man
19/01/2010 14:09 609,280 avr-nm.exe
19/01/2010 14:09 801,280 avr-objcopy.exe
19/01/2010 14:09 869,888 avr-objdump.exe
19/01/2010 14:09 618,496 avr-ranlib.exe
19/01/2010 14:09 309,760 avr-readelf.exe
19/01/2010 14:09 605,696 avr-size.exe
19/01/2010 14:09 599,552 avr-strings.exe
19/01/2010 14:09 801,280 avr-strip.exe
19/01/2010 14:09 543,232 avr32-addr2line.exe
19/01/2010 14:09 563,200 avr32-ar.exe
19/01/2010 14:09 865,792 avr32-as.exe
19/01/2010 14:09 217,088 avr32-c++.exe
19/01/2010 14:09 541,696 avr32-c++filt.exe
19/01/2010 14:09 215,552 avr32-cpp.exe
19/01/2010 14:09 217,088 avr32-g++.exe
19/01/2010 14:09 212,992 avr32-gcc-4.3.2.exe
19/01/2010 14:09 212,992 avr32-gcc.exe
07/01/2010 23:29 16,295 avr32-gccbug
19/01/2010 14:09 30,720 avr32-gcov.exe
19/01/2010 14:09 2,752,000 avr32-gdb.exe
19/01/2010 14:09 608,768 avr32-gprof.exe
19/01/2010 14:09 2,752,000 avr32-insight.exe
19/01/2010 14:09 1,316,864 avr32-ld.exe
19/01/2010 14:09 553,984 avr32-nm.exe
19/01/2010 14:09 724,992 avr32-objcopy.exe
19/01/2010 14:09 896,512 avr32-objdump.exe
19/01/2010 14:09 563,712 avr32-ranlib.exe
19/01/2010 14:09 311,296 avr32-readelf.exe
19/01/2010 14:09 545,280 avr32-size.exe
19/01/2010 14:09 544,256 avr32-strings.exe
19/01/2010 14:09 724,992 avr32-strip.exe
19/01/2010 13:45 515,855 avrdude.conf
19/01/2010 14:09 313,344 avrdude.exe
19/01/2010 14:08 1,872,884 cygwin1.dll
19/01/2010 13:45 5,248 giveio.sys
08/01/2010 01:43 1,064 ice-gdb
08/01/2010 01:43 51 ice-insight
19/01/2010 13:45 755 install_giveio.bat
08/01/2010 00:37 138,707 itcl32.dll
08/01/2010 00:37 62,224 itk32.dll
08/01/2010 01:43 264 kill-avarice
19/01/2010 14:08 43,520 libusb0.dll
19/01/2010 14:09 11,264 loaddrv.exe
19/01/2010 13:45 229 remove_giveio.bat
19/01/2010 14:09 2,359,296 simulavr.exe
19/01/2010 14:09 1,571,328 splint.exe
19/01/2010 14:09 704,000 srec_cat.exe
19/01/2010 14:09 540,160 srec_cmp.exe
19/01/2010 14:09 540,672 srec_info.exe
08/01/2010 01:43 225 start-avarice
19/01/2010 13:45 172 status_giveio.bat
08/01/2010 00:37 890,792 tcl84.dll
08/01/2010 00:37 20,929 tclpip84.dll
19/01/2010 14:09 12,288 tclsh84.exe
08/01/2010 00:37 1,222,874 tk84.dll
19/01/2010 14:09 13,312 wish84.exe
73 File(s) 44,639,942 bytes
2 Dir(s) 10,278,510,592 bytes free
The listing cygwin1.dll is all that stands but I renamed that and restarted codelite and the problem is still the same
Directory of C:\WinAVR-20100110\bin
07/03/2013 23:38 <DIR> .
07/03/2013 23:38 <DIR> ..
19/01/2010 14:09 1,642,496 avarice.exe
19/01/2010 14:09 598,016 avr-addr2line.exe
19/01/2010 14:09 618,496 avr-ar.exe
19/01/2010 14:09 794,112 avr-as.exe
19/01/2010 14:09 235,520 avr-c++.exe
19/01/2010 14:09 597,504 avr-c++filt.exe
19/01/2010 14:09 233,472 avr-cpp.exe
19/01/2010 14:09 235,520 avr-g++.exe
19/01/2010 14:09 230,912 avr-gcc-4.3.3.exe
19/01/2010 14:09 230,912 avr-gcc.exe
06/01/2010 19:10 16,134 avr-gccbug
19/01/2010 14:09 30,720 avr-gcov.exe
19/01/2010 14:09 2,742,272 avr-gdb.exe
19/01/2010 14:09 663,552 avr-gprof.exe
19/01/2010 14:09 2,742,272 avr-insight.exe
19/01/2010 14:09 1,038,336 avr-ld.exe
06/01/2010 15:23 1,704 avr-man
19/01/2010 14:09 609,280 avr-nm.exe
19/01/2010 14:09 801,280 avr-objcopy.exe
19/01/2010 14:09 869,888 avr-objdump.exe
19/01/2010 14:09 618,496 avr-ranlib.exe
19/01/2010 14:09 309,760 avr-readelf.exe
19/01/2010 14:09 605,696 avr-size.exe
19/01/2010 14:09 599,552 avr-strings.exe
19/01/2010 14:09 801,280 avr-strip.exe
19/01/2010 14:09 543,232 avr32-addr2line.exe
19/01/2010 14:09 563,200 avr32-ar.exe
19/01/2010 14:09 865,792 avr32-as.exe
19/01/2010 14:09 217,088 avr32-c++.exe
19/01/2010 14:09 541,696 avr32-c++filt.exe
19/01/2010 14:09 215,552 avr32-cpp.exe
19/01/2010 14:09 217,088 avr32-g++.exe
19/01/2010 14:09 212,992 avr32-gcc-4.3.2.exe
19/01/2010 14:09 212,992 avr32-gcc.exe
07/01/2010 23:29 16,295 avr32-gccbug
19/01/2010 14:09 30,720 avr32-gcov.exe
19/01/2010 14:09 2,752,000 avr32-gdb.exe
19/01/2010 14:09 608,768 avr32-gprof.exe
19/01/2010 14:09 2,752,000 avr32-insight.exe
19/01/2010 14:09 1,316,864 avr32-ld.exe
19/01/2010 14:09 553,984 avr32-nm.exe
19/01/2010 14:09 724,992 avr32-objcopy.exe
19/01/2010 14:09 896,512 avr32-objdump.exe
19/01/2010 14:09 563,712 avr32-ranlib.exe
19/01/2010 14:09 311,296 avr32-readelf.exe
19/01/2010 14:09 545,280 avr32-size.exe
19/01/2010 14:09 544,256 avr32-strings.exe
19/01/2010 14:09 724,992 avr32-strip.exe
19/01/2010 13:45 515,855 avrdude.conf
19/01/2010 14:09 313,344 avrdude.exe
19/01/2010 14:08 1,872,884 cygwin1.dll
19/01/2010 13:45 5,248 giveio.sys
08/01/2010 01:43 1,064 ice-gdb
08/01/2010 01:43 51 ice-insight
19/01/2010 13:45 755 install_giveio.bat
08/01/2010 00:37 138,707 itcl32.dll
08/01/2010 00:37 62,224 itk32.dll
08/01/2010 01:43 264 kill-avarice
19/01/2010 14:08 43,520 libusb0.dll
19/01/2010 14:09 11,264 loaddrv.exe
19/01/2010 13:45 229 remove_giveio.bat
19/01/2010 14:09 2,359,296 simulavr.exe
19/01/2010 14:09 1,571,328 splint.exe
19/01/2010 14:09 704,000 srec_cat.exe
19/01/2010 14:09 540,160 srec_cmp.exe
19/01/2010 14:09 540,672 srec_info.exe
08/01/2010 01:43 225 start-avarice
19/01/2010 13:45 172 status_giveio.bat
08/01/2010 00:37 890,792 tcl84.dll
08/01/2010 00:37 20,929 tclpip84.dll
19/01/2010 14:09 12,288 tclsh84.exe
08/01/2010 00:37 1,222,874 tk84.dll
19/01/2010 14:09 13,312 wish84.exe
73 File(s) 44,639,942 bytes
2 Dir(s) 10,278,510,592 bytes free
-
- CodeLite Expert
- Posts: 167
- Joined: Fri Jul 22, 2011 5:32 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Problem with paths Windows 7
Not sure this is related at all but, I had issues with the latest version of codelite and mingw when I had WinAVR installed.
Renaming
C:\WinAVR-20100110\utils\bin\sh.exe
to
C:\WinAVR-20100110\utils\bin\sh_nope.exe
Made it all work. No idea why.
Renaming
C:\WinAVR-20100110\utils\bin\sh.exe
to
C:\WinAVR-20100110\utils\bin\sh_nope.exe
Made it all work. No idea why.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Problem with paths Windows 7
This reminds me, try setting the environment variable SHELL in codelite:
Eran
Code: Select all
SHELL=CMD.EXE
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 5
- Joined: Thu Jun 20, 2013 3:50 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Problem with paths Windows 7
Hi Both,
Gibbon1,
That worked, but also see below because Eran's answer it is probably more convenient if you still use WinAVR
Eran,
typo I think, SHELL=CMD.EXE worked
Many thanks to both of you
Ian
Gibbon1,
That worked, but also see below because Eran's answer it is probably more convenient if you still use WinAVR
Eran,
typo I think, SHELL=CMD.EXE worked
Many thanks to both of you
Ian