I've never experienced this issue before. By the way, within the .pro file you can manually specify the C++ compiler you want to be used by Xcode by default, using the parameter QMAKE_CXX. Here a standard .pro file I use for most of my projects developed on Mac OS:
TEMPLATE = app
TARGET =
DEPENDPATH += .
# Compiler to be used
QMAKE_CXX = g++-4.2
# Application configuration
CONFIG += qt warn_off release x86_64 x86
# Application icon
ICON = icon.icns
# OpenGL and XML Qt Frameworks
QT += opengl
QT += xml
# MacOS/Linux
macx {
# Libraries
INCLUDEPATH += /usr/local/include/
LIBS += /usr/local/lib/libnnfw.a
#LIBS += -lIrrlicht
LIBS += /usr/local/lib/libIrrlicht.a
# Frameworks
LIBS += -framework Carbon
LIBS += -framework Cocoa
}
# Windows
win32 {
# Libraries
INCLUDEPATH += "C:\nnfw-1.1.5-src\include"
INCLUDEPATH += "C:\irrlicht-1.7.1\include"
LIBS += "C:\nnfw-1.1.5-src\lib\Release\nnfw.lib"
LIBS += "C:\irrlicht-1.7.1\lib\Win32-visualstudio\Irrlicht.lib"
}
# Input files
SOURCES += main.cpp \
simulatorEngine.cpp \
team.cpp \
mav.cpp \
nn.cpp \
target.cpp \
irrlichtGUI.cpp \
eventReceiver.cpp
HEADERS += simulatorEngine.h \
team.h \
mav.h \
nn.h \
target.h \
simulationParameters.h \
irrlichtGUI.h \
eventReceiver.h
TEMPLATE = app
TARGET =
DEPENDPATH += .
# Compiler to be used
QMAKE_CXX = g++-4.2
# Application configuration
CONFIG += qt warn_off release x86_64 x86
# Application icon
ICON = icon.icns
# OpenGL and XML Qt Frameworks
QT += opengl
QT += xml
# MacOS/Linux
macx {
# Libraries
INCLUDEPATH += /usr/local/include/
LIBS += /usr/local/lib/libnnfw.a
#LIBS += -lIrrlicht
LIBS += /usr/local/lib/libIrrlicht.a
# Frameworks
LIBS += -framework Carbon
LIBS += -framework Cocoa
}
# Windows
win32 {
# Libraries
INCLUDEPATH += "C:\nnfw-1.1.5-src\include"
INCLUDEPATH += "C:\irrlicht-1.7.1\include"
LIBS += "C:\nnfw-1.1.5-src\lib\Release\nnfw.lib"
LIBS += "C:\irrlicht-1.7.1\lib\Win32-visualstudio\Irrlicht.lib"
}
# Input files
SOURCES += main.cpp \
simulatorEngine.cpp \
team.cpp \
mav.cpp \
nn.cpp \
target.cpp \
irrlichtGUI.cpp \
eventReceiver.cpp
HEADERS += simulatorEngine.h \
team.h \
mav.h \
nn.h \
target.h \
simulationParameters.h \
irrlichtGUI.h \
eventReceiver.h
To copy to clipboard, switch view to plain text mode
Bookmarks