Thread: Error spawning rc.exe

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    29

    Unhappy Error spawning rc.exe

    Hi,

    Just tried to compile my code, got the following

    "Error spawning rc.exe"

    Why is this??

    What can i do to make my code compile!??



    Many thanks for any help,


    p

  2. #2
    Registered User
    Join Date
    Sep 2002
    Posts
    29
    any help pleasse???

    Struggling here :-(

  3. #3
    Registered User
    Join Date
    Sep 2002
    Posts
    29
    using win nt 4.0, not sure what compiler but using MS visual c++

    have rc.exe in

    C:\Program Files\Microsoft Visual Studio\common\msdev98\Bin\rc.exe

    and

    C:\Program Files\Microsoft Visual Studio\VB98\Wizards\Rc.exe

    cant see it in path line.

    It compiles other files but strugles with a resource file for a gui.

    --------
    Compiling resources...
    Error spawning rc.exe

    dialgc_test.res - 1 error(s), 0 warning(s)
    ---------

    ive been messing about with DDK's & SDK's so that might have changed something!!???

  4. #4
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    Posts
    630
    Ive had this problem occur a few times, it happens for a few different reasons, your system is low on resources (normally if your program doesnt free them and you continue to run and close run and close it), or your program did something it shouldnt have (overwritten system memory by writing an array out of bounds). The problem is normally fixed just by restarting your system.
    "only two things are infinite, the universe and human stupidity, and im not sure about the former." - albert einstein

  5. #5
    Registered User
    Join Date
    Sep 2002
    Posts
    29
    hi,

    Thanks for the help but ive restarted my system many times since and still no joy. :-(

    Would re-installing MS C++ Studio help?


    thanks

  6. #6
    Registered User
    Join Date
    Sep 2002
    Posts
    29

    Talking

    Hi,

    Right, ive re-installed VC++. still didnt work. All tho the re-install did put the rc.exe in the path.

    So, as i mentioned breifly before i installed DDK & SDK. i uninstalled SDK and now it is working! It compiles! I think the SDK placed some settings in the environment that might have messed things up.

    Just thought id let you lot know.

    Cheers,

  7. #7
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    NOTE: Necro-ing this thread as is first in Google search, and I suspect more people will be looking for an answer....sorry!



    I had this issue with AVG virus scanner (free version). Latest virus definition file reports a false positive on rc.exe.

    Detected a 'ldpinch' in rc.exe. Even the rc.exe on the original MSVC 2003 install DVD (older than the trojan) detects as being infected.

    I had to uninstall AVG to fix as I had already quaranteened the files.

    Disabling houristic scanning 'may' solve the issue.

    The forums for AVG are no help as the moderators close any threads on false positives (the number of closed threads, original DVD also detecting as ldpinch both imply it is a false positive)
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  8. #8
    Registered User
    Join Date
    Dec 2007
    Posts
    1

    error spawning rc.exe - during build in VC++ 2003

    I had this problem also with VC++ 2003 on an XP SP2 machine.
    I too am running AVG. I got it to work again by going in the virus vault, and restoring the two "infected" files named rc.exe.
    I'm using AVG 7.5 internet security.


    After doing that, compilation worked correctly.

    --Ted.

  9. #9
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  10. #10
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    I've had the same problem and am also running AVG.

  11. #11
    Registered User
    Join Date
    Aug 2009
    Posts
    1

    Solving the spawning rc.exe Error

    Using VS2008 and Windows SDKs


    I solve the problem by copying the C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin (with all the sdks files including rc.exe) content into the C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin (empty)




    i think it messed up SDKs versions.



    From Argentina

    Bikini Bandit

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. rc.exe
    By geek@02 in forum Windows Programming
    Replies: 7
    Last Post: 12-14-2007, 02:03 AM