Thread: nmake U1045 error

  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    44

    nmake U1045 error

    hi guys, sorry for posting it here, i think its the wrong category but i dont know where else to ask, i searched online for this error and found nothing

    im taking a course on compiler design and im trying to do some lexical analysis with flex

    i downloaded all the files and there was a makefile in the folder, i need to run nmake in order to create the .c file which will then give me the program which will be doing the lexical analysis

    but there is a problem, i found that in order to run nmake i need to run a file called vsvars32.bat

    i run the file, then i went to the folder where the makefile is located, i run nmake and i get

    "NMAKE : fatal error U1045: spawn failed : No error
    Stop."

    does anyone know why it gives me this kind of error? i would appreciate any help provided

    By the way, I'm using Visual Studio 2008

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Did you try googling that? Just paste in "nmake: fatal error u1045: spawn failed" and you'll get hundreds of answers.


    Quzah.
    Last edited by quzah; 03-17-2011 at 02:31 PM.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Nov 2010
    Posts
    44
    Quote Originally Posted by quzah View Post
    Did you try googling that? Just paste in "nmake: fatal error u1045: spawn failed" and you'll get hundreds of answers.


    Quzah.
    Yes, i could find nothing.. i tried this You receive a "NMAKE : fatal error U1045: spawn failed : Invalid argument" error message when you compile a makefile by using the Microsoft Program Maintenance utility but it didnt work

  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    What's the line right above that error say? That will give you an idea of what it was trying to do when it gave an error maybe.

    Wireshark · Wireshark-dev: Re: [Wireshark-dev] Help:A problem when I try to compile wireshark


    Quzah.
    Hope is the first step on the road to disappointment.

  5. #5
    Registered User
    Join Date
    Nov 2010
    Posts
    44
    it says

    "flex nameoffile"

    where name of file is the name of the .FILE file that has the C code for flex, its weird because today in the morning our professor showed us the same thing and there was no error, so i doubt that it has anything to do with the code in the .FILE file

  6. #6
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    If you open a command prompt and go to that spot (either the folder that file is in, or the folder where the makefile is in) and type "flex" what happens?


    Quzah.
    Hope is the first step on the road to disappointment.

  7. #7
    Registered User
    Join Date
    Nov 2010
    Posts
    44
    it throws me a message telling

    "Unsupported 16-bit Application"

    The program or feature ...... cannot start or run due to incompatibility with 64-bit Windows versions of Windows. Please contact the software vendor to ask if a 64-bit Windows compatible version is available.

    oh... so is this the problem? because in the makefile file there is a call for this flex file i think

  8. #8
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Looks like you need a newer version of flex.


    Quzah.
    Hope is the first step on the road to disappointment.

  9. #9
    Registered User
    Join Date
    Nov 2010
    Posts
    44
    Quote Originally Posted by quzah View Post
    Looks like you need a newer version of flex.


    Quzah.
    thank you very much!!! You helped me a lot, i ll contact my teacher to ask for one if i dont find anything online

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Winsock problem
    By Wolf` in forum Windows Programming
    Replies: 1
    Last Post: 05-01-2010, 04:55 PM
  2. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  3. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM