Author Topic: REGEX build fails with "CreateProcess: No such file or directory"  (Read 4667 times)

Offline ByteGuy

  • Single posting newcomer
  • *
  • Posts: 2
I've got a fresh install of CodeBlocks 10.05 and copy of Boost 1-46-1 running on  a 64-bit Win 7 box.

When I try and build the REGEX library (per pages 676 & 677 in C++ for Dummies) I get the following error based on this:

C:\Program Files (x86)\CodeBlocks\boost_1_46\libs\regex\build
>gcc --version
gcc (TDM-2 mingw32) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


C:\Program Files (x86)\CodeBlocks\boost_1_46\libs\regex\build
>cd gcc

C:\Program Files (x86)\CodeBlocks\boost_1_46\libs\regex\build\gcc
>dir
 Volume in drive C is Win-7_10K
 Volume Serial Number is DC76-8533

 Directory of C:\Program Files (x86)\CodeBlocks\boost_1_46\libs\regex\build\gcc

04/15/2011  01:36 PM    <DIR>          .
04/15/2011  01:36 PM    <DIR>          ..
04/15/2011  01:36 PM    <DIR>          boost_regex-gcc-1_46
04/15/2011  01:36 PM    <DIR>          boost_regex-gcc-d-1_46
               0 File(s)              0 bytes
               4 Dir(s)  170,963,468,288 bytes free

C:\Program Files (x86)\CodeBlocks\boost_1_46\libs\regex\build\gcc
>cd ..

C:\Program Files (x86)\CodeBlocks\boost_1_46\libs\regex\build

mingw32-make -f gcc.mak

gcc.mak:37: "Building Boost.Regex without ICU / Unicode support:"
gcc.mak:38: "Hint: set ICU_PATH on the nmake command line to point "
gcc.mak:39: "to your ICU installation if you have one."

g++  -o gcc/boost_regex-gcc-1_46/c_regex_traits.o -c -O2 -I../../..   ../src/c_regex_traits.cpp

g++: CreateProcess: No such file or directory

mingw32-make: *** [gcc/boost_regex-gcc-1_46/c_regex_traits.o] Error 1

C:\Program Files (x86)\CodeBlocks\boost_1_46\libs\regex\build


Not sure what I should be checking here, clearly the process is aborting, just not sure why?

Any IDEAS appreciated!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: REGEX build fails with "CreateProcess: No such file or directory"
« Reply #1 on: April 15, 2011, 10:28:24 pm »
Quote
g++: CreateProcess: No such file or directory

The above sometimes means you are missing a command.
Verify your compiler installation is good.

Verify your make file does not use a command that is NOT in your system path.
Verify you do NOT have two separate MinGW GCC in your path.

I do NOT think this is a code::blocks problem.

Tim S.
« Last Edit: April 15, 2011, 11:08:07 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org