Thread: trouble running a compiled C file.

  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    41

    trouble running a compiled C file.

    I compiled a project of mine and wanted to make sure it would run in a completely clean environment so I set up a virtual machine with just windows 7 ( same version that it compiles and runs on on my host pc)

    on the clean client I copied over all the .o .a and exacutables. my exacutable is testExe.

    so in the client in c:\test I run testExe

    the error I get is The system cannot find the file C:\test\testExe

    testExe exists in the folder. what could possibly be causing this error?

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    Did you compile the application in Debug or Release mode? If your compiler is visual studio, does the virtual machine have the visual studio redistributable package installed?
    bit∙hub [bit-huhb] n. A source and destination for information.

  3. #3
    Registered User
    Join Date
    Dec 2009
    Posts
    41
    I actually did it with GCC in SUA but It isnt working. When I enabled the services for Unix windows component it runs but it just hangs there doing nothing.

    the issue seems to be that its missing libraries that were in SUA that no longer exist on the clean client. the problem I have is the error I got is completely different than the actual problem.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 10:39 PM
  2. Can you help me about tolower() in file
    By nctar in forum C Programming
    Replies: 7
    Last Post: 05-12-2010, 10:04 AM
  3. Need Help Fixing My C Program. Deals with File I/O
    By Matus in forum C Programming
    Replies: 7
    Last Post: 04-29-2008, 07:51 PM
  4. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM