T
tkietzma
Hello world,
I have some code, which happily runs on Ubuntu. Now, I have to port
this code to OS X. However, on compiling I get (hundreds of) errors
like:
/usr/include/c++/4.0.0/bits/localefwd.h:124: error: 'mbstate_t' was
not declared in this scope
/usr/include/c++/4.0.0/bits/localefwd.h:124: error: template argument
3 is invalid
/usr/include/c++/4.0.0/bits/localefwd.h:126: error: 'mbstate_t' was
not declared in this scope
/usr/include/c++/4.0.0/bits/localefwd.h:126: error: template argument
3 is invalid
/usr/include/c++/4.0.0/bits/localefwd.h:132: error: expected `>'
before 'istreambuf_iterator'
/usr/include/c++/4.0.0/bits/localefwd.h:132: error: expected
unqualified-id before '>' token
......
I am using a (qmake generated) Makefile, with the following call for
each cpp-file:
c++ -c -pipe -Wno-deprecated -I/sw/include -g3 -D_REENTRANT -
D_GNU_SOURCE -fPIC -DNDEBUG -g -g -Wall -W -DQT_GUI_LIB -DQT_CORE_LIB -
DQT_SHARED -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I. -I/usr/
local/Trolltech/Qt-4.3.2/lib/QtCore.framework/Versions/4/Headers -I/
usr/local/Trolltech/Qt-4.3.2/include/QtCore -I/usr/local/Trolltech/
Qt-4.3.2/include/QtCore -I/usr/local/Trolltech/Qt-4.3.2/lib/
QtGui.framework/Versions/4/Headers -I/usr/local/Trolltech/Qt-4.3.2/
include/QtGui -I/usr/local/Trolltech/Qt-4.3.2/include/QtGui -I/usr/
local/Trolltech/Qt-4.3.2/include -I. -Iexternal -IFILOU -I. -I. -F/usr/
local/Trolltech/Qt-4.3.2/lib -o objects/iGRLVQ_Demo.o iGRLVQ_Demo.cpp
Any suggestions? This is (unfortunately) somewhat urgent because I
have to give a talk and a deadline on this on Thursday and would like
to use os x for it. It should be pretty easy (I hope)..
Greetings and thanks so much in advance, any help is appreciated.
Tim
I have some code, which happily runs on Ubuntu. Now, I have to port
this code to OS X. However, on compiling I get (hundreds of) errors
like:
/usr/include/c++/4.0.0/bits/localefwd.h:124: error: 'mbstate_t' was
not declared in this scope
/usr/include/c++/4.0.0/bits/localefwd.h:124: error: template argument
3 is invalid
/usr/include/c++/4.0.0/bits/localefwd.h:126: error: 'mbstate_t' was
not declared in this scope
/usr/include/c++/4.0.0/bits/localefwd.h:126: error: template argument
3 is invalid
/usr/include/c++/4.0.0/bits/localefwd.h:132: error: expected `>'
before 'istreambuf_iterator'
/usr/include/c++/4.0.0/bits/localefwd.h:132: error: expected
unqualified-id before '>' token
......
I am using a (qmake generated) Makefile, with the following call for
each cpp-file:
c++ -c -pipe -Wno-deprecated -I/sw/include -g3 -D_REENTRANT -
D_GNU_SOURCE -fPIC -DNDEBUG -g -g -Wall -W -DQT_GUI_LIB -DQT_CORE_LIB -
DQT_SHARED -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I. -I/usr/
local/Trolltech/Qt-4.3.2/lib/QtCore.framework/Versions/4/Headers -I/
usr/local/Trolltech/Qt-4.3.2/include/QtCore -I/usr/local/Trolltech/
Qt-4.3.2/include/QtCore -I/usr/local/Trolltech/Qt-4.3.2/lib/
QtGui.framework/Versions/4/Headers -I/usr/local/Trolltech/Qt-4.3.2/
include/QtGui -I/usr/local/Trolltech/Qt-4.3.2/include/QtGui -I/usr/
local/Trolltech/Qt-4.3.2/include -I. -Iexternal -IFILOU -I. -I. -F/usr/
local/Trolltech/Qt-4.3.2/lib -o objects/iGRLVQ_Demo.o iGRLVQ_Demo.cpp
Any suggestions? This is (unfortunately) somewhat urgent because I
have to give a talk and a deadline on this on Thursday and would like
to use os x for it. It should be pretty easy (I hope)..
Greetings and thanks so much in advance, any help is appreciated.
Tim