0

I am using XCode for developing a C++ Console Application. After compiling XCode generates the Unix Executable File, which run on Mac perfectly. But doesn't work on windows. I have tried changing the active architecture as well from x86_64 to i386 but no luck.

Is it possible anyway to generate executable like Borland C, or Turbo C compilers does. ?

2 Answers 2

2

XCode does not generate Windows binaries. Processor architecture isn't the only thing that is different - executable format, names of import libraries, ABI, etc., etc.

Use a Windows compiler, like Visual C++ Express, to generate a Windeows binary.

Sign up to request clarification or add additional context in comments.

Comments

0

Although the compiler will compile for different CPU architectures, building for another OS is not supported (with iOS being the exception).

1 Comment

@Potatoswatter: Deleted the second paragraph entirely... didn't really answer any question anyway.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.