

- #USE XCODE ON MAC FOR C++ MAC OS X#
- #USE XCODE ON MAC FOR C++ INSTALL#
- #USE XCODE ON MAC FOR C++ FULL#
To add any additional options to the link command Set this to "-Wl,-l name1,-l name2." to link with named system libraries When on, adds "-mwindows" to the link command To add any additional options to compilations To add "-O1", "-O2", or "-O3" to compilations When on, adds "-g" to compilation and link operations OPTIMIZE Setting "Base SDK" from section "Architectures" must be set to "Current Mac OS".
#USE XCODE ON MAC FOR C++ MAC OS X#
Use HEADER_SEARCH_PATHS and LIBRARY_SEARCH_PATHS as with Mac OS X targets. Win32Plugin's compiler and linker settings (for Xcode 3.1/3.2) Win32Plugin can produce and use libraries as well as executables.

You should be able to build each of the 3 remaining targets. If using Xcode 3, delete target 25helloWin32, and conversely for Xcode 2.5. Quit and restart Xcode for it to load the plugin. Targets 25helloWin32 and 3.xhelloWin32 are to be used with Xcode 2.5 and 3 respectively.
#USE XCODE ON MAC FOR C++ FULL#
Optionally, for the curious, the full source code of Win32Plugin is available as an Xcode project with two targets, Win32Plugin25 to be used only with Xcode 2.5, and Win32Plugin31 only with Xcode 3.1 or 3.2.įor your first use of Win32Plugin, download this Xcode project hello that contains 4 targets for MacOS X, Darwin + X11, and MSWindows, with the same source file.If you already have a working GNU Win32 c/c++ cross-compiler, adapt and enter these commands in a Terminal window to reflect its name and location:ĭefaults write win32gxxpath /full/path/to/mingw32-g++ĭefaults write win32gccpath /full/path/to/mingw32-gccĭefaults write win32arpath /full/path/to/mingw32-ar.Move the content of libintl.zip, three files, to /usr/local/lib on your computer (unless you already have these files). It is gcc/g++ 3.4.6, and is for Intel Macs only. This compiler must be in /usr/local/cross to run properly. Move the content of cross.zip, folder cross, to /usr/local on your computer. In the likely case that you don't have already on your Mac a GNU c/c++ Win32 cross-compiler, download files cross.zip and libintl.zip.
#USE XCODE ON MAC FOR C++ INSTALL#
Install a cross-compiler or use your own:.Replacing 3.1 by 3.2 if using Xcode 3.2, or by 2.5 if using Xcode 2.5. $HOME/Library/Application Support/Developer/3.1/Xcode/Plug-ins/Win32Plugin.pbplugin Your plugin should sit in your computer as: Download file Developer.zip that contains the plugin and install its content, folder Developer, in "$HOME/Library/Application Support" on your computer.Win32Plugin allows a single Xcode project to build executables for MacOS X and MSWindows platforms. Win32Plugin works with versions 2.5, 3.1.*, and 3.2 of Xcode. Win32Plugin gives Xcode, Apple's development environment, the possibility to fully drive a GNU c/c++ cross-compiler for MSWindows (95 and above).
