Programs Only Run on My Machine!

This is a discussion on Programs Only Run on My Machine! within the Windows Programming forums, part of the Platform Specific Boards category; COM DLLs or COM components must be registered. If your code requires a COM component that is not on the ...

  1. #16
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    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,246
    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,246
    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,189
    change the library type to static instead of DLL
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  6. #21
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    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?

Page 2 of 2 FirstFirst 12
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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21