CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2013
    Posts
    1

    Using an object module in UNIX/Visual Studio

    Hello, for a homework assignment I need to download a .h, .cpp and .o (which I guess is called an object module?). I'm used to using Visual Studio Express for my programming, but I guess you can't access object modules in Visual Studio so I'm trying to compile them in UNIX (I use putty to connect to my school's server). My question is, how do I add files from my computer to the working directory of the UNIX shell? or alternatively, how do you run object modules in Visual Studio Express?

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: Using an object module in UNIX/Visual Studio

    Regardless of platform you can't run an object file, all you can do is link it to something else to make an executable file or a library.
    Do you get an object file from your teacher that should be linked to your code? If so that object file has to be from the same compiler as you use. Unless your teacher provides a MS version of that file you have to change to use the correct compiler (and linker).

    Since you already use putty to access the school computer you can use WinSCP to transfer the files.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured