Thread: Programs Only Run on My Machine!

  1. #16
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    COM DLLs or COM components must be registered. If your code requires a COM component that is not on the target machine and you just copy it over without registering it the COM component will not work and your code will also not work.
    Last edited by VirtualAce; 04-22-2009 at 04:51 PM.

  2. #17
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    I have the option of compiling it into a DLL or a lib
    A .lib file will be generated if you compile it as a dynamic library or static library.

    Are you sure that the problem is with sshlib2?

  3. #18
    Registered User
    Join Date
    May 2008
    Location
    Australia
    Posts
    230
    Quote Originally Posted by bithub View Post
    A .lib file will be generated if you compile it as a dynamic library or static library.

    Are you sure that the problem is with sshlib2?
    Yes, if I comment out libssh2.h and take the libssh2.lib out of Additional Dependencies, and comment out the functions that are contained inside that header, then it will run perfectly on other machines.
    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.

  4. #19
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    Well, assuming you are correctly compiling libssh2 into a static library, there must be some other dependency that libssh2 has that the target machine is missing.

  5. #20
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    change the library type to static instead of DLL

  6. #21
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    Quote Originally Posted by abachler View Post
    change the library type to static instead of DLL
    You didn't read any of the posts in this thread, did you?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How come Dev C++ cant run some programs??
    By Sephiroth in forum C Programming
    Replies: 41
    Last Post: 09-17-2005, 05:35 AM
  2. School Mini-Project on C/C++ (Need Your Help)..
    By EazTerence in forum C++ Programming
    Replies: 4
    Last Post: 09-08-2005, 01:08 AM
  3. Creating a Virtual Machine
    By Chronom1 in forum C++ Programming
    Replies: 7
    Last Post: 10-05-2003, 11:11 AM
  4. how do i run external programs from source?
    By tameritoke in forum C++ Programming
    Replies: 1
    Last Post: 05-23-2003, 02:44 PM
  5. how to compile & run c programs in unix?
    By Unregistere in forum C Programming
    Replies: 2
    Last Post: 10-09-2002, 10:53 PM