C++: Microsoft Visual Studio to Xcode?

Discussion in 'Mac Basics and Help' started by the8bitwizard, Jul 30, 2007.

  1. the8bitwizard macrumors newbie

    Jun 15, 2007
    I have a whole load of projects made in Visual Studio and was wondering how to make them run in Xcode. Does it use a slightly different set of commands? (I tried to just copy the code into a C++ tool in Xcode, but it came up with something like 18 errors).

    also, in Visual Studio there are things like random.h, but I tried including that in a #include statement, but it couldn't find random.h

    one more thing. in MVS, you type

    void main()

    but in Xcode, do you have to type

    int main(void)

  2. twoodcc macrumors P6


    Feb 3, 2005
    Right side of wrong
    you might want to just create a new project in xcode (C++ project) and after you have that setup, just take the code for the VS project and copy and paste it in the xcode project.

    not sure if that will work or not. i've done this with C#, and i could just take the .cs file and add it to my xcode project and it would work fine
  3. P4n1kH0u53 macrumors newbie

    Oct 13, 2008
    Port to Xcode

    No news is good news? I need to do the same thing using Xcode 3.0.

Share This Page