Testing windows code compatibility with linux...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jakes
    New Member
    • Dec 2007
    • 4

    Testing windows code compatibility with linux...

    Hey guys. Hope this is the right forum for this kind of question... I'm doing some vacation work and I have been given c++ code that has been written in Microsoft visual studio and I need to evaluate the code and report back on which source files the code isn't compatible with the Linux platform. I want to test each source/header file on it's own for any erroneous code. For example open the ex.cpp and ex.h files and test if the code is Linux compatible. Is there any IDE that allows single file compilation on Linux or even a program testing whether code can be imported to Linux from Windows?

    btw I'm using Ubuntu...
  • Laharl
    Recognized Expert Contributor
    • Sep 2007
    • 849

    #2
    Use gcc to try to compile each of them on the command line.

    Comment

    • fineupall
      New Member
      • Jun 2008
      • 5

      #3
      I think that's the reason why Linux/Unix developers created the Autotools, Makefiles etc.. So that the code/library dependencies will automatically be checked and linked against the appropriate library.

      I'm not really sure but you can try to import all your C++ source codes in Anjuta and let anjuta generate the makefiles for you so that you can compile and check for that dependencies.

      Comment

      Working...